필터 지우기
필터 지우기

How to read image from axes?

조회 수: 2 (최근 30일)
keshav poojari
keshav poojari 2019년 1월 31일
답변: Rik 2019년 1월 31일
img=imread(imagename);
im_proc=rgb2gray(img);
colormap winter
axes(handles.axes1)
imshow(im_proc);
i used R2013a version. I cant save the im_proc image.. when i save , the image will not convert to winter colormap...
So..can i read the image from Axes????

답변 (1개)

Rik
Rik 2019년 1월 31일
That is not how it works. What you can do instead is using ind2rgb to convert your gray scale image (which you got with rgb2gray) back to an RGB image again.
img=imread(imagename);
im_proc=rgb2gray(img);
im_proc=ind2grb(im_proc,colormap('winter'));
imwrite(im_rgb,new_image_name)

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by