Filter löschen
Filter löschen

Finding example images in the distribution

20 Ansichten (letzte 30 Tage)
David Young
David Young am 15 Feb. 2011
Beantwortet: Image Analyst am 19 Jan. 2015
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 Kommentar
Andreas Goser
Andreas Goser am 15 Feb. 2011
I think this is a very good question. I also struggle with that when discussion image processing examples.

Melden Sie sich an, um zu kommentieren.

Antworten (3)

Image Analyst
Image Analyst am 19 Jan. 2015
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'));

Sean de Wolski
Sean de Wolski am 15 Feb. 2011
doc
-> Image Processing Toolbox -> Getting Started -> Image Credits
  1 Kommentar
David Young
David Young am 15 Feb. 2011
Thanks - this helps, but there are images not listed (e.g. spine.tif, tire.tif), some entries don't give file names (e.g. "LAN files") and the filename extensions aren't given.

Melden Sie sich an, um zu kommentieren.


Florin Neacsu
Florin Neacsu am 9 Sep. 2011
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

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by