[Insight-users] Reading/writing multiframe DICOM files?
Mathieu Malaterre
mathieu.malaterre at gmail.com
Wed Jun 10 05:26:25 EDT 2009
On Tue, Jun 9, 2009 at 10:56 PM, motes motes<mort.motes at gmail.com> wrote:
> I have a .dcm file containing multiple frames. I need to downsample each
> frame and store them in a new and smaller .dcm file. Currently I use matlab
> for the first part:
>
> for i=1: frameNum
> img0 = dicomread(filename, 'frames', i)
> img1 = downsample(img0);
> %dicomwrite(img1, 'test.dcm')
> % store img1....
> end
>
> But it seems that its only possible to store each frame as a separate file -
> and not as a single multiframe .dcm file.
>
> I was therefore wondering if ITK had any functionality to make this
> possible? I found this post:
>
> http://www.itk.org/pipermail/insight-users/2003-September/004762.html
>
> and the file itkDICOMImageSeriesTest.cxx in:
>
> InsightToolkit-3.12.0\Testing\Code\IO
>
> But maybe there are some more documentation on how to do this?
>
Yes.
7.12.3 Reading a 2D DICOM Series and Writing a Volume (from
ItkSoftwareGuide.pdf).
Please do not cross post to dicom newsgroup for a matlab function, thanks.
2cts.
--
Mathieu
More information about the Insight-users
mailing list