UWARG Computer Vision
Public Member Functions | List of all members
Frame Class Reference
Collaboration diagram for Frame:
Collaboration graph

Public Member Functions

 Frame (cv::Mat *img, std::string id, Metadata m, Camera &camera)
 
std::string get_id ()
 
cv::Mat & get_img ()
 
cv::Mat & orig_img ()
 Original Image. More...
 
void add_object (PixelObject *o)
 Adds given object to the list of objects in the frame. More...
 
std::vector< PixelObject * > & get_objects ()
 getter for targets More...
 
const Metadataget_metadata ()
 getter for metadata More...
 
void save (std::string dir)
 Stores the frame as an image file. More...
 
cv::Mat * undistort (Camera &camera)
 returns a new undistorted image using the given camera Intended for testing purposes, Does not modify the Frame. More...
 

Member Function Documentation

void Frame::add_object ( PixelObject o)

Adds given object to the list of objects in the frame.

Parameters
oobject identified as being in the frame
std::string Frame::get_id ( )
Returns
timestamp identifier for the frame
cv::Mat & Frame::get_img ( )
Returns
image associated with the frame
const Metadata * Frame::get_metadata ( )

getter for metadata

Returns
const pointer to internal metadata structure
std::vector< PixelObject * > & Frame::get_objects ( )

getter for targets

Returns
iterator pointing at the first target in the target list
cv::Mat & Frame::orig_img ( )

Original Image.

Returns
original image before any calibration
void Frame::save ( std::string  dir)

Stores the frame as an image file.

Parameters
dirDirectory to store the file
cv::Mat * Frame::undistort ( Camera camera)

returns a new undistorted image using the given camera Intended for testing purposes, Does not modify the Frame.

Parameters
camerathe camera to use for undistortion
Returns
A new image that is the original image contained in this frame undistorted with the camera

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