Filter generator for automatic contrast correction. More...
#include <autocontrast.h>
Public Member Functions | |
QuillImageFilter * | generate (const QuillImage &image) const |
const QString | name () const |
Filter generator for automatic contrast correction.
Uses BrightnessContrast for the actual correction. The algorithm is a simple contrast stretching with a cutoff.
Domain based name: org.maemo.auto.contrast
Options supported: none.
QuillImageFilter * AutoContrast::generate | ( | const QuillImage & | image | ) | const [virtual] |
Generates an auto contrast stretching filter
The contrast stretching algorithm works this way: Build histogram Set new low so that .5% of samples are under it Set new high to that 99.5% of samples are under it
Since this is quite slow, it should operate on preview size only!
This explaination is for auto fix auto contrast will be executed firstly auto color will be followed automatically
Reimplemented from QuillImageFilterGeneratorImplementation.
const QString AutoContrast::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.