Save binary image into .dcm

3 views (last 30 days)
Isabel
Isabel on 19 Aug 2014
Commented: Geoff Hayes on 26 Aug 2014
Hi
I have segmented an organ from a CT scan (original image given in DICOM) and I would like to save the segmented image (binary one) as .dcm due to I need to use it after in other software that only read .dcm. Could someone explain me how I can do that?
Thank you in advance.
  7 Comments
Isabel
Isabel on 26 Aug 2014
Hi Geoff!
To flip the image I used flipdim(seg17,3) due to my image is a volume and flipud only allow 2D, but thanks for the suggestion anyway.
About my problem I finally manage to fix it. The problem was not in the way to create the DICOM file with dicomwrite, the problem was in the way that ITK-Snap read the headers when you load a CT scan. So, now everything is working fine.
Thank you for your help!
Geoff Hayes
Geoff Hayes on 26 Aug 2014
Glad that you were able to get everything working, Isabel!

Sign in to comment.

Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!