reading a single image on matlab

5 views (last 30 days)
aylin yilmaz
aylin yilmaz on 19 Sep 2019
Commented: Walter Roberson on 21 Sep 2019
[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
aylin yilmaz
aylin yilmaz on 21 Sep 2019
Error using untitled (line 5)
Could not cd to "/Users/aylin/Desktop/Final File/"
Walter Roberson
Walter Roberson on 21 Sep 2019
! find ~ -type d -name "Final F*" -print

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!