Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Member Functions
jafar::traversability::Core Class Reference

This is the central object combining the specific functionalities of the utility objects of this module . More...


Detailed Description

This is the central object combining the specific functionalities of the utility objects of this module .

It is supposed to carry out the traversability assessment. Aside from the buffer introduced in the Tracker class, the Core contains the following buffers. They have all the same size L, except for the buffer containing the matches which has size L-1.

Definition at line 31 of file trv_core.hpp.

#include <trv_core.hpp>

List of all members.

Public Member Functions

 Core (TrackerType ttype, int bufferSize, int imWidth, int imHeight, int winHalfWidth, int winHalfHeight, bool withGeomPrecalc=false)
void setupGeometry (const PlaneParameters &plane, const CameraIntrinsicParameters &internals)
 Set the geometry of the camera model (internals) and the plane.
TrackerType getTrackerType (void) const
void setPose (const int idx, const CameraPoseParameters &camPose)
 Set pose to the (circular) buffer.
void setImage (const int idx, const jafar::image::Image &_im)
 Set image to the (circular) buffer.
void init (const int idx0, const int idx1)
 Important function.
jafar::image::Image getImage (int idx) const
jafar::image::Image getTrv (unsigned int idx=-1) const
 Get the traversability image.
jafar::image::Image getImage0_1_fine (void) const
jafar::image::Image getImage0_1_geom (void) const
jafar::image::Image getMask1_fine (void) const
MatchesContainergetMatches (void)
void calcTracker (jafar::image::Image &img0, jafar::image::Image &img1)
void calcTracker (int step=1)
 Calculate the tracking.
void calcHgeom (void)
 Calculate the geometric homography estimate using the data, on which the pointers point after the init function was called (and the data (image,pose) is set using the appropiate setters)
void calcHfine (const jafar::image::Image &prevTravMask)
 Calculate the refined homography estimate using the data, on which the pointers point after the init function was called (and the data (image,pose) is set using the appropriate setters, and the tracker section was calculated...)
void calcDensify (void)
 Calculate the traversability image using the densificator.
void calcH_mosUpdate (int idx0, int idx1)
void applyHomography (const jblas::mat33 &H_C0C1, const jafar::image::Image &img0, jafar::image::Image &img0_1)
jblas::mat33 getH_C0Cn (void)
 Get H_C0Cn for ACTUAL pair.
template<typename Type >
void applyHomographyO (const jblas::mat33 &H_C0C1, const jafar::image::Image &img0, jafar::image::Image &img0_1, jafar::image::Image maskCFoV1)

Public Attributes

int imBufferCnt
int imBufferSize
jafar::image::ImageimBuffer
int poseBufferCnt
int poseBufferSize
CameraPoseParametersposeBuffer
int trvBufferCnt
int trvBufferSize
jafar::image::ImagetrvBuffer
int homBufferCnt
int homBufferSize
jblas::mat33homBuffer
int preBufferCnt
int preBufferSize
jblas::mat33preBuffer
int actIdx0
int actIdx1
jafar::image::ImageactIm0_ptr
jafar::image::ImageactIm1_ptr
jafar::image::ImageactMsk1_ptr
CameraPoseParametersactPose0_ptr
CameraPoseParametersactPose1_ptr
jafar::image::Image im0_1_fine
jafar::image::Image im0_1_geom
jafar::image::Image mask1_fine
jafar::image::Image mask1_geom
HomographyGeom Hgeom
HomographyFine Hfine
HomographyMosaic Hmos
HomographyFine HmosUpdate
HomographyGeom HpreCalc
jblas::mat33 H_C0C1g
jblas::mat33 H_C1C0g
jblas::mat33 H_C0C1f
jblas::mat33 H_C1C0f
jblas::mat33 H_C0C1
jblas::mat33 H_C1C0
Trackertracker
Densificatordensificator
ImageInfo imageInfo
bool optWithGeomPrecalculation

Private Member Functions

void updateHmosBasic (void)

Member Function Documentation

Calculate the refined homography estimate using the data, on which the pointers point after the init function was called (and the data (image,pose) is set using the appropriate setters, and the tracker section was calculated...)

Parameters:
prevTravMask
void jafar::traversability::Core::calcTracker ( int  step = 1)

Calculate the tracking.

Step indicates the step size in the buffers! This step size by default is 1 (used for TrackerType::TRV_GFM), but can be changed for the other trackers!

Parameters:
stepbetween the entries in the buffers.
jafar::image::Image jafar::traversability::Core::getTrv ( unsigned int  idx = -1) const [inline]

Get the traversability image.

Parameters:
idxsame index as associated to the second image/pose pair
Returns:
traversability image

Definition at line 157 of file trv_core.hpp.

References JFR_WARNING.

void jafar::traversability::Core::init ( const int  idx0,
const int  idx1 
)

Important function.

Sets the pointers to the actually used objects (images, pose data). Has to be called in each loop, before the actual processing is done

Parameters:
idx0index of the first image/pose pair (the correct location in the buffer is handeled automatically)
idx1index of the second image/pose pair (the correct location in the buffer is handeled automatically)
void jafar::traversability::Core::setImage ( const int  idx,
const jafar::image::Image _im 
) [inline]

Set image to the (circular) buffer.

Only references will be considered, no copy of image!

Parameters:
idxindex associated with the image
_imthe image to be added to the buffer

Definition at line 138 of file trv_core.hpp.

void jafar::traversability::Core::setPose ( const int  idx,
const CameraPoseParameters camPose 
) [inline]

Set pose to the (circular) buffer.

Parameters:
idxindex associated with the measurement
camPosepose information

Definition at line 127 of file trv_core.hpp.

Set the geometry of the camera model (internals) and the plane.

They are used if a geometric homography estimated (Hgeom)

Parameters:
planeplane parameters of type PlaneParameters
internalsinternal parameters of type CameraIntrinsicParameters

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:51 for Jafar by doxygen 1.7.6.1
LAAS-CNRS