BalaShiyamala / opencvdotnet

Automatically exported from code.google.com/p/opencvdotnet
0 stars 0 forks source link

CvRgbPixel.GreyLevel returns wrong value #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a CvRgbPixel with 184,184,184
2. ask for GreyLevel, the returned value is 183.

What is the expected output? What do you see instead?
of course the correct output should be 184. This is probably caused by a
loss of precision when converting from RGB to GreyLevel.

What version of the product are you using? On what operating system?
0.7

Please provide any additional information below.

Original issue reported on code.google.com by 84ye...@gmail.com on 13 Feb 2008 at 5:35