[Insight-users] use of Indent ??

Luis Ibanez luis.ibanez at kitware.com
Mon Mar 1 10:17:09 EST 2010


Hi Michael,

Thanks for letting us know that the problem was solved.


     Regards,

             Luis


-------------------------------------------------------------------------------------
On Mon, Mar 1, 2010 at 5:09 AM, michiel mentink
<michael.mentink at st-hughs.ox.ac.uk> wrote:
> thank you Luis,
>
> that certainly works.
>
> cheers, Michael
>
> On Tue, Feb 23, 2010 at 10:02 PM, Luis Ibanez <luis.ibanez at kitware.com>
> wrote:
>>
>> 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