how can I start coding CBIR using color histogram
Mostrar comentarios más antiguos
Hi all
I need help in how could I make a simple CBIR system using histogram technique
from where i should start
3 comentarios
Nivedita Nagappa
el 14 de Nov. de 2013
Movida: DGM
el 20 de Feb. de 2023
Hi...I ve a similar problem..and im totally new to Matlab...can anyone pls help me out in this..??
PS: I too want to develop a simple CBIR system using color histogram
Image Analyst
el 13 de Mayo de 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.
Ragini Gaikwad
el 14 de Mayo de 2021
sorry for that..it was a mistake
Respuestas (1)
Image Analyst
el 27 de Mayo de 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 comentarios
shima said
el 13 de Jun. de 2013
Movida: DGM
el 20 de Feb. de 2023
Image Analyst
el 14 de Jun. de 2013
Just sort the distances and take the ones with the smallest difference first.
Walter Roberson
el 14 de Jun. de 2013
Movida: DGM
el 20 de Feb. de 2023
Find the indices of the images with the lowest Euclidean distance. Retrieve them however needed to retrieve an arbitrary image.
In your current code, how do you refer to (say) the 9'th image? The 37'th ?
shima said
el 14 de Jun. de 2013
Movida: DGM
el 20 de Feb. de 2023
Image Analyst
el 15 de Jun. de 2013
Movida: DGM
el 20 de Feb. de 2023
The square root of the sum of the squares of the distances:
euclideanDistances = sqrt(sum((featureVector1 - featureVector2))^2));
or something like that.
Categorías
Más información sobre Contrast Adjustment en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!