Finding example images in the distribution
28 ビュー (過去 30 日間)
古いコメントを表示
Is there an easy way to find all the example images (such as pout.tif, greens.jpg) that come with MATLAB and any installed toolboxes? This would be useful for setting up one's own demonstrations and giving code examples to other users.
I can find many by a recursive search on the MATLAB directory tree, looking for likely filename extensions, but I wondered if someone had provided a simpler way (e.g. just a list in the documentation) that I've missed.
1 件のコメント
Andreas Goser
2011 年 2 月 15 日
I think this is a very good question. I also struggle with that when discussion image processing examples.
回答 (3 件)
Image Analyst
2015 年 1 月 19 日
They actually changed where they kept their images when they went to R2014b. So this used to work:
folder = fullfile(matlabroot, '\toolbox\images\imdemos');
but not any more. So I've been told from the Mathworks that this is the best way:
% Determine where demo folder is (works with all versions).
folder = fileparts(which('cameraman.tif'));
0 件のコメント
Florin Neacsu
2011 年 9 月 9 日
Hi,
This might be late. For me it's C:\Program Files\MATLAB\R2007b\toolbox\images\imdemos.
I got there by pure accident. I remember modifying cameraman and when I tried something like
imageTest=imread('cameraman.tif')
I got this error
??? Error using ==> rtifc
C:\Program
Files\MATLAB\R2007b\toolbox\images\imdemos\cameraman.tif:
No space to read TIFF directory.
Anyway,HTH.
Regards, Florin
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!