09-17-2013 06:58 AM
Hi Klemen,
if you can integrate it with the attached file, it would be very helpful for me.
Thank you
09-17-2013 07:51 AM
Hi Klemen,
i have integrated it,check it whether it is correct,if it is correct,
I am giving 32 as maxcolor input,but the values for R is 26 instance and G is 26 instance and for B is 25 instance.
why i am getting the value as 32?
Regards
Madhubalan
09-17-2013 08:27 AM
Hello,
read some literature regarding the Octree quantization to understand it better. The octree pallete does not guarantee the exact specified number of colors.
Start here: http://www.microsoft.com/msj/archive/S3F1.aspx
And also, you can simplify your code and count the number of colors here:
Best regards,
K