next up previous contents
Next: Error checking Up: Conventions and style Previous: Pixel values   Contents

Image orientation

The normal convention is that the first (zero) row of an image is at the top, and Gandalf uses this convention. It is only relevant in certain image processing and vision algorithms where the image orientation affects the results. OpenGL assumes the opposite convention, which Gandalf gets around by displaying images using a negative vertical scaling of image coordinates. Currently the only image processing algorithm which assumes an image orientation is the Canny edge detector.



2006-03-17