dcohen24 / aforge

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

Rotate filter incorrectly calculates the size of the image after rotation #252

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When you rotate an image at -90/90 degrees Math.Cos(angleRad)! = 0. This 
introduces some errors in the size of the resulting image. In the end, after 
the rotation on the edges of images may appear black single-pixel strip

Original issue reported on code.google.com by s.lazu...@gmail.com on 6 Sep 2011 at 4:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 24 Nov 2011 at 9:02

GoogleCodeExporter commented 8 years ago
Fixed rotation filters, so those don't shift image by one pixel, which was easy 
to notice when rotating by -90/90 angles. The bug was caused by the fact that 
for edge pixels source position was calculated one pixel out of image's bounds.

Committed in revision 1638. Will be released in version 2.2.3.

P.S. The bug has nothing to do with Sin/Cos values.

Original comment by andrew.k...@gmail.com on 24 Nov 2011 at 9:34

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 12 Dec 2011 at 9:16