[Insight-users] windows warning method unreadable

Luis Ibanez luis.ibanez at kitware.com
Wed Aug 11 17:51:07 EDT 2004


Hi Ingmar,

The typical solution to this message issue is to setup
a TextOutput in the application. This is done with the
following lines of code:


   #include "itkTextOutput.h"


   itk::OutputWindow::SetInstance(
          itk::TextOutput::New().GetPointer());


When you do this on MS-Windows, you will also need
to run the application from a terminal such as
rxvt (that you will find in Cygwin), because otherwise
the output of cout doesn't get directed to the console.



   Regards,


      Luis



----------------------------------
Bitter, Ingmar (NIH/CC/DRD) wrote:

> Hi,
> 
> We are using itkAnisotropicDiffusionImageFilter slightly wrong :) and get
> the unfortunate behavior that running the executable (exactly: when
> GradientAnisotropicDiffusionImageFilter is revoked) a warning window pops up
> complaining about corresponding *.h or *.cpp file (I'm not sure - can't read
> msg) - I can't touch, scroll, do anything with the window, then it's gone.
> 
> When running the same application build for Linux I get:
> WARNING: In  /raid/.../itk/.../itkAnisotropicDiffusionImageFilter.txx, line
> 60
> GradientAnisotropicDiffusionImageFilter (0x8c71b30): Anisotropic diffusion
> has attempted to use a time step which may introduce instability into the
> solution.
> 
> It would be nice if did not have to compile and run in linux to be able to
> read the warning.  
> 
> Is this a known problem with a known solution?
> 
> We use itk 1.6.0
> 
> Thanks,
> -Ingmar
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 






More information about the Insight-users mailing list