eBUS SDK v6.2.8.5877 API
PvImageAnalysisMono.h
1
// *****************************************************************************
2
//
3
// Copyright (c) 2015, Pleora Technologies Inc., All rights reserved.
4
//
5
// *****************************************************************************
6
7
#ifndef __PVIMAGEANALYSISMONO_H__
8
#define __PVIMAGEANALYSISMONO_H__
9
10
#include <PvAppUtilsLib.h>
11
#include <PvBuffer.h>
12
#include <PvConfigurationReader.h>
13
#include <PvConfigurationWriter.h>
14
15
16
namespace
PvAppUtilsLib
17
{
18
class
ImageAnalysisMono;
19
}
20
21
22
class
PV_APPUTILS_API
PvImageAnalysisMono
23
{
24
public
:
25
26
PvImageAnalysisMono
();
27
~
PvImageAnalysisMono
();
28
29
PvResult
Process(
PvBuffer
*aBuffer );
30
31
PvResult
GetHistogram( uint32_t *aHistogram,
int
aBufferSize,
int
&aHistogramSize, uint32_t &aMaxValue );
32
double
GetAvg()
const
;
33
double
GetStdDev()
const
;
34
35
void
GetROI(
int
&aX,
int
&aY,
int
&aWidth,
int
&aHeight );
36
void
SetROI(
int
aX,
int
aY,
int
aWidth,
int
aHeight );
37
38
void
Reset();
39
40
PvResult
Load(
PvConfigurationReader
*aReader );
41
PvResult
Save(
PvConfigurationWriter
*aWriter );
42
43
private
:
44
45
PvAppUtilsLib::ImageAnalysisMono *mThis;
46
47
// Not implemented
48
PvImageAnalysisMono
(
const
PvImageAnalysisMono
& );
49
const
PvImageAnalysisMono
&operator=(
const
PvImageAnalysisMono
& );
50
51
};
52
53
#endif
PvResult
Result information.
Definition:
PvResult.h:13
PvConfigurationWriter
Save the state of the system.
Definition:
PvConfigurationWriter.h:23
PvImageAnalysisMono
Performs image analyse on an image.
Definition:
PvImageAnalysisMono.h:22
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
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com