[Insight-users] Why are getBufferAs* methods not available in Java?

Mathew Guilfoyle mrguilfoyle at gmail.com
Wed Mar 13 15:02:38 EDT 2013


Hi, I am trying to use the Java SimpleITK wrapper for medical image
processing.

I need to do some manipulation of the image as a plain numerical array
before and after leveraging the ITK segmentation filters.  However, I can't
find an efficient way of either transferring a numerical array to an SITK
Image object or reverting an Image object back to a numerical array.  Using
nested loops to do a per-pixel setPixelAs* or getPixelAs* operation takes
an inordinate amount of time.

I understand the getPixelContainer method is now deprecated (?) and was
supposed to be replaced by the getBufferAs* methods, which I can see in the
Doxygen Image class listing but seem to be suppressed in the Java wrapper
(v0.6.1).  Is there a way round this?

Many thanks for any help/advice

Mathew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130313/29a773a3/attachment.htm>


More information about the Insight-users mailing list