[Insight-users] Trouble with getting the output of FastMarchingImageFilter

秦安 qafly at fimmu.com
Mon Dec 5 02:48:18 EST 2005


hi,luis and  itk users:

    when working with the FastMarchingImageFilter, i try to get the output time crossing image. i write the simple codes as below
"
    InternalImageType::Pointer internalImage3 = InternalImageType::New();
	internalImage3 = fastMarching->GetOutput();
	ConstIteratorType constIterator3(internalImage3,internalImage3->GetRequestedRegion());

	float timedata[imageWidth*imageHeight];
    InternalImageType::PixelType pixel;
    int i;
	for(constIterator3.GoToBegin(),i=0;!constIterator3.IsAtEnd(); ++constIterator3,i++)
	{
		pixel = constIterator3.Get();
		timedata[i] = (float)pixel; 
	}
"
     The whole image processing pipeline has been update successfully before, and the output binary images suggest the filters work well.
but when come to these codes, the pixel variable simply get noting.  
     Any help will be appreciated.     Thank you for your help and best regards!
                                                                               



	

-------------- next part --------------
A non-text attachment was scrubbed...
Name: face-6.gif
Type: image/gif
Size: 1225 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20051205/df102da5/face-6.gif


More information about the Insight-users mailing list