Borrar filtros
Borrar filtros

how can i apply rgb2gray to dicom image...

1 visualización (últimos 30 días)
Usama Javed
Usama Javed el 9 de En. de 2012
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{:});

Respuesta aceptada

Chandra Kurniawan
Chandra Kurniawan el 9 de En. de 2012
Please tell me the size of your dicom image by typing
size(I) in command window.
  5 comentarios
Chandra Kurniawan
Chandra Kurniawan el 9 de En. de 2012
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 el 9 de En. de 2012
al right thanks..... :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre DICOM Format en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by