components.colourspace.quantise

class ErrorFeedbackQuantise(config={}, **kwds)[source]

Bases: Transformer

Quantisation with error feedback.

Round data to integer values, using error feedback (see http://www.bbc.co.uk/rd/publications/rdreport_1987_12) to reduce the visibility of quantisation effects.

Note that if the input image is already quantised this component will have no effect. Hence it is recommended always to be used before any component that truncates the data, such as ImageFileWriterPIL.


Comments or questions? Please email jim@jim-easterbrook.me.uk.