Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

convert 3d matrix to dicom image

Asked by pari

pari

on 15 Dec 2012

hello every one... i write a code for image proccessing on dicom images. first i read a dicom image with 'dicomread'. now im looking for a solution to write a 3d matrix on that dicom image so change it. can anyone help me on how can i do this?

5 Comments

Sean de Wolski

Sean de Wolski

on 3 Jan 2013

@Amith, in more recent versions you can use the 'MultiframeSingleFile' option in dicomwrite() to achieve this.

Amith Kamath

Amith Kamath

on 4 Jan 2013

@Sean, I did try that, but it always generates individual 2D images. I must have gone wrong somewhere!

Sean de Wolski

Sean de Wolski

on 4 Jan 2013

You may be right that it saves multiple 2d slices in one dcm image, (I've always used Dirk's tools too!)

pari

pari

1 Answer

Answer by Amith Kamath

Amith Kamath

on 4 Jan 2013
Edited by Amith Kamath

Amith Kamath

on 4 Jan 2013

I suppose for the time being, this happens to be the best available solution: http://www.mathworks.com/matlabcentral/fileexchange/23237-read-and-write-single-file-dicom-volumes , and considering that you're opening it for analysis, I suppose it isn't a great idea to overwrite the existing DICOM with edited data.

0 Comments

Amith Kamath

Amith Kamath

Contact us