next up previous contents
Next: Image orientation Up: Conventions and style Previous: Coordinate pair ordering   Contents

Pixel values

Gandalf uses the convention that image pixels represented in floating point are always in the range [0,1]. In integer formats the range is the whole range of the type, whether character, short integer, integer or long integer. This convention is applied for all conversions between pixels, as well as the image processing and display routines. When programming with Gandalf you should where possible stick to this convention.