DB = DBFROMPATH(PATH) builds a database from the images in a file hierarchy. The directory PATH has one sub-directory for each visual category and, within each of those, a list of images from the corresponding category.
Many simple databases such as Caltech-4, Caltech-101 and Graz come in this format.
A few options may be used to control the process:
Shuffle [0]
Shuffle images within each category.
Verbose [0]
Set verbosity level.
FileFilter [.png|.jpg|.gif|.bmp|.pgm|.pbm|.ppm]
Set a regexp to filter out unwanted image file. Use Verbose=1 to see the default filter.
DirFilter [all directories]
Set a regexp to filter otu unwanted directories. Use Verbose=1 to see the default filter.