what does this lines mean?

3 Ansichten (letzte 30 Tage)
sara
sara am 16 Apr. 2018
Beantwortet: Walter Roberson am 16 Apr. 2018
repo = '/media/data/images/';
filelist = dir([repo '*.jpg']);
sift_descr = {}

Antworten (1)

Walter Roberson
Walter Roberson am 16 Apr. 2018
filelist will become a struct vector, in which every entry describes a '.jpg' file found in /media/data/images/ . filelist will not be the list of files: it will information about the files. The names are in the .name field of the struct,
filenames = {filelist.name};
Note that the filenames extracted this way will not contain the directory information.
After that is done, the variable sift_descr is initialized to become an empty cell array. This step does not depend upon the previous two lines.

Community Treasure Hunt

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

Start Hunting!

Translated by