Filter generator for automatic simple color correction. More...
#include <autolevels.h>
Public Member Functions | |
QuillImageFilter * | generate (const QuillImage &image) const |
const QString | name () const |
Filter generator for automatic simple color correction.
Uses Levels for the actual correction. The algorithm is a simple contrast stretching with a cutoff applied for each color channel separately.
Domain based name: org.maemo.auto.levels
Options supported: none.
QuillImageFilter * AutoLevels::generate | ( | const QuillImage & | image | ) | const [virtual] |
Generates an auto levels filter
The levels 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!
Reimplemented from QuillImageFilterGeneratorImplementation.
const QString AutoLevels::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.