creating database in matlab

3 Ansichten (letzte 30 Tage)
sweta arya
sweta arya am 7 Aug. 2015
Kommentiert: sweta arya am 11 Aug. 2015
I want to create a database of images,containing various fields like image name,brightness value of image and colorfulness of image etc.after filling the values in database ,i want to retrieve specific images based on brightness & colorfulness features of image.how can i do this?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 7 Aug. 2015
Use a struct array, one entry per file.
When it comes time to search on (say) brightness, then
all_brightness = [YourStruct.brightness];
bright_match = all_brightness >= min_to_match & all_brightness <= max_to_match;
matching_entries = YourStruct(bright_match);
Now matching_entries is the subset that match on brightness. You can process them further. For example,
fprintf('The %d images that match are:\n', length(matching_entries));
disp({matching_entries.filename});
  7 Kommentare
sweta arya
sweta arya am 11 Aug. 2015
Thank you
sweta arya
sweta arya am 11 Aug. 2015
from where i can collect images (of poor,average & high quality) for my analysis?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Call C++ from MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by