필터 지우기
필터 지우기

save image seen in imagesc

조회 수: 10 (최근 30일)
Elysi Cochin
Elysi Cochin 2018년 1월 20일
편집: Elysi Cochin 2018년 1월 26일
when i display input image using "imagesc", it shows in a different format compared to "imshow"
imagesc(Img,[0 255]); colormap(gray); %code i used
is it possible to save the image i view from imagesc to a variable so that i can use it for further processing

채택된 답변

Walter Roberson
Walter Roberson 2018년 1월 20일
Use mat2grey()
  댓글 수: 4
Walter Roberson
Walter Roberson 2018년 1월 22일
Take 255 minus the image. imclearborder. Take 255 minutes that result.
Walter Roberson
Walter Roberson 2018년 1월 22일
IM2 = 255 - imclearborder( 255 - scaled_Img );

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

추가 답변 (1개)

Image Analyst
Image Analyst 2018년 1월 20일
Try using imwrite() to save your indexed image:
imwrite(Img, filename);

카테고리

Help CenterFile Exchange에서 Build Interactive Tools에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by