download test images for MATLAB

22 ビュー (過去 30 日間)
tina jain
tina jain 2015 年 4 月 28 日
コメント済み: Minakshi Atre 2022 年 2 月 4 日
can any one tell me about website for download test images from it ?

回答 (1 件)

Thomas Koelen
Thomas Koelen 2015 年 5 月 6 日
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 件のコメント
Minakshi Atre
Minakshi Atre 2022 年 2 月 4 日
Thank you so much!
This is so perfect!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDownloads についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by