[Insight-users] wrapitk ROI filter

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sat Feb 14 15:47:58 EST 2009


Le 14 févr. 09 à 21:17, Gen-Nan Chen a écrit :

> Hi!
>
> I need to use RegionOfInterestFilter to save some memory for Hessian  
> Vessel segmentation. But I have tough time to figure out how to  
> create a region object under wrapitk.
> Can anyone help me out here?



Hi,

Simply use itk.ImageRegion[dim]().

Regards,

Gaëtan





4> roifilter = itk.RegionOfInterestImageFilter.IUS3IUS3.New()

5> roifilter.SetRegionOfInterest?
Type:		instancemethod
Base Class:	<type 'instancemethod'>
String Form:	<bound method  
itkRegionOfInterestImageFilterIUS3IUS3 
.itkRegionOfInterestImageFilterIUS3IUS3_SetRe <...> S3IUS3; proxy of  
<Swig Object of type 'itkRegionOfInterestImageFilterIUS3IUS3 *' at  
0x9598e78> >>
Namespace:	Interactive
Docstring:
      
itkRegionOfInterestImageFilterIUS3IUS3_SetRegionOfInterest 
(itkRegionOfInterestImageFilterIUS3IUS3 self, itkImageRegion3 _arg)

6> r = itk.ImageRegion[3]()

7> r
7> itkImageRegion3([0, 0, 0], [0, 0, 0])

8> roifilter.SetRegionOfInterest(r)

-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr  http://www.mandriva.org
http://www.itk.org  http://www.clavier-dvorak.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090214/161e1a60/attachment.pgp>


More information about the Insight-users mailing list