Conversion of .mha file to grayscale for segmentation

1 view (last 30 days)
Hi, I am trying to convert a .mha image to grayscale. When I used rgb2gray I got this error Error using rgb2gray>parse_inputs (line 89) RGB must be a m x n x 3 array.
Error in rgb2gray (line 37) X = parse_inputs(X); I tried looking into the other question forums to understand this error. But couldn't quite understand the problem.

Accepted Answer

Image Analyst
Image Analyst on 23 Nov 2015
I don't know what format that is. What does this say, before that line:
whos X
  4 Comments
Dileep Kumar Kothamasu
Dileep Kumar Kothamasu on 12 Mar 2018
Do we need to use all the 176 slices for preprocessing and segmentation? if so how to do it and all my 176 slices are .png format is the format ok for further process or should we change it?

Sign in to comment.

More Answers (0)

Categories

Find more on Convert Image Type 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!