how can i apply rgb2gray to dicom image...

조회 수: 1 (최근 30일)
Usama Javed
Usama Javed 2012년 1월 9일
why cant i apply rgb2gray to dicom image... its giving an error...
>> I = dicomread('\C:\Users\Asad\Documents\MATLAB\1.dcm');
>> I=rgb2gray(I);
??? Error using ==> rgb2gray>parse_inputs at 82
MAP must be a m x 3 array.
Error in ==> rgb2gray at 35
X = parse_inputs(varargin{:});

채택된 답변

Chandra Kurniawan
Chandra Kurniawan 2012년 1월 9일
Please tell me the size of your dicom image by typing
size(I) in command window.
  댓글 수: 5
Chandra Kurniawan
Chandra Kurniawan 2012년 1월 9일
It seem that gaborfilter1 is not built-in matlab function.
So, you can verify to the author what is input image for gaborfilter1.
Is it two-dimensional arrays?
If yes, then without performing 'rgb2gray', the output should be correct.
Usama Javed
Usama Javed 2012년 1월 9일
al right thanks..... :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by