xVir / aforge

Automatically exported from code.google.com/p/aforge
Other
1 stars 0 forks source link

OtsuThreshold Filter problem #297

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open the attached image1-bad.bmp in AForge IP Lab (pixel format = 
Format8bppIndexed)
2. Select Filters>Binarization>OtsuThreshold
3. Observe the resulting image (all black, the thresholding failed)
4. For comparison, repeat steps 1-3 for the attached image image2-good.bmp.  
You should get the result as shown in attached image 
image3-good-thresholded.bmp.

What is the expected output? What do you see instead?
Expected output is a bitonal image with black background and white "lettering". 
 Instead, the resulting image is all black.

What version of the product are you using?
AForge release 2.2.4

Please provide any additional information below.
(Please see the attached images).

Original issue reported on code.google.com by james.c....@gmail.com on 11 May 2012 at 5:29

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed OtsuThreshold bug, which was leading to wrong threshold calculation for 
images with highest intensity smaller than 255.

Committed in revision 1688.

Original comment by andrew.k...@gmail.com on 12 May 2012 at 2:44

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 16 Jul 2013 at 9:52