Public Member Functions

AutoLevels Class Reference

Filter generator for automatic simple color correction. More...

#include <autolevels.h>

Inheritance diagram for AutoLevels:
Inheritance graph
[legend]
Collaboration diagram for AutoLevels:
Collaboration graph
[legend]

List of all members.

Public Member Functions

QuillImageFiltergenerate (const QuillImage &image) const
const QString name () const

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files: