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 ( )


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


Member Function Documentation

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

Undistort a image.

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

Load a intrinsics.xml file.

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

Member Data Documentation

FileStorage ImageUndistort::fs

To read the intrinsics_xml file.

Definition at line 43 of file image_manipulation.h.

Mat ImageUndistort::map1

The undistort map.

Definition at line 46 of file image_manipulation.h.

Size ImageUndistort::size

Image size.

Definition at line 48 of file image_manipulation.h.

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