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
1 次查看(过去 30 天)
显示 更早的评论
colormap(gray)
I = imread('grayimage.tif');
imshow(I)
in this the size of colormap(gray) showing 2d image while size(I) showing 3d image
0 个评论
回答(1 个)
Nut
2016-5-26
Hi,
try with "rgb2gray":
Example for your case:
colormap(gray)
I = imread('grayimage.tif');
I = rgb2gray(I);
imshow(I)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!