if isequal(filePath, 0)
return;
end
if ~isequal(handles.filePath, 0)
InitAxes(handles);
end
handles.filePath = 0;
handles.vi = 0;
handles.Img = 0;
handles.ind_dis_sort = 0;
handles.page = 0;
[Img, map] = imread(filePath);
if ~isempty(map)
Img = ind2rgb(Img, map);
end
imshow(Img, [], 'parent', handles.axes1);
handles.filePath = filePath;
set(handles.text6,'string',filePath);
handles.Img = Img;
guidata(hObject, handles);
【matlab】如何从文件夹中读取图片并放入坐标axes中
于 2022-05-17 22:10:41 首次发布