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!
@ Francisco Javier Vilchez Torralba: just edit your question instead of creating "answer"s.

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Blue 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by