HypothesisValidationRGBD.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2011-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package
19  * @author
20  * @date
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 #pragma once
25 
26 
27 #include "ObjectHypothesis.h"
29 
30 
31 class CCalibration;
32 class CByteImage;
34 
36 {
37 public:
38  static void ValidateInitialHypotheses(const std::vector<CHypothesisPoint*>& aOldDepthMapPoints,
39  const std::vector<CHypothesisPoint*>& aNewDepthMapPoints,
40  const CByteImage* pForegroundImage,
41  const CByteImage* pHSVImage,
42  const CCalibration* calibration,
43  const Vec3d upwardsVector,
44  CObjectHypothesisArray* pObjectHypotheses,
45  CObjectHypothesisArray* pConfirmedHypotheses);
46 
47  static void RevalidateHypotheses(const std::vector<CHypothesisPoint*>& aNewDepthMapPoints,
48  const CByteImage* pForegroundImage,
49  const CByteImage* pHSVImage,
50  const CCalibration* calibration,
51  const Vec3d upwardsVector,
52  CObjectHypothesisArray* pObjectHypotheses);
53 
54  static void
55  GenerateAndAddForegroundHypotheses(const std::vector<CHypothesisPoint*>& aOldDepthMapPoints,
56  const CByteImage* pForegroundImage,
57  const CCalibration* calibration,
58  CObjectHypothesisArray* pObjectHypotheses);
59 
60  static bool ValidateHypothesis(CPointCloudRegistration* pPointCloudRegistration,
61  const std::vector<CHypothesisPoint*>& aNewDepthMapPoints,
62  const std::vector<CHypothesisPoint*>& aForegroundPoints,
63  const CByteImage* pForegroundImage,
64  const CByteImage* pHSVImage,
65  const CCalibration* calibration,
66  const Vec3d upwardsVector,
67  CObjectHypothesis* pObjectHypothesis,
68  CObjectHypothesis*& pConfirmedHypothesis,
69  const int nEffortLevel = OLP_EFFORT_POINTCLOUD_MATCHING);
70 
72 };
CHypothesisValidationRGBD
Definition: HypothesisValidationRGBD.h:35
GfxTL::Vec3d
VectorXD< 3, double > Vec3d
Definition: VectorXD.h:737
CHypothesisValidationRGBD::ValidateInitialHypotheses
static void ValidateInitialHypotheses(const std::vector< CHypothesisPoint * > &aOldDepthMapPoints, const std::vector< CHypothesisPoint * > &aNewDepthMapPoints, const CByteImage *pForegroundImage, const CByteImage *pHSVImage, const CCalibration *calibration, const Vec3d upwardsVector, CObjectHypothesisArray *pObjectHypotheses, CObjectHypothesisArray *pConfirmedHypotheses)
Definition: HypothesisValidationRGBD.cpp:42
ObjectHypothesis.h
CHypothesisValidationRGBD::RevalidateHypotheses
static void RevalidateHypotheses(const std::vector< CHypothesisPoint * > &aNewDepthMapPoints, const CByteImage *pForegroundImage, const CByteImage *pHSVImage, const CCalibration *calibration, const Vec3d upwardsVector, CObjectHypothesisArray *pObjectHypotheses)
Definition: HypothesisValidationRGBD.cpp:137
CHypothesisValidationRGBD::ValidateHypothesis
static bool ValidateHypothesis(CPointCloudRegistration *pPointCloudRegistration, const std::vector< CHypothesisPoint * > &aNewDepthMapPoints, const std::vector< CHypothesisPoint * > &aForegroundPoints, const CByteImage *pForegroundImage, const CByteImage *pHSVImage, const CCalibration *calibration, const Vec3d upwardsVector, CObjectHypothesis *pObjectHypothesis, CObjectHypothesis *&pConfirmedHypothesis, const int nEffortLevel=OLP_EFFORT_POINTCLOUD_MATCHING)
Definition: HypothesisValidationRGBD.cpp:248
ObjectLearningByPushingDefinitions.h
CHypothesisPoint
Definition: ObjectHypothesis.h:166
OLP_EFFORT_POINTCLOUD_MATCHING
#define OLP_EFFORT_POINTCLOUD_MATCHING
Definition: ObjectLearningByPushingDefinitions.h:274
CPointCloudRegistration
Definition: PointCloudRegistration.h:33
CObjectHypothesis
Definition: ObjectHypothesis.h:244
CObjectHypothesisArray
CDynamicArrayTemplate< CObjectHypothesis * > CObjectHypothesisArray
Definition: ObjectHypothesis.h:362
CHypothesisValidationRGBD::GenerateAndAddForegroundHypotheses
static void GenerateAndAddForegroundHypotheses(const std::vector< CHypothesisPoint * > &aOldDepthMapPoints, const CByteImage *pForegroundImage, const CCalibration *calibration, CObjectHypothesisArray *pObjectHypotheses)
Definition: HypothesisValidationRGBD.cpp:199
CHypothesisValidationRGBD::FuseTwoPoints
static CHypothesisPoint * FuseTwoPoints(CHypothesisPoint *p1, CHypothesisPoint *p2)
Definition: HypothesisValidationRGBD.cpp:730