[Insight-users] How to redirect the debug information to the starndard output?

Luis Ibanez luis.ibanez@kitware.com
Fri, 18 Apr 2003 11:36:22 -0400


Hi Fucang,

In order to send the output to that console you can
use the TextOutput class. (in Insight/Code/Common).

Please instantiate one and set it into the
OutputWindow object, like:

   #include "itkTextOutput.h"

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


For a example, you can look at


   Insight/Testing/Code/Algorithms/itkImageRegistrationMethodTest_15.cxx


Regards,


    Luis


---------------------------------

Fucang Jia wrote:
> Hi Luis, Jim, hi everyone,
> 
> Thanks for much help!
> 
> I want to print the debug information (itkDebugMacro) to the standard 
> output. Then I use imagefilter->Debugon();
> But the debug information was sent to the OutputWindow, not the 
> terminal. I want to look this information on the terminal. Could you 
> tell me how to redirect the debug information to the standard output?
> 
> Thank you!
> 
> Fucang
> 
> 
> 
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
> http://join.msn.com/?page=features/featuredemail
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>