In this case the warning message is useless as it refers to a part of the image (a narrow strip at the edges) that is all 0. Having a warning messsage for each position of the slicing window in theis zone is non-informative, annoying and slows down the processing by excess of input/output operations. Agus
On Thu, Aug 20, 2015 at 5:51 PM, Manuel Grizonnet <[email protected]> wrote: > Hi Agustin, > > everything is possible with OTB (and ITK) :) But is generally not a good > idea to hide warnings... > > Warning messages are managed throw ITK so if you're compiling you're own > applications or compiling from source I would say that you "just" need > to call the static method itk::Object::GlobalWarningDisplayOff() to > disable warning messages in the console in the DoExecute method of the > application. > > I don't think that there is a mechanism to do this "outside" of the > applications but I could be wrong here. > > Regards, > > Manuel > > Le 06/08/2015 12:35, Agustin Lobo a écrit : >> I get a lot of warning messages using otbcli_FineRegistration because >> one of the 2 images have all 0 around the boundaries so that the size >> of the 2 images >> matches. For example, I get many: >> WARNING: In >> /build/buildd/otb-3.20.0/Code/DisparityMap/otbFineRegistrationImageFilter.txx, >> line 444 >> FineRegistrationImageFilter (0x26b3e80): itk::ERROR: >> MattesMutualInformationImageToImageMetric(0x250cc80): Joint PDF summed >> to zero >> >> The result is good, do not care about the edges, but is there any way >> I can actually >> run otbcli_FineRegistration with no warning messages being printed out? >> >> Thanks >> >> Agus >> > > -- > 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. -- -- 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.
