Problems with color map
Show older comments
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 Comments
Stephen23
on 19 Apr 2016
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
on 19 Apr 2016
@ Francisco Javier Vilchez Torralba: just edit your question instead of creating "answer"s.
Answers (0)
Categories
Find more on Blue in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!