Hi,

I agree that this excess of warning message is annoying. The ITK class
MattesMutualInformationImageToImageMetric is responsible for raising
exceptions : this class doesn't handle properly regions filled with
zeros. You may report the problem to ITK.

Regards,
Guillaume

On 08/31/2015 08:54 AM, Agustin Lobo wrote:
> 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.
> 

-- 
<www.c-s.fr>    *Guillaume PASERO*
Ingénieur d'études et développement
*Business Unit E-SPACE & Geo Information*
<https://thor.si.c-s.fr/blogs/cs-blogs-business/>*- Département
APPLICATIONS*

*CS Systèmes d'Information*
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

-- 
-- 
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