using HSV histogram of 6 bins in image classification

Hi please i need help .... could anyone tell me how to use HSV histogram in image classification i tried hard i get the histograms but when i tried to save results in a file to use it in nearest neighbor classifier i stopped i didn't know what to save and how to use data.
i used this code

2 comentarios

If you search this resource for
hsv histogram
you will find a number of discussions.
where can i find the discussion

Iniciar sesión para comentar.

 Respuesta aceptada

Image Analyst
Image Analyst el 23 de Feb. de 2013
Didn't I already give you code for that in an earlier question? I did for someone...

5 comentarios

Nermeen alami
Nermeen alami el 23 de Feb. de 2013
Editada: Nermeen alami el 23 de Feb. de 2013
ya u gave it to me but i reached the histogram ..now i need to know how to save histogram results in a file and send it to nearest neighbor classifier. please if u have any idea about that tell me i'm really lost
save FILENAME NAME_OF_YOUR_HISTOGRAM_VARIABLE
is (.mat) extension suitable one?
can i load the code to tell me whats matter ?
.mat is the expected file extension when you use save(), and is completely suitable if you will be loading the information back into MATLAB. You can use
load FILENAME
to restore the histogram variable value to your workspace.
Yes, that is fine:
fullFileName = fullfile(yourFolder, 'hsv_histograms.mat');
save(fullFileName, 'hCount', 'sCount', 'vCount');
yourFolder can be pwd (the current folder) if you want.
I don't know what your last sentence means. No idea.

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by