Re: Auto Rotation
Anthony Thyssen <[email protected]> Thu, 17 Feb 2011 17:54:44 +1000
| Newsgroups | gmane.comp.video.image-magick.user |
|---|---|
| Message-ID | <20110217175444.6d6d3655@wraith> |
On Wed, 16 Feb 2011 13:29:35 -0800 [email protected] wrote: | Hello All, | | I've written many manipulation algorithms for our software using IM for | things like scaling, enhancing, binarizing, and rotation, all based on | pre-set thresholds. Works great, thanks for all the work in IM! | | But, now I'm at a point where I need to rotate a binarized image to be | square, without having any kind of pre-set thresholds. | | Is there anything like this, an auto-rotation mechanism within IM??? | | If not, can anybody point me in the direction of C++ code that might come | close to what I need to do? | Do you mean something like a 'deskew'? That is 'straighten crooked rectangles' There is an option of -deskew and Fred Weinhaus has a script that also provides other deskew methods in "unrotate" script http://www.fmwconcepts.com/imagemagick/unrotate/ Anthony Thyssen ( System Programmer ) <[email protected]> -------------------------------------------------------------------------- "If we knew what we were doing, it wouldn't be called research, would it?" -- Albert Einstein, physicist (1879-1955) -------------------------------------------------------------------------- Anthony's Castle http://www.ict.griffith.edu.au/anthony/