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!