Inherits opentl::core::util::ParameterContainer.
Classes | |
| struct | ShapeData_t |
| Structure for storing object model related shape appearance data required for fast contour sampling. More... | |
Public Types | |
Public Member Functions | |
| ContourSampler (const ObjModelPtrVector &objModels, opentl::modelprojection::Warp &warp, opentl::modelprojection::GLScene &scene, int camIdx) | |
| Constructor. | |
| void | generatePointQueryList (GLuint &listId, const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > &points, const std::vector< double * > *colors=NULL) |
| Function to generate OpenGL point query list. | |
| opentl::core::cvdata::VisContourSamplePts * | getContourData (int targetId=0) |
| void | init () |
| Initialization. | |
| int | lineQuery () |
| Occlusion query for lines (NOT PRECISE: A SEGMENT CAN BE PARTIALLY VISIBLE!). | |
| int | pointQuery (GLuint queryListId, const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > &points, std::vector< bool > &visPoints) |
| Occlusion query for points (GOOD). | |
| void | sampleContourDebugOutput (void) |
| void | sampleVisContourPoints (const std::vector< boost::shared_ptr< opentl::core::State > > &states, const ObjModelPtrVector &objModels) |
| Sample visible contour points for all given state hypothesis (=targets) rendered into a single scene. | |
| void | setupQuery (int n) |
| Generate the occlusion query. | |
| void | warpScreen (const boost::shared_ptr< opentl::core::State > &state, int targetIdx) |
| Warp contour points from body to screen, and update normals and Jacobians. | |
| virtual | ~ContourSampler () |
| Destructor. | |
| opentl::modelprojection::ContourSampler::ContourSampler | ( | const ObjModelPtrVector & | objModels, | |
| opentl::modelprojection::Warp & | warp, | |||
| opentl::modelprojection::GLScene & | scene, | |||
| int | camIdx | |||
| ) |
| virtual opentl::modelprojection::ContourSampler::~ContourSampler | ( | ) | [virtual] |
Destructor.
| void opentl::modelprojection::ContourSampler::generatePointQueryList | ( | GLuint & | listId, | |
| const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > & | points, | |||
| const std::vector< double * > * | colors = NULL | |||
| ) |
Function to generate OpenGL point query list.
| opentl::core::cvdata::VisContourSamplePts* opentl::modelprojection::ContourSampler::getContourData | ( | int | targetId = 0 |
) | [inline] |
| void opentl::modelprojection::ContourSampler::init | ( | ) | [virtual] |
| int opentl::modelprojection::ContourSampler::lineQuery | ( | ) |
Occlusion query for lines (NOT PRECISE: A SEGMENT CAN BE PARTIALLY VISIBLE!).
| int opentl::modelprojection::ContourSampler::pointQuery | ( | GLuint | queryListId, | |
| const std::vector< opentl::core::cvdata::ShapeAppearance::Point * > & | points, | |||
| std::vector< bool > & | visPoints | |||
| ) |
Occlusion query for points (GOOD).
| void opentl::modelprojection::ContourSampler::sampleContourDebugOutput | ( | void | ) |
| void opentl::modelprojection::ContourSampler::sampleVisContourPoints | ( | const std::vector< boost::shared_ptr< opentl::core::State > > & | states, | |
| const ObjModelPtrVector & | objModels | |||
| ) |
Sample visible contour points for all given state hypothesis (=targets) rendered into a single scene.
| states | vector of targets | |
| objModels | reference to object models |
| void opentl::modelprojection::ContourSampler::setupQuery | ( | int | n | ) |
Generate the occlusion query.
| void opentl::modelprojection::ContourSampler::warpScreen | ( | const boost::shared_ptr< opentl::core::State > & | state, | |
| int | targetIdx | |||
| ) |
Warp contour points from body to screen, and update normals and Jacobians.
| state | State | |
| targetIdx | State index, within the contour data structure |
1.5.8