Public Member Functions | Private Attributes | List of all members
ImageUndistort Class Reference

Class to undistort images. More...

#include <image_manipulation.h>

Public Member Functions

 ImageUndistort ()
 Constructor. More...
 
 ~ImageUndistort ()
 Deconstructor. More...
 
void remap (const Mat &image, Mat &dst)
 Undistort a image. More...
 
bool set_intrinsics_xml (string filename)
 Load a intrinsics.xml file. More...
 

Private Attributes

FileStorage fs
 To read the intrinsics_xml file. More...
 
Mat intrinsic_matrix_loaded
 
Mat distortion_coeffs_loaded
 
Mat map1
 The undistort map. More...
 
Mat map2
 
Size size
 Image size. More...
 

Detailed Description

Class to undistort images.

Definition at line 39 of file image_manipulation.h.

Constructor & Destructor Documentation

ImageUndistort::ImageUndistort ( )

Constructor.

Parameters
file_intrinsics_xmlPath for the intrinsics.xml file, that contains the camera calibration values
ImageUndistort::~ImageUndistort ( )

Deconstructor.

Member Function Documentation

void ImageUndistort::remap ( const Mat &  image,
Mat &  dst 
)

Undistort a image.

Parameters
imageThe distorted image
dstThe undistorted image
bool ImageUndistort::set_intrinsics_xml ( string  filename)

Load a intrinsics.xml file.

Parameters
filenameRelative path for the intrinsics.xml file.
Returns
true if the file has been found.

Member Data Documentation

FileStorage ImageUndistort::fs
private

To read the intrinsics_xml file.

Definition at line 43 of file image_manipulation.h.

Mat ImageUndistort::map1
private

The undistort map.

Definition at line 46 of file image_manipulation.h.

Size ImageUndistort::size
private

Image size.

Definition at line 48 of file image_manipulation.h.


The documentation for this class was generated from the following file: