how can I start coding CBIR using color histogram
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi all
I need help in how could I make a simple CBIR system using histogram technique
from where i should start
3 commentaires
Image Analyst
le 13 Mai 2021
@Ragini Gaikwad, this is not a comment for @shima said on regarding his 8 year old question on CBIR. This is a new question, so please start your own thread.
Réponses (1)
Image Analyst
le 27 Mai 2013
Just try taking the mean of each color channel and have that be your feature vector that you save along with each image's record in your data base.
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
% Get means.
meanRed = mean2(redChannel);
meanGreen = mean2(greenChannel);
meanBlue = mean2(blueChannel);
Then, for a desired color that you want to find in your database, search all records in the database for those whose mean colors are close enough to your desired color and return them.
5 commentaires
Image Analyst
le 15 Juin 2013
Déplacé(e) : DGM
le 20 Fév 2023
The square root of the sum of the squares of the distances:
euclideanDistances = sqrt(sum((featureVector1 - featureVector2))^2));
or something like that.
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!