to rotate basied on a digital camera 'EXIM Orientation' setting.

that is good to know.  at the moment, for my scanned images, they need
rotations in the single digits (several degrees)

what would you think of the following.

1) for speed, reduce image to about 100px per edge
2) edge detect radius=0, which tends to draw a box around the image
3) quantize to 2 colors
4) save as ascii matrix of 0s and 1s
5) work with rows/columns as arrays
6) determine indicies of first 1s
7) calculate slope of least sq line
8) repeat for bottom, top, left, right sides
9) toss out anomolous slopes, avg the rest

best,
mike
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to