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

Tobias Maier tobias.maier at unibas.ch
Thu Apr 12 10:03:21 EDT 2012


Thanks Brad,

now the filter and wrapping works fine.
There is an issue with writing the VectorImage with the ImageFileWriter, 
but I'll get this working.

Regards,
Tobias


On 04/12/2012 02:55 PM, Bradley Lowekamp wrote:
> 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
>
>
>
>


More information about the Insight-users mailing list