Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. %Location of the image.
  2. Class1 = 'Training/11';
  3. % load the dataset
  4. dirList = dir(fullfile(Class1,'*.ppm'));
  5. %dirList
  6. files={dirList.name}';
  7.  
  8. figure,imshow(files)
  9.  
  10. Error using imageDisplayValidateParams
  11. Expected input number 1, I, to be one of these types:
  12.  
  13. double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64,
  14. logical
  15.  
  16. Instead its type was cell.
  17.  
  18. Error in imageDisplayValidateParams (line 12)
  19. validateattributes(common_args.CData, {'numeric','logical'},...
  20.  
  21. Error in imageDisplayParseInputs (line 79)
  22. common_args = imageDisplayValidateParams(common_args);
  23.  
  24. Error in imshow (line 220)
  25. [common_args,specific_args] = ...
  26.  
  27. im1 = imread(files{1}); % Read in first image
  28. imshow(im1); % Show the first image
  29. figure;
  30. im2 = imread(files{2}); % Read in second image
  31. imshow(im2); % Show the second image
  32.  
  33. figure;
  34. for i = 1 : 9
  35. subplot(3, 3, i);
  36. im = imread(files{i});
  37. imshow(im);
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement