[Insight-developers] strange casting/overloading issues
Richard Beare
richard.beare at gmail.com
Fri Aug 8 02:32:50 EDT 2008
Hi,
I've seen some strange outcomes from a very simple pipeline that I'd
like some advice tracking down.
The pipeline is TriangularMeshToBinaryImageFilter->MaskImageFilter->Writer
If I connect the writer directly to the MaskImageFilter :
writer->SetInput(masker->GetOutput()), I get a very small output
image, which I suspect is some representation of the pointer. If I do
std::cout << masker->GetOutput()
I get the pointer value, not the image information which I thought I
usually got.
If I add an intermediate step:
ImageType::Pointer maskresult = masker->GetOutput();
writer->SetInput(maskresult);
everything seems to work as expected.
I don't seem to be able to reproduce the problem with just the mask
filter. I suspect some subtle pipeline related interaction or casting
issue - any debugging suggestions?
More information about the Insight-developers
mailing list