download test images for MATLAB

60 visualizaciones (últimos 30 días)
tina jain
tina jain el 28 de Abr. de 2015
Comentada: Minakshi Atre el 4 de Feb. de 2022
can any one tell me about website for download test images from it ?

Respuestas (1)

Thomas Koelen
Thomas Koelen el 6 de Mayo de 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(x.name,C{ii})),D));
end
D = D(idx);
for ii = 1:numel(D)
fprintf('%s\n',D(ii).name)
end
if nargout, varargout{1}=pth; end
  1 comentario
Minakshi Atre
Minakshi Atre el 4 de Feb. de 2022
Thank you so much!
This is so perfect!

Iniciar sesión para comentar.

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by