Content-Based Image Retrieval and Precision-Recall graphs using Color Histograms in MATLAB
So far, I have been able to plot Precision-Recall graphs for grayscale images in a CBIR system. However, I would like to know how to perform the same process for RGB images. My code: Inp1=rgb2gray(imread('D:\visionImages\c1\1.ppm')); figure, imshow(Inp1), title('Input image 1'); num_bins = 32; A = imhist(Inp1, num_bins); srcFiles = dir('D:\visionImages\c1\*.ppm'); B = zeros(num_bins, 30); ptr=1; for i = 1 : length(srcFiles) filename = strcat('D:\visionImages\c1\',srcFiles(i).name); I = imread(filename); I=rgb2gray(I); B(:,ptr) = imhist(I, num_bins); ptr=ptr+1; end % histogram intersection a =