Container class for storing information about the camera used to capture an image *.
More...
#include <camera.h>
|
| Camera (cv::Size imageSize, cv::Size2d fov, cv::Mat cameraMatrix, cv::Mat distortionCoeffs, cv::Mat newCameraMatrix, bool applyUndistort=true) |
| creates a Camera representing the specs for a given lens and sensor More...
|
|
cv::Size2d | get_fov () |
| Returns the field of view of the camera in degrees for both horizontal and vertical dimensions.
|
|
cv::Mat * | undistort (cv::Mat &img) |
| Undistorts image. More...
|
|
Container class for storing information about the camera used to capture an image *.
Camera::Camera |
( |
cv::Size |
imageSize, |
|
|
cv::Size2d |
fov, |
|
|
cv::Mat |
cameraMatrix, |
|
|
cv::Mat |
distortionCoeffs, |
|
|
cv::Mat |
newCameraMatrix, |
|
|
bool |
applyUndistort = true |
|
) |
| |
creates a Camera representing the specs for a given lens and sensor
- Parameters
-
imageSize | Size of the camera image |
fov | The field of view of the camera |
cameraMatrix | OpenCV camera calibration matrix giving focal length and principal point |
distortionCoeffs | OpenCV distortion coefficients used for undistorting images #param undistort Whether or not to apply undistortion to images. If false the camera acts as a placeholder that can be used for testing |
Mat * Camera::undistort |
( |
cv::Mat & |
img | ) |
|
Undistorts image.
- Parameters
-
- Returns
- An orthorectified version of the given mat
The documentation for this class was generated from the following files:
- modules/core/include/camera.h
- modules/core/src/camera.cpp