converting Cardiac DICOM image into gray scale for Image segmentation.

How to convert DICOM image into a grayscale image or RGB Image ? I want to draw contour on the dicom image for finding Cardiac epi and endocardium boundaries using level set segmentation method .

Answers (1)

RGB=dicomread('filename');%%%%%read dicom file which is in current directory path if not add path%%
G=rgb2gray(RGB);%%%convert to grayscale image%%%

Categories

Tags

Community Treasure Hunt

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

Start Hunting!