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 commentaires

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

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Color and Styling dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by