convert 3d matrix to dicom image

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?

댓글 수: 6

Image Analyst
Image Analyst 2012년 12월 15일
I don't know what it means to write a 3D matrix onto an existing image - a 2D image I suppose. Give an example or post a diagram or screenshot.
Amith Kamath
Amith Kamath 2013년 1월 3일
http://www.mathworks.com/matlabcentral/fileexchange/23237-read-and-write-single-file-dicom-volumes is probably what you need. As far as I know, dicomwrite supports only writing a single 2D image and not a 3D volume, which is quite unfortunate.
Sean de Wolski
Sean de Wolski 2013년 1월 3일
@Amith, in more recent versions you can use the 'MultiframeSingleFile' option in dicomwrite() to achieve this.
Amith Kamath
Amith Kamath 2013년 1월 4일
@Sean, I did try that, but it always generates individual 2D images. I must have gone wrong somewhere!
Sean de Wolski
Sean de Wolski 2013년 1월 4일
You may be right that it saves multiple 2d slices in one dcm image, (I've always used Dirk's tools too!)
Jingyang Xie
Jingyang Xie 2021년 2월 6일
Hi Pari, have you solved this problem? Thanks!

댓글을 달려면 로그인하십시오.

답변 (1개)

Amith Kamath
Amith Kamath 2013년 1월 4일
편집: Amith Kamath 2013년 1월 4일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 DICOM Format에 대해 자세히 알아보기

질문:

2012년 12월 15일

댓글:

2021년 2월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by