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 
28 #include "ObjectHypothesis.h"
29 
30 
31 class CCalibration;
32 class CByteImage;
34 
35 
37 {
38 public:
39  static void ValidateInitialHypotheses(const std::vector<CHypothesisPoint*>& aOldDepthMapPoints, const std::vector<CHypothesisPoint*>& aNewDepthMapPoints, const CByteImage* pForegroundImage,
40  const CByteImage* pHSVImage, const CCalibration* calibration, const Vec3d upwardsVector, CObjectHypothesisArray* pObjectHypotheses, CObjectHypothesisArray* pConfirmedHypotheses);
41 
42  static void RevalidateHypotheses(const std::vector<CHypothesisPoint*>& aNewDepthMapPoints, const CByteImage* pForegroundImage,
43  const CByteImage* pHSVImage, const CCalibration* calibration, const Vec3d upwardsVector, CObjectHypothesisArray* pObjectHypotheses);
44 
45  static void GenerateAndAddForegroundHypotheses(const std::vector<CHypothesisPoint*>& aOldDepthMapPoints, const CByteImage* pForegroundImage,
46  const CCalibration* calibration, CObjectHypothesisArray* pObjectHypotheses);
47 
48  static bool ValidateHypothesis(CPointCloudRegistration* pPointCloudRegistration, const std::vector<CHypothesisPoint*>& aNewDepthMapPoints, const std::vector<CHypothesisPoint*>& aForegroundPoints, const CByteImage* pForegroundImage,
49  const CByteImage* pHSVImage, const CCalibration* calibration, const Vec3d upwardsVector, CObjectHypothesis* pObjectHypothesis, CObjectHypothesis*& pConfirmedHypothesis,
50  const int nEffortLevel = OLP_EFFORT_POINTCLOUD_MATCHING);
51 
53 };
54 
55 
CHypothesisValidationRGBD
Definition: HypothesisValidationRGBD.h:36
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:46
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:117
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:206
ObjectLearningByPushingDefinitions.h
CHypothesisPoint
Definition: ObjectHypothesis.h:171
OLP_EFFORT_POINTCLOUD_MATCHING
#define OLP_EFFORT_POINTCLOUD_MATCHING
Definition: ObjectLearningByPushingDefinitions.h:261
GfxTL::Vec3d
VectorXD< 3, double > Vec3d
Definition: VectorXD.h:695
CPointCloudRegistration
Definition: PointCloudRegistration.h:34
CObjectHypothesis
Definition: ObjectHypothesis.h:249
CObjectHypothesisArray
CDynamicArrayTemplate< CObjectHypothesis * > CObjectHypothesisArray
Definition: ObjectHypothesis.h:359
CHypothesisValidationRGBD::GenerateAndAddForegroundHypotheses
static void GenerateAndAddForegroundHypotheses(const std::vector< CHypothesisPoint * > &aOldDepthMapPoints, const CByteImage *pForegroundImage, const CCalibration *calibration, CObjectHypothesisArray *pObjectHypotheses)
Definition: HypothesisValidationRGBD.cpp:167
CHypothesisValidationRGBD::FuseTwoPoints
static CHypothesisPoint * FuseTwoPoints(CHypothesisPoint *p1, CHypothesisPoint *p2)
Definition: HypothesisValidationRGBD.cpp:628