The caveats of Julia for image processing (ii) – the image structure
craftofcoding.wordpress.com
craftofcoding.wordpress.com
Representing values on a scale from 0.0 to 1.0 instead of 0 to 255 (say) is a good idea if you have to do things like DFT. Most software implementations use fixed point arithmetic for that.
Storing images as arrays of unsigned 8-bit integer seems quite primitive in comparison!
> ” Sorry, I don’t like using floating-point numbers to represent pixels. Call me old-fashioned, I know how imprecise non-integers are.”
WTH does this even mean?!
And what sort of transfer function are you referring to?
Transfer function is the nonliner transformation used to more effectively use the limited resolution of integer values. Most typical is sRGB gamma (luminance ~ (value / 255) ^ 2.2) or Perceptual Quantization (PQ, smpte2084) for HDR videos. If you want to perform filtering in linear domain (i.e. for your color transformations to look natural) you need to linearize the signal.