wigbkons / aforge

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

ContrastCorrection wrong if factor == 1 #341

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use ContrastCorrection filter with Factor == 1

What is the expected output? What do you see instead?
Would expect similar behaviour like Factor == 0 or Factor == 2 - instead there 
are artifacts in brighter areas.

What version of the product are you using?
2.2.4

Please provide any additional information below.
IMO the bug comes from setting the Factor where "if factor > 1" selects the 
correction method. It should most probably be "if factor > 0".

Original issue reported on code.google.com by uja...@gmail.com on 10 Apr 2013 at 11:10

GoogleCodeExporter commented 9 years ago
Fixed factor check in Contrast Correction image processing filter.

Fixed in revision 1713.

Original comment by andrew.k...@gmail.com on 26 Jun 2013 at 9:35

GoogleCodeExporter commented 9 years ago

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