Straighten an image
Posted: 2009-06-01T10:36:41-07:00
RE: http://www.salas.com/elect/testballot1.tif
This as you can see is an image from a USA voting ballot. They are scanned by a high speed scanner. They are not always perfectly vertical.
I need help with a good way to 'straighten' an image like the one attached. Basically, it seems like if I can identify the black 'timing' mark in the top left edge, and the corresponding last 'timing mark' in the bottom left, I could rotate the image fractionally to make sure it's exactly straight so I can use specific coordinates to look for other features.
I suspect that this is a fairly easy task but I can't figure out the 'right' way to do it.
If anyone could give me some pointers that would be appreciated!
Pito
This as you can see is an image from a USA voting ballot. They are scanned by a high speed scanner. They are not always perfectly vertical.
I need help with a good way to 'straighten' an image like the one attached. Basically, it seems like if I can identify the black 'timing' mark in the top left edge, and the corresponding last 'timing mark' in the bottom left, I could rotate the image fractionally to make sure it's exactly straight so I can use specific coordinates to look for other features.
I suspect that this is a fairly easy task but I can't figure out the 'right' way to do it.
If anyone could give me some pointers that would be appreciated!
Pito