[Insight-users] Wrapping ImageToImageFilter with high-dimensional pixel type

Bradley Lowekamp blowekamp at mail.nih.gov
Thu Apr 12 08:55:42 EDT 2012


Hello,

What about use a VectorImage instead of the fixed length Image of CovariantVectors.

I unfortunately don't know how well VectorImages are supported in WrapITK, however it is my understanding that it should be fairly easy to extent classes instantiating cmake macros to this.

Alternatively, there is SimpleITK which has chosen to support VectorImages instead of all the combinations of Images of RGB, FixArray, Vector, CovariantVector etc.


Brad

On Apr 12, 2012, at 8:34 AM, Tobias Maier wrote:

> Hi all,
> 
> I have implemented a filter to extract features on 3D images. It is a 
> ImageToImageFilter with output type itk::Image< 
> itk::CovariantVector<float, dim>, 3>. The dimension is calculated from a 
> parameter given as template parameter and usually high.
> 
> Using this filter from C++ Code works fine, but because of the high 
> dimensions of the CovariantVector (>10) wrapping the code for python 
> requires a lot of effort to wrap the required types (Vector, FixedArray, 
> Image, ...) without wrapping everything for this long vectors.
> 
> Using a 4D image as output would make the wrapping easy, but I do not 
> like the mixing of features and image dimensions.
> 
> Do you know a solution that makes wrapping feasible while keeping the 
> interface clean?
> 
> Thanks for any help you can provide.
> 
> _____________________________________
> Powered by 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

========================================================
Bradley Lowekamp  
Medical Science and Computing for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov



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


More information about the Insight-users mailing list