#include "Image/OpenCVUtil.H"
#include "Image/CutPaste.H"
#include "Image/ColorOps.H"
#include "Image/MathOps.H"
#include "Image/DrawOps.H"
#include <cstdio>
#include "Robots/Beobot2/Navigation/FOE_Navigation/MotionOps.H"
Go to the source code of this file.
Defines | |
#define | MAX_NUM_FEATURES 1000 |
Functions | |
static void | allocateOnDemand (IplImage **img, CvSize size, int depth, int channels) |
rutz::shared_ptr< OpticalFlow > | getCleanOpticFlow (Image< byte > img) |
void | saveCleanOpticFlow (Image< byte > img) |
rutz::shared_ptr< OpticalFlow > | getLucasKanadeOpticFlow (Image< byte > image1, Image< byte > image2) |
Image< PixRGB< byte > > | drawOpticFlow (Image< PixRGB< byte > > img, rutz::shared_ptr< OpticalFlow > oflow) |
draw the optic flow given a set of correspondences |
various motion related functions. For example: Lucas&Kanade, Horn&Schunck optical flow
Definition in file MotionOps.C.
Image<PixRGB<byte> > drawOpticFlow | ( | Image< PixRGB< byte > > | img, | |
rutz::shared_ptr< OpticalFlow > | oflow | |||
) |
draw the optic flow given a set of correspondences
Definition at line 308 of file MotionOps.C.
Referenced by PopulationHeadingMap::getFOE().
rutz::shared_ptr<OpticalFlow> getCleanOpticFlow | ( | Image< byte > | img | ) |
get clean optical flow using: o(x,y) = 1/Z(x,y)*A(x,y)Trans + B(x,y)Rot
Definition at line 63 of file MotionOps.C.
References Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getWidth(), and height.
Referenced by PopulationHeadingMap::getFOE().
rutz::shared_ptr<OpticalFlow> getLucasKanadeOpticFlow | ( | Image< byte > | image1, | |
Image< byte > | image2 | |||
) |
get the Lucas Kanade optic flow for motion from image1 to image2
Definition at line 207 of file MotionOps.C.
References Image< T >::getDims(), Image< T >::getHeight(), Image< T >::getWidth(), and img2ipl().
Referenced by MotionOpticalFlowChannel::doInput().