[Insight-developers] ImplicitFunctionImageEvaluatorFilter

Damion Shelton dmsst59@pitt.edu
Wed, 9 May 2001 13:37:14 -0400


Hello...

I'm working on a class called ImplicitFunctionImageEvaluatorFilter, which is
derived from ImageToImageFilter. The following is a code fragment from
GenerateData(), which is intended to retrieve the size of the input image:

----

InputImagePointer  inputPtr = this->GetInput();
OutputImagePointer outputPtr = this->GetOutput();

TInputImage::SizeType inputSize =
inputPtr->GetLargestPossibleRegion().GetSize();

const unsigned long* sizeArray = inputSize.GetSize();

----

The VC++ debugger provides the following info:

the inputSize object contains an internal m_Size object of {0,0,0}
the sizeArray pointer cannot be evaluated
the pointer to the input image appears to be correct (internal variables
match what I set elsewhere)

So, what am I doing wrong? Retrieving the size of an input image seems like
it should be a relatively simple operation.

Thanks,

-Damion-