creating database in matlab

조회 수: 4 (최근 30일)
sweta arya
sweta arya 2015년 8월 7일
댓글: sweta arya 2015년 8월 11일
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?

채택된 답변

Walter Roberson
Walter Roberson 2015년 8월 7일
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
sweta arya
sweta arya 2015년 8월 11일
Thank you
sweta arya
sweta arya 2015년 8월 11일
from where i can collect images (of poor,average & high quality) for my analysis?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by