[Insight-users] SimpleITK create simple image

Sam sistephan at gmail.com
Sun Nov 25 17:50:29 EST 2012


Hello,
I'm using SimpleITK C# to create a blank image.  I would like to create a
UC2 image but since that is not available I'm using UInt8.  It looks like
the dcm file created is compressed.  Can I tell SimpleITK not to compress
the file?

itk.simple.Image image = new itk.simple.Image(256, 265,
itk.simple.PixelIDValueEnum.sitkUInt8);
ITK.WriteImage(image, "C:\\testSimpleITK\\simpleITKFirstImage.dcm");

Also, is there a way to read/modify the DICOM header?



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/SimpleITK-create-simple-image-tp7581746.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list