Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Look up table

Solved!
Go to solution

Hi Klemen,

                if you can integrate it with the attached file, it would be very helpful for me.

 

Thank you

0 Kudos
Message 11 of 13
(1,543 Views)

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

0 Kudos
Message 12 of 13
(1,538 Views)

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:

 

image_quantization_octree_dotNET_BD.png

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 13 of 13
(1,534 Views)