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.

Reply via email to