Class DContrast computes recommendations for foreground and background values, that may be used when representing a DImageInt or DImageFloat by a color scale. More...
Public Member Functions | |
| def | DContrast |
| Default constructor. More... | |
| def | setParams |
| Set parameters explicitely. More... | |
Class DContrast computes recommendations for foreground and background values, that may be used when representing a DImageInt or DImageFloat by a color scale.
The parameters necessary for the computation may either be set in the constructor (DContrast()) or by setParams(). The implementation of the computation as operator(DImageInt,DImageInt) makes DContrast an valid callback object for DSubFrame.loadImage().
class DContrast provides the following operations:
| DContrast(img,mask) |
Compute reasonable suggestions for fore- and background values, that might be used when representing img by a color scale. You may try to fine tune the output by setting the parameters a and numberOfSamples (see DContrast() and setParams()), which enter the computation in the following way:
|
| def dectris.albula.DContrast.DContrast | ( | a = 6, |
|
numberOfSamples = 100000 |
|||
| ) |
Default constructor.
All parameters are keyword arguments.
| a | Float. See operator(). |
| numberOfSamples | Integer. See operator(). |
| def dectris.albula.DContrast.setParams | ( | a = 6, |
|
numberOfSamples = 100000 |
|||
| ) |
Set parameters explicitely.
All parameters are keyword arguments.
| a | Float. See operator(). |
| numberOfSamples | Integer. See operator(). |