[Insight-users] Importing image data from a byte array

SCHMID, Jerome jeromeschmid at surgery.cuhk.edu.hk
Tue Sep 6 19:31:08 EDT 2005


Hi Chris,

Have a look in the manual, there is a section in the beginning about image creation and importing data from a buffer. The filter concerned is itk::importImageFilter. Think this should be what you're looking for.

Best Regards,

Jerome Schmid

-----------------------------------
Jerome SCHMID
Project Manager/ Engineer 
Augmented and Virtual Reality
MIS Centre
Prince of Wales Hospital
Chinese University Of Hong-Kong
-----------------------------------



-----Original Message-----
From: insight-users-bounces+jeromeschmid=surgery.cuhk.edu.hk at itk.org on behalf of Chris Farmer
Sent: Wed 9/7/2005 7:21 AM
To: insight-users at itk.org
Subject: [Insight-users] Importing image data from a byte array
 
 
Hi.  I've just started working with the ITK library and have a simple
question.  In my current application, I have a byte array that contains
image data (usually in png format).  I'd like to use that data in the
ITK world, but I can't see a good way to use it without first writing
out a file and using the standard reader model that is shown in the
examples.  I poked through the ImageIOBase code to see how easy it would
be to use a byte array as a data source instead of a file, but it didn't
seem too obvious.
 
Can someone please give me a pointer to using a byte array as a source
of image data?
 
 
Thanks,
Chris
 
 
 
 






More information about the Insight-users mailing list