how can I start coding CBIR using color histogram

Hi all
I need help in how could I make a simple CBIR system using histogram technique
from where i should start

3 件のコメント

Nivedita Nagappa
Nivedita Nagappa 2013 年 11 月 14 日
移動済み: DGM 2023 年 2 月 20 日
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
Image Analyst 2021 年 5 月 13 日
@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
Ragini Gaikwad 2021 年 5 月 14 日
sorry for that..it was a mistake

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2013 年 5 月 27 日

0 投票

You mean like this: http://labs.tineye.com/multicolr/ ?
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 件のコメント

shima said
shima said 2013 年 6 月 13 日
移動済み: DGM 2023 年 2 月 20 日
hi again I used grayscale and i stuck when i compute Euclidean distance after i get it so what should i do how to retreive the similarity image in my database one qurey image and file image which have 111 images
Image Analyst
Image Analyst 2013 年 6 月 14 日
Just sort the distances and take the ones with the smallest difference first.
Walter Roberson
Walter Roberson 2013 年 6 月 14 日
移動済み: DGM 2023 年 2 月 20 日
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
shima said 2013 年 6 月 14 日
移動済み: DGM 2023 年 2 月 20 日
sorry , I didn't get what u meant both of you after I stort Euclidean distance or find the lowest what should I do i stuck there couldanyone to hlep me to write that in matlab
Image Analyst
Image Analyst 2013 年 6 月 15 日
移動済み: DGM 2023 年 2 月 20 日
The square root of the sum of the squares of the distances:
euclideanDistances = sqrt(sum((featureVector1 - featureVector2))^2));
or something like that.

サインインしてコメントする。

タグ

質問済み:

2013 年 5 月 27 日

移動済み:

DGM
2023 年 2 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by