[ITK] 答复: itk extract filter not working properly

谢玮宜 weiehome at sina.com
Tue May 24 07:06:40 EDT 2016


Hi, Evain

I simply changed to RegionOfInterestImageFilter as you suggest, things are working. However I still don't know what is the problem with ExtractImageFilter. 
Anyway, I will look into some of itk c++ codes to see if any hint there.

Thanks!
-----邮件原件-----
发件人: Timothee Evain [mailto:tevain at telecom-paristech.fr] 
发送时间: 2016年5月24日 16:41
收件人: weiehome at sina.com
抄送: community at itk.org
主题: Re: [ITK] itk extract filter not working properly


Hi,

What do you mean by "reduce the size" ? Are you trying to transform your input image into a smaller one (i.e. resampling) or are you expecting to get just a part of the original image ?
Given that you are using the ExtractImageFilter, I assume the later. 
First, if you need to extract a 256*256*12 volume, the size should be of [256,256,12], not [128,128,12], given that the index is just the position of the extraction.
Second, the error seems to indicate that the output image type is not consistent with your ROI, ensure the OutputImageType is 3D.
Remember to set a collapse strategy when using the ExtractImageFilter, or use the RegionOfInterestImageFilter since you don't seem to need dimensionality reduction.

HTH
Tim

----- Mail original -----
De: weiehome at sina.com
À: community at itk.org
Envoyé: Mardi 24 Mai 2016 08:46:08
Objet: [ITK] itk extract filter not working properly

Hi itk experts, 

I need to reduce the size of a 3d ct volume from original [512,512,64] to [256,256,12]. 
i was trying to apply a simple ExtractimageFilter with Index [128,128,0] and size [128,128,12],and it keeps showing me the exception " Extraction Region not consistent with Output image"? 

I checked my input 3d image volume is corret , but what is the problem with the exception? 

Thank you ! 


weiehome at sina.com 







More information about the Community mailing list