Hi everybody!
I have a problem with color maps. Y have a guide with three axes, but the colormap of one of axes is affecting to the other axex. If I try h=axes(handles.axes1) appears this error: Error using axes.Too many output arguments. I try use the function freezecolor but I don't get obtain the result expect.
function Show_Image(Cube_PT,Cube_CT,handles,InfoPT_ord,InfoCT_ord,i,filter)
h=axes(handles.ImagePT)
% axis off; % imshow(Cube_PT(:,:,i),[]); imagesc(Cube_PT(:,:,i)); colormap(gray); freezeColors; axis off; if(filter==0) axes(handles.ImageCT); % axis off; % imshow(Cubo_CT(:,:,i),[]); imagesc(Cubo_CT(:,:,i)); colormap(gray); freezeColors; axis off; else axes(handles.ImageCT); % imshow(Cube_CT(:,:,i),[]); m=str2double(get(handles.row,'String')); n=str2double(get(handles.column,'String')); Cube_CT(:,:,i)=wiener2(Cube_CT(:,:,i),[m n]); imagesc(Cubo_CT(:,:,i)); colormap(gray); freezeColors; axis off;
end
end

댓글 수: 2

Francisco Javier Vilchez Torralba "Answer" moved here:*
Sorry the code is:
function Show_Image(Cube_PT,Cube_CT,handles,InfoPT_ord,InfoCT_ord,i,filter)
h=axes(handles.ImagePT)
% axis off;
% imshow(Cube_PT(:,:,i),[]);
imagesc(Cube_PT(:,:,i));
colormap(gray);
freezeColors;
axis off;
if(filter==0)
axes(handles.ImageCT);
% axis off;
% imshow(Cube_CT(:,:,i),[]);
imagesc(Cube_CT(:,:,i));
colormap(gray);
freezeColors;
axis off;
else
axes(handles.ImageCT);
% imshow(Cube_CT(:,:,i),[]);
m=str2double(get(handles.row,'String'));
n=str2double(get(handles.column,'String'));
Cube_CT(:,:,i)=wiener2(Cube_CT(:,:,i),[m n]);
imagesc(Cube_CT(:,:,i));
colormap(gray);
freezeColors;
axis off;
end
end
thanks!
Stephen23
Stephen23 2016년 4월 19일
@ Francisco Javier Vilchez Torralba: just edit your question instead of creating "answer"s.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Blue에 대해 자세히 알아보기

태그

댓글:

2016년 4월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by