Function:CuviVideoStabilizer

From CUVI Wiki
Revision as of 18:46, 17 June 2014 by Ghazanfar (talk | contribs)

CuviVideoStabilizer

A class to perform stabilization of a video file

  • CuviVideoStabilizer() - Default constructor. Creates empty CuviVideoStabilizer object.
  • CuviVideoStabilizer(const std::string& path, CuviMotionModel model = CUVI_MOTION_DEFAULT) - Creates a CuviVideoStabilizer object from the specified video file. Calls create.
  • ~CuviVideoStabilizer() - Destructor. Calls release.
  • CuviStatus create(const std::string& path, CuviMotionModel model = CUVI_MOTION_DEFAULT) - Creates a CuviVideoStabilizer object from the specified video file.
Name Type Description
path const std::string& Path of the input video file
model CuviMotionModel Type of motion to compensate.
  • void release(). Frees the CuviVideoStabilizer object.
  • CuviStatus getNextStabilizedFrame(CuviImage& stabilized) const; - Stabilize and return the next video frame.
Name Type Description
stabilized CuviImage& Output stabilized frame.
  • Cuvi32s width() const; - Returns width of the video frame.
  • Cuvi32s height() const; - Returns height of the video frame.
  • Cuvi32s numFrames() const; - Returns number of frames in the video.
  • Cuvi64f fps() const; - Returns frame rate of the video.