while converting a gray scale image to tif file for edge detection ;it is showing that the dimension of tif file has changed .how can i make a tif file to 2d image

3 Ansichten (letzte 30 Tage)
colormap(gray)
I = imread('grayimage.tif');
imshow(I)
in this the size of colormap(gray) showing 2d image while size(I) showing 3d image

Antworten (1)

Nut
Nut am 26 Mai 2016
Hi,
try with "rgb2gray":
Example for your case:
colormap(gray)
I = imread('grayimage.tif');
I = rgb2gray(I);
imshow(I)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by