Class BrightnessCorrection
This class can be used to calibrate the Brightness values returned in an IProfile by setting the offset with Offset and the scale factors with this[int].
Implements
Inherited Members
Namespace: JoeScan.Pinchot.Beta
Assembly: JoeScan.Pinchot.dll
Syntax
public class BrightnessCorrection : ICloneable
  Properties
| Improve this Doc View SourceCount
The number of scale factors. There is one scale factor for each column of the camera.
Declaration
public int Count { get; }
  Property Value
| Type | Description | 
|---|---|
| int | The number of scale factors.  | 
      
this[int]
Gets or sets the scale factor of the column.
There are Count number of columns that can be set.
Declaration
public float this[int column] { get; set; }
  Parameters
| Type | Name | Description | 
|---|---|---|
| int | column | The column to get or set the scale factor.  | 
      
Property Value
| Type | Description | 
|---|---|
| float | The scale factor to be applied to the brightness of the   | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentException | value is non-positive, NaN, or infinity.  | 
      
Offset
The offset to be applied to all brightness values.
Declaration
public int Offset { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | The brightness offset.  | 
      
Methods
| Improve this Doc View SourceClone()
Returns a clone of this object. Changes to the original object will not reflect in the cloned object.
Declaration
public object Clone()
  Returns
| Type | Description | 
|---|---|
| object | A clone of this object.  | 
      
GetScaleFactors()
Gets all the scale factors. Use this[int] to modify the factors.
Declaration
public List<float> GetScaleFactors()
  Returns
| Type | Description | 
|---|---|
| List<float> | A copy of the list of scale factors.  |