On Wed, Jul 22, 2015 at 3:57 AM, Scoh <[email protected]> wrote:

> Finally it works!
> I'm not a computer guy so I don't deeply understand why it didn't work,
> however, new build you made solved the problem.
>

There was a bug in the release version. That is why.


> Great thanks for your advice and help, Rashad, Paulo.
> For some end users who has the same problem, below is summary of what I
> did.
>
> I have Windows 7 64 bit system,
> installed osgeo4w 32bit shell (here
> <http://wiki.orfeo-toolbox.org/index.php/OTB_%26_Windows_OS> suggests 32
> bit) with dependencies (also in the link),
>

One correction. you dont need to install osgeo4w 32bit at all.  Remember
you didnt start otbcli_StereoFramework from OSGeo4W shell.


> downloaded zip file for today's OTB
> <https://www.orfeo-toolbox.org/packages/nightly/2015-07-20/OTB-5.0.0-win64.zip>
>
> unzip the above OTB where you can access easily,
> start button and type cmd and execute,
> go to the OTB_directory\bin,
> execute otbcli_stereoframework with arguments.
>
> Regards,
>
>
> On Tuesday, July 21, 2015 at 5:29:10 PM UTC+9, Rashad wrote:
>>
>>
>>
>> On Tue, Jul 21, 2015 at 9:53 AM, Rashad M <[email protected]> wrote:
>>
>>
>>>
>>> On Tue, Jul 21, 2015 at 4:38 AM, Scoh <[email protected]> wrote:
>>>
>>>> Below is what I tried.
>>>>
>>>> cmd.exe and typed
>>>>
>>>> otbcli_StereoFramework.bat -input.il
>>>> C:\Temp\Examples\sensor_stereo_left.tif
>>>> C:\Temp\Examples\sensor_stereo_right.tif -elev.default 140
>>>> -stereorect.fwdgridstep 8 -stereorect.invgridssrate 4 -postproc.med 1
>>>> -output.res 2.5 -output.out C:\Temp\Examples\dem.tif
>>>>
>>>> and got a message saying
>>>> 'otbApplicationLauncherCommandLine.exe' is not recognized as an
>>>> internal or external command, operable program or batch file.
>>>>
>>>
>>> If you told that before, I could have corrected the problem. In short,
>>> Let me rebuild the new package and will send you the link
>>>
>>
>> And.. we are back. Here is the update zip file for OTB for today
>> archive.  -
>> https://www.orfeo-toolbox.org/packages/nightly/2015-07-20/OTB-5.0.0-win64.zip
>>
>> I had tested on windows lauching otbcli_BandMath.bat and couple of
>> others. Loading seems fine. haven't tested all functionalites. For muparser
>> issues you were was particullarly tested and works fine. Here is the output
>> I got.
>>
>>
>> .tif C:\Temp\Examples\sensor_stereo_right.tif -elev.default 140
>> -stereorect.fwdgridstep 8 -stereorect.invgridssrate
>> 4 -postproc.med 1 -output.res 2.5 -output.out C:\Temp\Examples\dem.tif
>>
>> 2015 Jul 21 10:24:08  :  Application.logger  (INFO) Elevation management:
>> setting default height above ellipsoid to
>> 140 meters
>> 2015 Jul 21 10:24:08  :  Application.logger  (INFO) 1 Stereo couples will
>> be processed
>> ERROR 4: Unable to open EPSG support file gcs.csv.
>> Try setting the GDAL_DATA environment variable to point to the
>> directory containing EPSG csv files.
>> ERROR 4: Unable to open EPSG support file gcs.csv.
>> Try setting the GDAL_DATA environment variable to point to the
>> directory containing EPSG csv files.
>> 2015 Jul 21 10:24:08  :  Application.logger  (INFO) Processing stereo
>> couple 0 (images index 0 and 1)
>> Computing epipolar grids...: 100%
>> [**************************************************] (0.07 seconds)
>> 2015 Jul 21 10:24:08  :  Application.logger  (INFO) Minimum disparity : -7
>> 2015 Jul 21 10:24:08  :  Application.logger  (INFO) Maximum disparity : 7
>> Inverting left displacement field ...: 100%
>> [**************************************************] (0.02 seconds)
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Using robust SSD
>> Metric for BlockMatching.
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Using reverse
>> block-matching to filter incoherent disparity valu
>> es.
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Default elevation set
>> for Min/Max elevation : 140
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Minimum elevation
>> found : 140
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Maximum elevation
>> found : 140
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Disparity mask
>> formula : (hdisp > -7) and (hdisp < 7) and (mask>
>> 0) ? 255 : 0
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Output DSM parameters
>> are estimated from sensor input data.
>> 2015 Jul 21 10:24:09  :  Application.logger  (INFO) Output DSM projection
>> reference:
>>
>> ERROR 4: Unable to open EPSG support file gcs.csv.
>> Try setting the GDAL_DATA environment variable to point to the
>> directory containing EPSG csv files.
>> ERROR 4: Unable to open EPSG support file gcs.csv.
>> Try setting the GDAL_DATA environment variable to point to the
>> directory containing EPSG csv files.
>> Writing C:\Temp\Examples\dem.tif...: 100%
>> [**************************************************] (1 seconds)
>>
>>
>> currently there is a minor issue with GDAL_DATA not being set properly.
>> you can set it manually or wait for tomorrow's build for the fix.!
>>
>>
>> Hope that helps.
>>
>>
>>
>>
>>
>>>
>>>> This is why I previously said I couldn't open the bat files in the
>>>> build.
>>>>
>>>> You told me it works, so I added ";C:\OSGeo4W\bin(where
>>>> otbApplicationlaunchercommandline.exe exists)" without doubt to system path
>>>> and tried again
>>>>
>>>
>> Do not include any OSGeo4W to system path when using this package. This
>> does not use msvc libs and  uses mingw GCC. So  you must remove that from
>> system path.
>>
>>>
>>>> otbcli_StereoFramework.bat -input.il
>>>> C:\Temp\Examples\sensor_stereo_left.tif
>>>> C:\Temp\Examples\sensor_stereo_right.tif -elev.default 140
>>>> -stereorect.fwdgridstep 8 -stereorect.invgridssrate 4 -postproc.med 1
>>>> -output.res 2.5 -output.out C:\Temp\Examples\dem.tif
>>>>
>>>> and what comes out is another message
>>>>
>>>> ERROR: Could not find application "StereoFramework"
>>>> ERROR: Module search path: none (check ITK_AUTOLOAD_PATH)
>>>> ERROR: Available modules : none.
>>>> ERROR: No loaded application...
>>>>
>>>> Now I'm stuck and don't get the problem. Did I miss installing some otb
>>>> dependencies?
>>>> And please check the link you suggested. it doesn't have otbgui_....bat
>>>> files.
>>>>
>>>> Anyway I appreciate it.
>>>> Still I'm learning something.
>>>>
>>>> On Monday, July 20, 2015 at 11:55:48 PM UTC+9, Rashad wrote:
>>>>>
>>>>> Hi there,
>>>>>
>>>>>
>>>>> On Mon, Jul 20, 2015 at 12:10 PM, Scoh <[email protected]> wrote:
>>>>>
>>>>>> I've tried everything at best as I could with the nightly build,
>>>>>> which is full of bat and dll files.
>>>>>>
>>>>>
>>>>> Dont worry about no of bat and dll files. you only need to run
>>>>> otbcl_StereoFramework ( from your original post)
>>>>>
>>>>> For that you need to do the following;
>>>>>
>>>>> Assuming the zip is extracted to C:\OTB-5.0.0
>>>>>
>>>>> open windows command prompt: (cmd.exe)
>>>>>
>>>>> cd c:\OTB-5.0.0\bin
>>>>>
>>>>> (and launch otbcli_StereoFramework with the correct arguments)
>>>>>
>>>>> you can also use otbgui_StereoFramework which can launched simply by
>>>>> dblclicking on the bat file - otbgui_StereoFramework.bat
>>>>>
>>>>> otbcli_StereoFramework -input.il C:\Temp\Examples\sensor_
>>>>> stereo_left.tif C:\Temp\Examples\sensor_stereo_right.tif -elev.default
>>>>> 140 -stereorect.fwdgridstep 8 -stereorect.invgridssrate 4 -postproc.med 1
>>>>> -output.res 2.5 -output.out C:\Temp\Examples\dem.tif
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Until now, however, couldn't figure out how to deal with those files,
>>>>>> even went back to OTB source and tried to cmake with errors with this
>>>>>> <http://wiki.orfeo-toolbox.org/index.php/OTB_%26_Windows_OS>.
>>>>>> Now I'm stuck with CMake PATH too long problem
>>>>>> <http://www.cmake.org/Bug/bug_relationship_graph.php?bug_id=11931&graph=relation>
>>>>>> .
>>>>>> So I'd rather like to work with nightly build you suggested.
>>>>>> It'd be much appreciated if you tell me what work is exactly needed.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sunday, July 19, 2015 at 2:23:07 AM UTC+9, Rashad wrote:
>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sat, Jul 18, 2015 at 2:51 PM, Scoh <[email protected]> wrote:
>>>>>>>
>>>>>>>> As a non-developer and end user, I don't want to offend any
>>>>>>>> development team, but I understand your answer as being that everyone 
>>>>>>>> using
>>>>>>>> 5.0.0 can't even do the stereo example due to above issue.
>>>>>>>> Being not a big fan of git, is there any other solution without
>>>>>>>> using it?
>>>>>>>> Really amazed for the integrity of OTB, but if no I'll have to
>>>>>>>> consider other open source too.
>>>>>>>>
>>>>>>>> If you dont want to rebuild from git master we can understand that
>>>>>>> given that you are end user. For that we have daily built packages here 
>>>>>>> -
>>>>>>> https://www.orfeo-toolbox.org/packages/nightly/latest/
>>>>>>>
>>>>>>> In my opinion, that will be the other option you were looking for.
>>>>>>> The packages are available for 3 platforms.  Windows (.Win*.zip /exe),
>>>>>>> Linux (.run) and Mac (.dmg).
>>>>>>>
>>>>>>> As you are using windows, try
>>>>>>> https://www.orfeo-toolbox.org/packages/nightly/latest/OTB-5.0.0-win64.zip
>>>>>>> if you are using 64bit machine.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> On Saturday, July 18, 2015 at 12:06:35 AM UTC+9, Rashad wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Jul 17, 2015 at 5:02 PM, Scoh <[email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> I'm using stereoframework with example stadium photo and I got a
>>>>>>>>>> message saying "unexpected token "if" found at...."
>>>>>>>>>> After getting the message, I searched the internet to fix it,
>>>>>>>>>> found out that was quite an issue before (this
>>>>>>>>>> <https://bugs.orfeo-toolbox.org/print_bug_page.php?bug_id=850>
>>>>>>>>>>  or this
>>>>>>>>>> <https://groups.google.com/forum/#!topic/otb-users/_mZLeJ_SE34>)
>>>>>>>>>> when OTB version was 4.2.0 or some.
>>>>>>>>>> However, I haven't found out the exact solution I can give it a
>>>>>>>>>> go, so the question is
>>>>>>>>>>
>>>>>>>>>> 1. Wasn't the problem already solved back then? OTB 4.0.0 release
>>>>>>>>>> note says "apTvDmStereoFramework fails with muParser 2.2"  and seems 
>>>>>>>>>> to
>>>>>>>>>> have dealt with the problem.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> The issue is fixed in the git master. But unfortunately not
>>>>>>>>> available in OTB 5.0.0
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 2. If it is a ongoing problem, which file should I fix and how?
>>>>>>>>>> For now I haven't used my own code but only otbcli_stereoframework 
>>>>>>>>>> like
>>>>>>>>>> below
>>>>>>>>>>
>>>>>>>>>> otbcli_StereoFramework -input.il
>>>>>>>>>> C:\Temp\Examples\sensor_stereo_left.tif
>>>>>>>>>> C:\Temp\Examples\sensor_stereo_right.tif -elev.default 140
>>>>>>>>>> -stereorect.fwdgridstep 8 -stereorect.invgridssrate 4 -postproc.med 1
>>>>>>>>>> -output.res 2.5 -output.out C:\Temp\Examples\dem.tif
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> and error message is
>>>>>>>>>>
>>>>>>>>>> Writing C:\Temp\Examples\dem.tif...: 0% [           ]2015 Jul 17
>>>>>>>>>> 22:40:02  :  Application.logger  (FATAL) The following error occurred
>>>>>>>>>> during application execution :
>>>>>>>>>> C:\OSGeo4W64\usr\src\osgeo4w\itk\itk-4.7.2\Modules\Core\Common\src\itkMultiThreader.cxx:416:
>>>>>>>>>> itk::ERROR: MultiThreader(00000000034288C0): Exception occurred
>>>>>>>>>> during SingleMethodExecute
>>>>>>>>>> c:\users\jmalik\dashboard\src\otb-5.0.0\modules\filtering\mathparser\include\otbBandMathImageFilter.txx:300:
>>>>>>>>>> itk::ERROR: BandMathImageFilter(0000000003A02CD0):
>>>>>>>>>> itk::ExceptionObject (00000000001786A0)
>>>>>>>>>> Location: "unknown"
>>>>>>>>>> File:
>>>>>>>>>> C:\Users\jmalik\Dashboard\src\OTB-5.0.0\Modules\Filtering\MathParser\src\otbParser.cxx
>>>>>>>>>> Line: 166
>>>>>>>>>> Description: itk::ERROR: ParserImpl(0000000003AFE530):
>>>>>>>>>> Message:     Unexpected token "if" found at position 0.
>>>>>>>>>> Formula:     if((inleft > 0) and variance > 50,255,0)
>>>>>>>>>> Token:       if
>>>>>>>>>> Position:    0
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I wish I found otbBandMathImageFilter.txx or otbParser.cxx to
>>>>>>>>>> replace "if" to "? :", but seems it's not that easy.
>>>>>>>>>> It's already been discussed here a lot, but if someone helps
>>>>>>>>>> solving the problem for users like me, it would be much appreciated.
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> --
>>>>>>>>>> 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/d/optout.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Regards,
>>>>>>>>>    Rashad
>>>>>>>>>
>>>>>>>>  --
>>>>>>>> --
>>>>>>>> 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/d/optout.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>>    Rashad
>>>>>>>
>>>>>>  --
>>>>>> --
>>>>>> 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/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Regards,
>>>>>    Rashad
>>>>>
>>>>  --
>>>> --
>>>> 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/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>>    Rashad
>>>
>>
>>
>>
>> --
>> Regards,
>>    Rashad
>>
>  --
> --
> 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/d/optout.
>



-- 
Regards,
   Rashad

-- 
-- 
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/d/optout.

Reply via email to