MATLAB: Imagen precessing image processing i am trying to open a picture but every time i tried it send and error "??? No appropriate method or public field mat for class image." >> imagesc(image.mat) ??? No appropriate method or public field mat for class image. >> Best Answer You need to first load your mat file with the load() functionif exist('image.mat', 'file') % Load image from mat file. storedStructure = load('image.mat'); % Get the image. yourImage = storedStructure.yourImage; % yourImage is whatever you called your image when you saved your mat file. % Display it. imagesc(yourImage); % Get rid of the goofy default colormap colormap(gray(256));else msgbox('File does not exist.');end Related SolutionsMATLAB: Convert it into index type [image_mat, cmap] = imread('flage.png'); if isempty(cmap) if ndims(image_mat) > 2 image_rgb = image_mat; else image_rgb = repmat(image_mat, [1 1 3]); end else image_rgb = ind2rgb(image_mat, cmap); end imshow(image_rgb) MATLAB: Promediar los pixeles de una imagen Cast to double before adding so that you will avoid clipping:% Extract the individual red, green, and blue color channels.redChannel = rgbImage(:, :, 1);greenChannel = rgbImage(:, :, 2);blueChannel = rgbImage(:, :, 3);meanImage = (double(redChannel) + double(blueChannel)) / 2;cast back to uint8 after that if you want:meanImage = uint8(meanImage); Related QuestionI need put color a imagen with matricesLoading saved colormap for use
Best Answer