[Insight-users] ROI Image Filter

TienGarry gjtian at hotmail.com
Mon Dec 15 04:28:29 EST 2008


I use RegionOfInterestImageFilter to extract one slice image from the raw data.
I want to process the data slice by slice for a specific task. 
 
        start[0]= start[1]= start[2] = 0;        size[0] = 256;size[1] = 256;size[2] = 1;        OutputImageType::RegionType desiredRegion;        desiredRegion.SetSize(  size  );        desiredRegion.SetIndex( start );
        roifilter->SetRegionOfInterest( desiredRegion );        roifilter->SetInput(filter->GetOutput());
        OutputImageType::SizeType roisize = roifilter->GetOutput()->GetLargestPossibleRegion().GetSize();        roifilter->Update();
When I debug the code, I got roisize =[0,0,0].
Anyone can help me?
 
 
 
 

_________________________________________________________________
新版手机MSN,新功能,新体验!满足您的多彩需求!
http://mobile.msn.com.cn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081215/356b8570/attachment.html>


More information about the Insight-users mailing list