Main MRPT website > C++ reference
MRPT logo

mrpt::slam::CObservationImage Class Reference

Declares a class derived from "CObservation" that encapsules an image from a camera, whose relative pose to robot is also stored. More...

#include <mrpt/slam/CObservationImage.h>

Inheritance diagram for mrpt::slam::CObservationImage:
Inheritance graph
[legend]
Collaboration diagram for mrpt::slam::CObservationImage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CObservationImage (void *iplImage=NULL)
 Constructor.
void getRectifiedImage (CImage &out_img) const
 Computes the rectified (un-distorted) image, using the embeded distortion parameters.
void getSensorPose (CPose3D &out_sensorPose) const
 A general method to retrieve the sensor pose on the robot.
void setSensorPose (const CPose3D &newSensorPose)
 A general method to change the sensor pose on the robot.

Public Attributes

CPose3D cameraPose
 The pose of the camera on the robot.
TCamera cameraParams
 Intrinsic and distortion parameters of the camera.
CImage image
 The image captured by the camera, that is, the main piece of information of this observation.

Detailed Description

Declares a class derived from "CObservation" that encapsules an image from a camera, whose relative pose to robot is also stored.

The next figure illustrate the coordinates reference systems involved in this class:

CObservationImage_figRefSystem.png
See also:
CObservation, CObservationStereoImages

Definition at line 56 of file CObservationImage.h.


Constructor & Destructor Documentation

mrpt::slam::CObservationImage::CObservationImage ( void *  iplImage = NULL  ) 

Constructor.

Parameters:
iplImage An OpenCV "IplImage*" object with the image to be loaded in the member "image", or NULL (default) for an empty image.

Member Function Documentation

void mrpt::slam::CObservationImage::getRectifiedImage ( CImage out_img  )  const

Computes the rectified (un-distorted) image, using the embeded distortion parameters.

void mrpt::slam::CObservationImage::getSensorPose ( CPose3D out_sensorPose  )  const [inline, virtual]

A general method to retrieve the sensor pose on the robot.

Note that most sensors will return a full (6D) CPose3D, but see the derived classes for more details or special cases.

See also:
setSensorPose

Implements mrpt::slam::CObservation.

Definition at line 87 of file CObservationImage.h.

void mrpt::slam::CObservationImage::setSensorPose ( const CPose3D newSensorPose  )  [inline, virtual]

A general method to change the sensor pose on the robot.

Note that most sensors will use the full (6D) CPose3D, but see the derived classes for more details or special cases.

See also:
getSensorPose

Implements mrpt::slam::CObservation.

Definition at line 94 of file CObservationImage.h.


Member Data Documentation

Intrinsic and distortion parameters of the camera.

See the tutorial for a discussion of these parameters.

Definition at line 75 of file CObservationImage.h.

The pose of the camera on the robot.

Definition at line 70 of file CObservationImage.h.

The image captured by the camera, that is, the main piece of information of this observation.

Definition at line 77 of file CObservationImage.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010