Pleora Technologies Inc. eBUS SDK v7.0.1.7536 API



PvTruesenseConverter.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2013, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVTRUESENSECONVERTER_H__
8 #define __PVTRUESENSECONVERTER_H__
9 
10 #include <PvBuffer.h>
11 
12 
13 namespace PvBufferLib
14 {
15  class TruesenseConverter;
16 }
17 
18 struct YotsubaParam_t;
19 
20 
37 class PV_BUFFER_API PvTruesenseConverter
38 {
39 public:
40 
45 
50 
59  static bool IsConversionSupported( PvPixelType aSource, PvPixelType aDestination );
60 
77  PvResult Convert( const PvImage *aSource, PvImage *aDestination, bool aReallocIfNeeded = true );
78 
84  uint32_t GetDarkfloor() const;
85 
91  float GetRedGain() const;
92 
98  float GetGreenGain() const;
99 
105  float GetBlueGain() const;
106 
112  float GetPanGain() const;
113 
119  float GetGlobalGain() const;
120 
126  float GetSharpenParam() const;
127 
133  float GetMaxSharpen() const;
134 
140  float GetHighLumaNoise() const;
141 
147  float GetLowLumaNoise() const;
148 
159  PvResult SetDarkfloor( uint32_t aValue );
160 
171  PvResult SetRedGain( float aValue );
172 
183  PvResult SetGreenGain( float aValue );
184 
195  PvResult SetBlueGain( float aValue );
196 
207  PvResult SetPanGain( float aValue );
208 
219  PvResult SetGlobalGain( float aValue );
220 
231  PvResult SetSharpenParam( float aValue );
232 
243  PvResult SetMaxSharpen( float aValue );
244 
255  PvResult SetHighLumaNoise( float aValue );
256 
267  PvResult SetLowLumaNoise( float aValue );
268 
269 protected:
270 
271 private:
272 
273  // Not implemented
275  const PvTruesenseConverter &operator=( const PvTruesenseConverter & );
276 
277  PvBufferLib::TruesenseConverter *mThis;
278  YotsubaParam_t *mParameters;
279 
280 };
281 
282 #endif
PvPixelType
Definition: PvPixelType.h:51
Image interface to a PvBuffer.
Definition: PvImage.h:176
Result information.
Definition: PvResult.h:30
Converts images from TRUESENSE(TM) to RGB.
Definition: PvTruesenseConverter.h:38
PvResult Convert(const PvImage *aSource, PvImage *aDestination, bool aReallocIfNeeded=true)
Convert a buffer from one format to another.
float GetPanGain() const
Returns the panchromatic gain of white balance.
virtual ~PvTruesenseConverter()
Destructor.
PvResult SetBlueGain(float aValue)
Sets the blue gain of white balance.
PvResult SetHighLumaNoise(float aValue)
Sets the high noise threshold.
float GetRedGain() const
Returns the red gain of white balance.
uint32_t GetDarkfloor() const
Returns the dark floor of the raw image.
PvResult SetSharpenParam(float aValue)
Sets the sharp parameter.
PvResult SetPanGain(float aValue)
Sets the panchromatic gain of white balance.
static bool IsConversionSupported(PvPixelType aSource, PvPixelType aDestination)
Returns true if this converter class can be used for a source-to-destination conversion.
float GetGreenGain() const
Returns the green gain of white balance.
float GetBlueGain() const
Returns the blue gain of white balance.
PvResult SetDarkfloor(uint32_t aValue)
Sets the dark floor of the raw image.
PvResult SetGlobalGain(float aValue)
Sets the global gain of white balance.
float GetSharpenParam() const
Returns the sharp parameter.
PvResult SetLowLumaNoise(float aValue)
Sets the low noise threshold.
float GetGlobalGain() const
Returns the global gain of white balance.
PvResult SetMaxSharpen(float aValue)
Sets the sharp maximal threshold.
float GetHighLumaNoise() const
Returns the high noise threshold.
PvResult SetRedGain(float aValue)
Sets the red gain of white balance.
PvTruesenseConverter()
Constructor.
float GetLowLumaNoise() const
Returns the low noise threshold.
PvResult SetGreenGain(float aValue)
Sets the green gain of white balance.
float GetMaxSharpen() const
Returns the sharp maximal threshold.

Copyright (c) 2002-2026 Pleora Technologies Inc.
www.pleora.com