IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Tophat1D.h
Go to the documentation of this file.
1 // Tophat1D.h:
3 // -------------
4 //
15 
16 #ifndef __IPSDKMATH_TOPHAT1D_H__
17 #define __IPSDKMATH_TOPHAT1D_H__
18 
20 #include <IPSDKUtil/BaseTypes.h>
21 #include <vector>
22 
23 namespace ipsdk {
24 namespace math {
25 
28 
35  (eTH1DET_End)
37 )
38 
39 
44 template <typename T>
46 tophatThreshold1D(const std::vector<T>& vInBuf, const ipBool bBlack,
47  const eTopHat1DExtremumType& extremumType,
48  const ipReal32 calibratedHalfSize, const ipReal32 scale,
49  const ipReal32 threshold, std::vector<ipInt32>& vOutBuf);
50 
53 
54 } // end of namespace math
55 } // end of namespace ipsdk
56 
57 #endif // __IPSDKMATH_TOPHAT1D_H__
Definition of import/export macro for library.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Use the last element of the area detected by the top-hay.
Definition: Tophat1D.h:40
eTopHat1DExtremumType
Enumerate describing the extremum type to take into account for a 1D top-hat calculation.
Definition: Tophat1D.h:34
int32_t ipInt32
Base types definition.
Definition: BaseTypes.h:52
Take into account the local extrema.
Definition: Tophat1D.h:42
Base types for multiplatform compatibility.
#define IPSDKMATH_API
Import/Export macro for library IPSDKMath.
Definition: IPSDKMathExports.h:27
IPSDKMATH_API ipUInt32 tophatThreshold1D(const std::vector< T > &vInBuf, const ipBool bBlack, const eTopHat1DExtremumType &extremumType, const ipReal32 calibratedHalfSize, const ipReal32 scale, const ipReal32 threshold, std::vector< ipInt32 > &vOutBuf)
Compute the tophat threshold on a 1D signal stored in a std::vector and returns the number of detecte...
Use the first element of the area detected by the top-hay.
Definition: Tophat1D.h:38
Use the center element of the area detected by the top-hay.
Definition: Tophat1D.h:36
bool ipBool
Base types definition.
Definition: BaseTypes.h:47
STL namespace.
#define IPSDK_ENUM(enumTypeStr, enumSeq)
macro allowing to declare an enumerate for library
Definition: EnumMacros.h:26
float ipReal32
Base types definition.
Definition: BaseTypes.h:56
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53