Class PvTruesenseConverter
Converts images from TRUESENSE(TM) to RGB.
Implements
Inherited Members
Namespace: eBUSDotNetReceive
Assembly: eBUSDotNetReceive.dll
Syntax
public class PvTruesenseConverter : IDisposable
Remarks
This class can be used to convert Sparse Color Filter TRUESENSE(TM) images (SCF1) into RGB8 or RGBa8. The image quality is expected to be much better than SCF1 conversion performed using PvBufferConverter.
The intense image processing algorithms used to obtain this high quality yields much higher
processing times. Various gain and filtering parameters can be used to tweak the image conversion.
SCF1 12-unpacked is recommended as input pixel type for slightly better processing times.
Other SCF1 pixel types are also supported but must internally be converted to
12-unpacked before being converted to RGB.
Constructors
View SourcePvTruesenseConverter()
Constructor
Declaration
public PvTruesenseConverter()
Fields
View SourceswigCMemOwn
Determines who is responsible for deleting the underlying C++ object.
Declaration
protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Properties
View SourceBlueGain
Gets or sets the blue channel gain.
Declaration
public float BlueGain { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
DarkFloor
Gets or sets the dark floor level for the Truesense converter.
Declaration
public int DarkFloor { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
GlobalGain
Gets or sets the global gain applied to all channels.
Declaration
public float GlobalGain { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
GreenGain
Gets or sets the green channel gain.
Declaration
public float GreenGain { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
HighLumaNoise
Gets or sets the high luminance noise reduction level.
Declaration
public float HighLumaNoise { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
LowLumaNoise
Gets or sets the low luminance noise reduction level.
Declaration
public float LowLumaNoise { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxSharpen
Gets or sets the maximum sharpening level.
Declaration
public float MaxSharpen { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PanGain
Gets or sets the panchromatic channel gain.
Declaration
public float PanGain { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
RedGain
Gets or sets the red channel gain.
Declaration
public float RedGain { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
SharpenParam
Gets or sets the sharpening parameter.
Declaration
public float SharpenParam { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
View SourceConvert(PvImage, ref PvImage)
Convert a buffer from one format to another.
Declaration
public PvResult Convert(PvImage aSource, ref PvImage aDestination)
Parameters
| Type | Name | Description |
|---|---|---|
| PvImage | aSource | The original image. |
| PvImage | aDestination | The new image. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
Convert(PvImage, ref PvImage, bool)
Convert a buffer from one format to another.
Declaration
public PvResult Convert(PvImage aSource, ref PvImage aDestination, bool aReallocIfNeeded)
Parameters
| Type | Name | Description |
|---|---|---|
| PvImage | aSource | The original image. |
| PvImage | aDestination | The new image. |
| bool | aReallocIfNeeded | Depending on the conversion, the memory footprint of the new image may be greater than aDestination current size. By setting this parameter to true, the buffer is re-allocated if aDestination is too small. If aDestination memory buffer is not owned by the #PvBuffer and is too small, #Convert fails. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes:
|
Dispose()
Dispose.
Declaration
public void Dispose()
Dispose(bool)
Dispose
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
~PvTruesenseConverter()
Destructor.
Declaration
protected ~PvTruesenseConverter()
IsConversionSupported(PvPixelType, PvPixelType)
Returns true if this converter class can be used for a source-to-destination conversion.
Declaration
public static bool IsConversionSupported(PvPixelType aSource, PvPixelType aDestination)
Parameters
| Type | Name | Description |
|---|---|---|
| PvPixelType | aSource | Pixel type of the source buffer. |
| PvPixelType | aDestination | Pixel type of the destination buffer. |
Returns
| Type | Description |
|---|---|
| bool | True if the conversion is supported, false if not. |