[Insight-users] use of Indent ??
Luis Ibanez
luis.ibanez at kitware.com
Tue Feb 23 17:02:01 EST 2010
Hi Michiel,
You shouldn't call PrintSelf() directly.
The method PrintSelf() in intended to be called only by Print().
The method that you want to call is
itkclass->Print( std::cout );
or
itkclass->Print( std::cerr );
or
ofstream myfile("log.txt");
itkclass->Print( myfile );
Regards,
Luis
----------------------------------------------
On Tue, Feb 23, 2010 at 12:04 PM, michiel mentink
<michael.mentink at st-hughs.ox.ac.uk> wrote:
>
> I am trying to debug ImageRegistration8 and I want to execute PrintSelf().
>
> Printself needs Indent.
>
> I tried setting it up like this, but it doesn't like it:
>
> typedef itk::Indent IndentType;
> IndentType::Pointer indent = IndentType::New();
>
> How should I set up indent and put it in the PrintSelf command?
>
> Printself calling syntax:
>
> /**
> * PrintSelf
> */
> template < typename TFixedImage, typename TMovingImage >
> void
> ImageRegistrationMethod<TFixedImage,TMovingImage>
> ::PrintSelf(std::ostream& os, Indent indent) const
>
> cheers, Michael
>
More information about the Insight-users
mailing list