Pleora Technologies Inc. eBUS SDK v6.2.8.5877 API



PvRangeFilter.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2015, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVRANGEFILTER_H__
8 #define __PVRANGEFILTER_H__
9 
10 #include <PvAppUtilsLib.h>
11 
12 #include <PvBuffer.h>
13 #include <PvConfigurationReader.h>
14 #include <PvConfigurationWriter.h>
15 
16 
17 namespace PvAppUtilsLib
18 {
19  class RangeFilter;
20 }
21 
22 
23 class PV_APPUTILS_API PvRangeFilter
24 {
25 public:
26 
27  PvRangeFilter();
28  ~PvRangeFilter();
29 
30  PvBuffer *Process( PvBuffer *aBuffer );
31  PvResult GetHistogram( uint32_t *aHistogramPtr, uint32_t aHistogramSize, uint32_t &aMaxValue );
32 
33  void Reset();
34  void AutoConfigure();
35 
36  bool IsEnabled() const;
37  uint8_t GetDark() const;
38  uint8_t GetLight() const;
39 
40  void SetDark( uint8_t aValue );
41  void SetLight( uint8_t aValue );
42  void SetEnabled( bool aEnabled );
43 
44  PvResult Load( PvConfigurationReader *aReader );
45  PvResult Save( PvConfigurationWriter *aWriter );
46 
47  PvBufferConverter &GetConverter();
48 
49 private:
50 
51  PvAppUtilsLib::RangeFilter *mThis;
52 
53  // Not implemented
54  PvRangeFilter( const PvRangeFilter & );
55  const PvRangeFilter &operator=( const PvRangeFilter & );
56 
57 };
58 
59 #endif
PvResult
Result information.
Definition: PvResult.h:13
PvConfigurationWriter
Save the state of the system.
Definition: PvConfigurationWriter.h:23
PvBufferConverter
Used to convert a PvBuffer to another pixel type.
Definition: PvBufferConverter.h:28
PvConfigurationReader
Restore the state of the system.
Definition: PvConfigurationReader.h:23
PvBuffer
Represents a block of GigE Vision or USB3 Vision data in memory.
Definition: PvBuffer.h:47
PvRangeFilter
Increases the contrast of displayed images and exported H.264 video by constraining the image to a mi...
Definition: PvRangeFilter.h:23

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