Colour quantization, uniform quantization
Ältere Kommentare anzeigen
Hi there, I'm working on a project on colour quantization and I'm a little lost with matlab (complete beginner). The method of quantization I'm working on is uniform quantization which splits the red and green axis into 8 segments and the blue axis into 4 giving 256 regions. Then finds the average colour in each region. I'm wondering how I would go about this my code so far for this:
image = imread(ImageName);
red = loadedImg(:,:,1);
green = loadedImg(:,:,2);
blue = loadedImg(:,:,3);
I honestly have no idea as I'm new to matlab! Thanks in advance!
Antworten (1)
Image Analyst
am 10 Dez. 2015
0 Stimmen
Don't call your image "image". Call it loadedImage or something because image() is the name of a built-in function. So then just do a for loop to get the 3D gamut. Attached is an example.
1 Kommentar
Debs Bradley
am 10 Dez. 2015
Kategorien
Mehr zu Color finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!