download test images for MATLAB

70 views (last 30 days)
tina jain
tina jain on 28 Apr 2015
Commented: Minakshi Atre on 4 Feb 2022
can any one tell me about website for download test images from it ?

Answers (1)

Thomas Koelen
Thomas Koelen on 6 May 2015
The test images are locates int his folder:
C:\Program Files\MATLAB\R2013b\toolbox\images\imdemos
(if you used to default installation directory)
otherwise you can find the directory here:
function varargout=demoimgs
pth = fileparts(which('cameraman.tif'));
D = dir(pth);
C = {'.tif';'.jp';'.png';'.bmp'};
idx = false(size(D));
for ii = 1:length(C)
idx = idx | (arrayfun(@(x) any(strfind(,C{ii})),D));
D = D(idx);
for ii = 1:numel(D)
if nargout, varargout{1}=pth; end
  1 Comment
Minakshi Atre
Minakshi Atre on 4 Feb 2022
Thank you so much!
This is so perfect!

Sign in to comment.


Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!