Image Adaptors

The purpose of an image adaptor is to make one image appear like another image, possibly of a different pixel type.

e.g.: Adapt an unsigned char image to make it appear as an image with pixel type float.

Casting Filter vs Image adaptor

Pixel accessors : does the transformation and Image Iterator : iterates through every pixel of the image.

Techniques

Binary Thresholding

If the pixel value is inside the range defined by [Lower, Upper] the output pixel is assigned the Inside Value. Otherwise the output pixels are assigned to the Outside Value.

General Thresholding

Threshold Outside

Difference with binary thresholding : Inside Value is Unchanged.

Threshold Below