Hi Julian,

Working on similar task and flowing this discussion  - hence starting with 
stereo model of 2 Pleiades images I would like to refine the sensor model 
before extracting DSM as discussed in the cookbook -- e.g. I all-ready 
extracted DSM usefully and now I want to refine the solution.

I extracted homologous points with 2wgs84 option set to 0 (both h' points 
are in image C' system). 

I got text file with about 3000 points in image coord' system. 

To verify if the points are good one need to overlay them on the image ...  *-- 
is Monteverdi support such task or other known tool  ?*

Then I continue with RefineSensorModel

otbcli_RefineSensorModel -ingeom c:\data\PMS_002.geom -outgeom 
c:\data\PMS2refinedGeom.geom -inpoints c:\data\homologous_points.txt 
-elev.dem c:\data\dem -elev.geoid c:\data\dem\egm96.grd -outstat 
c:\data\stats.txt

and I got this info for each H' point 

2014 Feb 21 12:44:06  :  Application.logger  (INFO) Adding tie point 
x=2435.83, y=7708.88, *z=-1.#QNAN*, lon=2379.94, lat=7468.34

it looks that I have a problem with the z value ??? I supply DEM dir which 
include DEM files & geoid file

and then the prog' crashed after displaying this 

2014 Feb 21 12:44:06  :  Application.logger  (INFO) Optimization in 
progress ...
-1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN 
-1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN
 -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN 
-1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNA
N -1.#QNAN -1.#QNAN -1.#QNAN -1.#QNAN 2014 Feb 21 12:44:12  : 
 Application.logger  (FATAL) An unknown exception has been rais
ed during application execution

It sounds like a problem the z ?

*Do have any idea regard this error ?*

thanks

Ofer

On Monday, April 22, 2013 4:15:49 PM UTC+3, Julien Michel wrote:
>
>  Dear Myriam,
>
> Thank you for your answers. Can you send me the command-lines and output 
> file (with tie points) ? Can you also tell me which data you are working on 
> (maybe I have them here).
>
> Regards,
>
> Julien
>
> Le 22/04/2013 15:08, stagmyr a écrit :
>  
> Thanks for your quick repli Julien.
> Please find the answers enclosed.
>
> Myriam
>
> Le lundi 22 avril 2013 10:50:20 UTC+2, Julien Michel a écrit : 
>>
>>  Dear Myriam,
>>
>> There are several things to check :
>>
>> 1) Pleiades image comes with world file (JPW or TFW files) containing a 
>> simplyfied geocoding, which may confuse OTB and have a great impact on 
>> accuracy. To avoid this, please either use the extended file name option 
>> "myFile.JP2?&skip_carto=true" [1] or remove those JPW or TFW file from the 
>> product folder.
>>  
>
> I already tried with the extended file name option and also in remove TFW 
> file from the product folder with the -2wsg84 option to 1, but the pixels 
> in images 2 (2 first columns) don't correspond with the coordinates in 
> WGS84 in images 1 (2 last columns)
>  
>  
>>  2) Can you check that the homologous points in image coordinate system  
>> are good  ? This means running HomologousPointsExtraction application and 
>> set the -2wsg84 option to 0. The resulting file will contain coordinates of 
>> homologous points in image1 and image2, both in image system coordinate,
>>  
>
> With the -2wsg84 option to 0 I obtain the coordinates in pixels for the 
> image 2 in the 2 first column and the coordinates in pixels for the image 1 
> in the 2 last columns. I checked and it's good, the both coordinates 
> corresponded to the same point for the image 1 and 2. So the problem is in 
> the coordinates in WGS84 and not in the registration of homologous points  
>
>   3) Setting -2wgs84 will convert the points from the second image to 
>> WGS84. In this process, and unless your second image is already 
>> orthorectified, you need to use a DEM. If you do not use one, all WGS84 
>> points will be created at null elevation, which may be very far from the 
>> truth depending on your area.
>>  
>
> I use 2 images stereoscopic, not orthorectified image and I always used a 
> geoid egm96.grd and a SRTM DEM file.hgt but with some missing values.
>  
>>  
>> Please let me know the results of these three points,
>>
>> Regards,
>>
>> Julien
>>  
> -- 
> -- 
> Check the OTB FAQ at
> http://www.orfeo-toolbox.org/FAQ/
>  
> You received this message because you are subscribed to the Google
> Groups "otb-users" group.
> To post to this group, send email to [email protected]<javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> For more options, visit this group at
> http://groups.google.com/group/otb-users?hl=en
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "otb-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>
> -- 
> Julien MICHEL
> CNES - DCT/SI/AP - BPI 1219
> 18, avenue Edouard Belin
> 31401 Toulouse Cedex 09 - France
> Tel: +33 561 282 894 - Fax: +33 561 283 109 
>
> 

-- 
-- 
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to