<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
I use RegionOfInterestImageFilter to extract one slice image from the raw data.<BR>
I want to process the data slice by slice for a specific task. <BR>
<BR>
start[0]= start[1]= start[2] = 0;<BR> size[0] = 256;size[1] = 256;size[2] = 1;<BR> OutputImageType::RegionType desiredRegion;<BR> desiredRegion.SetSize( size );<BR> desiredRegion.SetIndex( start );<BR>
roifilter->SetRegionOfInterest( desiredRegion );<BR> roifilter->SetInput(filter->GetOutput());<BR>
OutputImageType::SizeType roisize = roifilter->GetOutput()->GetLargestPossibleRegion().GetSize();<BR> roifilter->Update();<BR>
When I debug the code, I got roisize =[0,0,0].<BR>
Anyone can help me?<BR>
<BR>
<BR>
<BR>
<BR>
<RTE_TEXT></RTE_TEXT><BR><br /><hr />MSN热搜榜全新升级,更多排行榜等着你! <a href=' http://top.msn.com.cn' target='_new'>立即查看!</a></body>
</html>