UWARG Computer Vision
camera.h
Go to the documentation of this file.
1 
17 #ifndef CAMERA_H_INCLUDED
18 #define CAMERA_H_INCLUDED
19 
28 class Camera {
29 public:
39  Camera(cv::Size imageSize, cv::Size2d fov, cv::Mat cameraMatrix, cv::Mat distortionCoeffs, cv::Mat newCameraMatrix, bool applyUndistort = true);
40 
44  cv::Size2d get_fov();
45 
51  cv::Mat * undistort(cv::Mat &img);
52 
56  static Camera TestCamera();
57 
58 private:
59  bool applyUndistort;
60  cv::Size2d fov;
61  cv::Mat cameraMatrix;
62  cv::Mat distortionCoeffs;
63  cv::Mat newCameraMatrix;
64 };
65 
66 #endif //CAMERA_H_INCLUDED
cv::Size2d get_fov()
Returns the field of view of the camera in degrees for both horizontal and vertical dimensions...
Definition: camera.cpp:65
static Camera TestCamera()
Example Camera for testing purposes.
Definition: camera.cpp:37
cv::Mat * undistort(cv::Mat &img)
Undistorts image.
Definition: camera.cpp:27
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
Definition: camera.cpp:23
Container class for storing information about the camera used to capture an image *...
Definition: camera.h:28