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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a88bc9cb-0d18-4be5-9b98-2388f8b2ce32/Untitled.png

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

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/bb1c7c3a-d767-4e4c-b75e-90122f750ed0/Untitled.png

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.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9ca3f177-85ec-445b-9107-d3959ea6dcd2/1.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a45dded1-e023-42ec-b13a-1e51feb7e32c/2.png

General Thresholding

Threshold Outside

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/b30090c9-dca0-4865-97c2-5031b17716a2/3.png

Difference with binary thresholding : Inside Value is Unchanged.

Threshold Below