reading a single image on matlab
5 views (last 30 days)
Show older comments
[filename,pathname]=uigetfile('*.jpg','Select the image');
B= imread(fullfile(pathname,filename), 'jpg');
figure(1);
imshow(B);
---------------------------------------------------------------------------------------------------
B = imread(sprintf('/Users/aylin/Desktop/plants ', k)); // my mistake is in here. how can i solve it? (on macOS)
B = imresize(B,[1000,260]);
[I3,RGB] = createMask(B);
seg_img = RGB;
img = rgb2gray(seg_img);
glcms = graycomatrix(img);
---------------------------------------------------------------------------------------------------
so which version i should use? i am trying to read images from a folder. i select one of the images and then my codes are analysing them.This parts giving error..
12 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!