Hi, you're pointing an irritating issue...
ITKv4 introduced and enforced now a strict checking of inputs in ImageToImageFilter. As most OTB filters derived from it we heritate from this behavior... We're not the only one which;. You'll find an interesting discussion about this subject on ANTS bug tracker: https://github.com/stnava/ANTs/issues/74 Some possible fix in your case: if you've got custom code which instantiate you can try to change the default value of those tolerances before filter instanciation using SetGlobalDefaultCoordinateTolerance and SetGlobalDefaultDirectionTolerance methods: http://www.itk.org/Doxygen/html/classitk_1_1ImageToImageFilterCommon.html <http://www.itk.org/Doxygen/html/classitk_1_1ImageToImageFilterCommon.html> If you've implemented filters which derived from itk::ImageToImageFilter you can reimplement the VerifyInputInformation method to bypass inputs checking. This issue makes me think that there is perhaps something to do in OTB to make tolerance checking more flexible (we could for instance allows to set the tolerance as a generic option in the ApplicationEngine...) Let me know if works in your case. Manuel On 13/05/2015 09:10, wijuk pruksuriya wrote: > Hi, I install new Ubuntu and OTB but when in make and run my code have > error like this. > > | > terminate called after throwing an instance of 'itk::ExceptionObject' > what(): /usr/local/include/ITK-4.7/itkImageToImageFilter.hxx:248: > itk::ERROR:PersistentCompareImageFilter(0x144fe50):Inputsdonotoccupy > the same physical space! > InputImageOrigin:[2.9850000e+02,2.3450000e+02],InputImage_1Origin:[2.9800000e+02,2.3400000e+02] > Tolerance:1.0000000e-06 > > | > > I want some suggesstion. Thank!! > -- > -- > 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] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout. -- Manuel GRIZONNET -- -- 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.
