[Insight-users] how to create an image region with python

Li, Wen WLi at childrensnational.org
Fri Apr 19 20:02:39 EDT 2013


Perfect.

Thanks,
Wen

________________________________
From: Kiên Kiêu [kien.kieu at jouy.inra.fr]
Sent: Friday, April 19, 2013 6:21 PM
To: Li, Wen
Subject: Re: [Insight-users] how to create an image region with python

Hi,

try

import itk
refRegion = itk.ImageRegion._2([0,0],[256,256])

Le 19 avr. 13 à 21:53, Li, Wen a écrit :

Hi all,

This must be a dumb question. I ask here just in case someone can give me a quick answer.

I need to do the similar thing like this with python wrapped itk:

InputImageType::RegionType refRegion(startIdx, regionSize);

Thank you in advance.

Wen
_____________________________________
Powered by www.kitware.com<http://www.kitware.com>

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

---
Kiên Kiêu                    tel  : + 33 (0)1 34 65 28 16
Unité MIA, INRA              fax  : + 33 (0)1 34 65 22 17
Domaine de Vilvert           email: Kien.Kieu at jouy.inra.fr<mailto:Kien.Kieu at jouy.inra.fr>
F-78350 Jouy-en-Josas        url  : http://www.inra.fr/miaj/




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130420/351bc70b/attachment.htm>


More information about the Insight-users mailing list