COLPTools Namespace Reference

Functions

void CalculateEdgeImageFromImageAndDisparity (CByteImage *pImageGray, CByteImage *pDisparity, CByteImage *pEdgeImage)
 
void CalculateForegroundRatioOfHypothesis (const CObjectHypothesis *pHypothesis, const CByteImage *pForegroundImage, const CCalibration *calibration, float &fForegroundRatio, int &nNumForegroundPixels)
 
bool CheckIfPointIsAlreadyInHypothesis (const Vec3d vPoint, const CObjectHypothesis *pHypothesis)
 
void ClusterXMeans (const std::vector< CHypothesisPoint * > &aPoints, const int nMinNumClusters, const int nMaxNumClusters, const float fBICFactor, std::vector< std::vector< CHypothesisPoint * > > &aaPointClusters)
 
void ClusterXMeans (const std::vector< Vec3d > &aPoints, const int nMinNumClusters, const int nMaxNumClusters, const float fBICFactor, std::vector< std::vector< Vec3d > > &aaPointClusters, std::vector< std::vector< int > > &aaOldIndices)
 
pcl::PointCloud< pcl::PointXYZRGBA >::Ptr ConfirmedPointsToPCL (const CObjectHypothesis *pHypothesis)
 
void ConvertRGB2HSV (const unsigned char r, const unsigned char g, const unsigned char b, unsigned char &h, unsigned char &s, unsigned char &v)
 
int CountForegroundPixelsInRectangle (const Vec2d vMiddleMin, const Vec2d vMinMiddle, const Vec2d vMaxMiddle, const Vec2d vMiddleMax, const CByteImage *pForegroundImage)
 
void CreateHueAndSaturationHistogram (const CObjectHypothesis *pHypothesis, std::vector< float > &aHueHistogram, std::vector< float > &aSaturationHistogram)
 
void CreateHueAndSaturationHistogramInWindow (const CByteImage *pHSVImage, const int nMinX, const int nMinY, const int nMaxX, const int nMaxY, std::vector< float > &aHueHistogram, std::vector< float > &aSaturationHistogram)
 
void CreateObjectSegmentationMask (const CObjectHypothesis *pHypothesis, const CCalibration *calibration, CByteImage *&pForegroundImage)
 
void CreateSegmentationProbabilityMap (const CObjectHypothesis *pHypothesis, const CCalibration *calibration, CByteImage *&pProbabilityImage)
 
void DrawCross (CByteImage *pColorImage, int x, int y, int r, int g, int b)
 
void DrawCross (CByteImage *pGreyImage, int x, int y, int nBrightness)
 
void DrawFatCross (CByteImage *pColorImage, int x, int y, int r, int g, int b)
 
void DrawHypothesis (CObjectHypothesis *pHypothesis, const CCalibration *calibration, CByteImage *pImage, const int nNumFusedHypotheses)
 
void FillHolesGray (const CByteImage *pInputImage, CByteImage *pOutputImage, const int nRadius)
 
void FillHolesRGB (const CByteImage *pInputImage, CByteImage *pOutputImage, const int nRadius)
 
void FilterForegroundPoints (const std::vector< CHypothesisPoint * > &aAllPoints, const CByteImage *pForegroundImage, const CCalibration *calibration, std::vector< CHypothesisPoint * > &aForegroundPoints)
 
void GetEnclosingRectangle (const Vec2d *pPoints, const int nNumPoints, const bool bUseSecondMaxPoints, Vec2d &p1, Vec2d &p2, Vec2d &p3, Vec2d &p4, bool &bRotated)
 
float GetHistogramDistanceL1 (const std::vector< float > &aHistogram1, const std::vector< float > &aHistogram2)
 
float GetHistogramDistanceL2 (const std::vector< float > &aHistogram1, const std::vector< float > &aHistogram2)
 
float GetHistogramDistanceX2 (const std::vector< float > &aHistogram1, const std::vector< float > &aHistogram2)
 
float GetHypothesesIntersectionRatio (const CObjectHypothesis *pHypothesis1, const CObjectHypothesis *pHypothesis2, const CCalibration *calibration)
 
void GetMeanAndVariance (const std::vector< CHypothesisPoint * > &pHypothesisPoints, Vec3d &vMean, float &fVariance)
 
void GetMeanAndVariance (const std::vector< Vec3d > &aPoints, Vec3d &vMean, float &fVariance)
 
void InterpolateRotation (const Mat3d m1, const Mat3d m2, const float fWeight, Mat3d &mResult)
 
void InterpolateTransformation (const Mat3d m1, const Vec3d v1, const Mat3d m2, const Vec3d v2, const float fWeight, Mat3d &mResult, Vec3d &vResult)
 
void NormalizeHistogram (std::vector< float > &aHistogram)
 
bool PointIsInForeground (const CHypothesisPoint *pPoint, const CByteImage *pForegroundImage, const CCalibration *calibration)
 
bool PointIsInForeground (const Vec3d vPoint, const CByteImage *pForegroundImage, const CCalibration *calibration)
 
void RemoveOutliers (std::vector< CHypothesisPoint * > &aPoints, const float fStdDevFactor)
 
void RemoveOutliers (std::vector< Vec3d > &aPoints, const float fStdDevFactor, std::vector< int > *pOldIndices)
 
void SetNumberInFileName (std::string &sFileName, int nNumber, int nNumDigits)
 
void SmoothHistogram (std::vector< float > &aHistogram)
 
void SortByPositionZ (std::vector< CHypothesisPoint * > &aHypothesisPoints)
 
void SortByPositionZ (std::vector< CHypothesisPoint * > &aHypothesisPoints, const int nLeftLimit, const int nRightLimit)
 

Function Documentation

◆ CalculateEdgeImageFromImageAndDisparity()

void CalculateEdgeImageFromImageAndDisparity ( CByteImage *  pImageGray,
CByteImage *  pDisparity,
CByteImage *  pEdgeImage 
)

Definition at line 1615 of file OLPTools.cpp.

◆ CalculateForegroundRatioOfHypothesis()

void CalculateForegroundRatioOfHypothesis ( const CObjectHypothesis pHypothesis,
const CByteImage *  pForegroundImage,
const CCalibration *  calibration,
float fForegroundRatio,
int &  nNumForegroundPixels 
)

Definition at line 336 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ CheckIfPointIsAlreadyInHypothesis()

bool CheckIfPointIsAlreadyInHypothesis ( const Vec3d  vPoint,
const CObjectHypothesis pHypothesis 
)

Definition at line 878 of file OLPTools.cpp.

◆ ClusterXMeans() [1/2]

void ClusterXMeans ( const std::vector< CHypothesisPoint * > &  aPoints,
const int  nMinNumClusters,
const int  nMaxNumClusters,
const float  fBICFactor,
std::vector< std::vector< CHypothesisPoint * > > &  aaPointClusters 
)

Definition at line 76 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ ClusterXMeans() [2/2]

void ClusterXMeans ( const std::vector< Vec3d > &  aPoints,
const int  nMinNumClusters,
const int  nMaxNumClusters,
const float  fBICFactor,
std::vector< std::vector< Vec3d > > &  aaPointClusters,
std::vector< std::vector< int > > &  aaOldIndices 
)

Definition at line 113 of file OLPTools.cpp.

◆ ConfirmedPointsToPCL()

pcl::PointCloud< pcl::PointXYZRGBA >::Ptr ConfirmedPointsToPCL ( const CObjectHypothesis pHypothesis)

Definition at line 906 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ ConvertRGB2HSV()

void ConvertRGB2HSV ( const unsigned char  r,
const unsigned char  g,
const unsigned char  b,
unsigned char &  h,
unsigned char &  s,
unsigned char &  v 
)

Definition at line 969 of file OLPTools.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CountForegroundPixelsInRectangle()

int CountForegroundPixelsInRectangle ( const Vec2d  vMiddleMin,
const Vec2d  vMinMiddle,
const Vec2d  vMaxMiddle,
const Vec2d  vMiddleMax,
const CByteImage *  pForegroundImage 
)

Definition at line 621 of file OLPTools.cpp.

◆ CreateHueAndSaturationHistogram()

void CreateHueAndSaturationHistogram ( const CObjectHypothesis pHypothesis,
std::vector< float > &  aHueHistogram,
std::vector< float > &  aSaturationHistogram 
)

Definition at line 1003 of file OLPTools.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateHueAndSaturationHistogramInWindow()

void CreateHueAndSaturationHistogramInWindow ( const CByteImage *  pHSVImage,
const int  nMinX,
const int  nMinY,
const int  nMaxX,
const int  nMaxY,
std::vector< float > &  aHueHistogram,
std::vector< float > &  aSaturationHistogram 
)

Definition at line 1061 of file OLPTools.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CreateObjectSegmentationMask()

void CreateObjectSegmentationMask ( const CObjectHypothesis pHypothesis,
const CCalibration *  calibration,
CByteImage *&  pForegroundImage 
)

Definition at line 1249 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ CreateSegmentationProbabilityMap()

void CreateSegmentationProbabilityMap ( const CObjectHypothesis pHypothesis,
const CCalibration *  calibration,
CByteImage *&  pProbabilityImage 
)

Definition at line 1319 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ DrawCross() [1/2]

void DrawCross ( CByteImage *  pColorImage,
int  x,
int  y,
int  r,
int  g,
int  b 
)

Definition at line 1202 of file OLPTools.cpp.

◆ DrawCross() [2/2]

void DrawCross ( CByteImage *  pGreyImage,
int  x,
int  y,
int  nBrightness 
)

Definition at line 1189 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ DrawFatCross()

void DrawFatCross ( CByteImage *  pColorImage,
int  x,
int  y,
int  r,
int  g,
int  b 
)

Definition at line 1220 of file OLPTools.cpp.

◆ DrawHypothesis()

void DrawHypothesis ( CObjectHypothesis pHypothesis,
const CCalibration *  calibration,
CByteImage *  pImage,
const int  nNumFusedHypotheses 
)

Definition at line 1425 of file OLPTools.cpp.

+ Here is the call graph for this function:

◆ FillHolesGray()

void FillHolesGray ( const CByteImage *  pInputImage,
CByteImage *  pOutputImage,
const int  nRadius 
)

Definition at line 1527 of file OLPTools.cpp.

◆ FillHolesRGB()

void FillHolesRGB ( const CByteImage *  pInputImage,
CByteImage *  pOutputImage,
const int  nRadius 
)

Definition at line 1481 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ FilterForegroundPoints()

void FilterForegroundPoints ( const std::vector< CHypothesisPoint * > &  aAllPoints,
const CByteImage *  pForegroundImage,
const CCalibration *  calibration,
std::vector< CHypothesisPoint * > &  aForegroundPoints 
)

Definition at line 289 of file OLPTools.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetEnclosingRectangle()

void GetEnclosingRectangle ( const Vec2d *  pPoints,
const int  nNumPoints,
const bool  bUseSecondMaxPoints,
Vec2d &  p1,
Vec2d &  p2,
Vec2d &  p3,
Vec2d &  p4,
bool &  bRotated 
)

Definition at line 450 of file OLPTools.cpp.

◆ GetHistogramDistanceL1()

float GetHistogramDistanceL1 ( const std::vector< float > &  aHistogram1,
const std::vector< float > &  aHistogram2 
)

Definition at line 1142 of file OLPTools.cpp.

◆ GetHistogramDistanceL2()

float GetHistogramDistanceL2 ( const std::vector< float > &  aHistogram1,
const std::vector< float > &  aHistogram2 
)

Definition at line 1157 of file OLPTools.cpp.

◆ GetHistogramDistanceX2()

float GetHistogramDistanceX2 ( const std::vector< float > &  aHistogram1,
const std::vector< float > &  aHistogram2 
)

Definition at line 1172 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ GetHypothesesIntersectionRatio()

float GetHypothesesIntersectionRatio ( const CObjectHypothesis pHypothesis1,
const CObjectHypothesis pHypothesis2,
const CCalibration *  calibration 
)

Definition at line 1395 of file OLPTools.cpp.

+ Here is the call graph for this function:

◆ GetMeanAndVariance() [1/2]

void GetMeanAndVariance ( const std::vector< CHypothesisPoint * > &  pHypothesisPoints,
Vec3d &  vMean,
float fVariance 
)

Definition at line 699 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ GetMeanAndVariance() [2/2]

void GetMeanAndVariance ( const std::vector< Vec3d > &  aPoints,
Vec3d &  vMean,
float fVariance 
)

Definition at line 714 of file OLPTools.cpp.

◆ InterpolateRotation()

void InterpolateRotation ( const Mat3d  m1,
const Mat3d  m2,
const float  fWeight,
Mat3d &  mResult 
)

Definition at line 44 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ InterpolateTransformation()

void InterpolateTransformation ( const Mat3d  m1,
const Vec3d  v1,
const Mat3d  m2,
const Vec3d  v2,
const float  fWeight,
Mat3d &  mResult,
Vec3d &  vResult 
)

Definition at line 67 of file OLPTools.cpp.

+ Here is the call graph for this function:

◆ NormalizeHistogram()

void NormalizeHistogram ( std::vector< float > &  aHistogram)

Definition at line 1122 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ PointIsInForeground() [1/2]

bool PointIsInForeground ( const CHypothesisPoint pPoint,
const CByteImage *  pForegroundImage,
const CCalibration *  calibration 
)

Definition at line 327 of file OLPTools.cpp.

+ Here is the call graph for this function:

◆ PointIsInForeground() [2/2]

bool PointIsInForeground ( const Vec3d  vPoint,
const CByteImage *  pForegroundImage,
const CCalibration *  calibration 
)

Definition at line 310 of file OLPTools.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ RemoveOutliers() [1/2]

void RemoveOutliers ( std::vector< CHypothesisPoint * > &  aPoints,
const float  fStdDevFactor 
)

Definition at line 831 of file OLPTools.cpp.

+ Here is the call graph for this function:

◆ RemoveOutliers() [2/2]

void RemoveOutliers ( std::vector< Vec3d > &  aPoints,
const float  fStdDevFactor,
std::vector< int > *  pOldIndices 
)

Definition at line 759 of file OLPTools.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetNumberInFileName()

void SetNumberInFileName ( std::string &  sFileName,
int  nNumber,
int  nNumDigits 
)

Definition at line 1378 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ SmoothHistogram()

void SmoothHistogram ( std::vector< float > &  aHistogram)

Definition at line 1095 of file OLPTools.cpp.

+ Here is the caller graph for this function:

◆ SortByPositionZ() [1/2]

void SortByPositionZ ( std::vector< CHypothesisPoint * > &  aHypothesisPoints)

Definition at line 1608 of file OLPTools.cpp.

+ Here is the call graph for this function:

◆ SortByPositionZ() [2/2]

void SortByPositionZ ( std::vector< CHypothesisPoint * > &  aHypothesisPoints,
const int  nLeftLimit,
const int  nRightLimit 
)

Definition at line 1570 of file OLPTools.cpp.

+ Here is the caller graph for this function: