MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
#include <mdsLucasKanade.h>
Public Types | |
enum | { TEMPLATE_PARAMETER_IS_NOT_IMAGE = I::CLASS_IMAGE } |
Check that I is an image. More... | |
enum | { CLASS_OBJECT } |
Templates that require members of the CObject class can use this enum to check the existence. More... | |
enum | { HEAP_OBJECT = 0x70616568 } |
Signature used to recognize objects on the heap. More... | |
typedef I::tImage | tImage |
Image type. | |
typedef I::tSmartPtr | tImageSmartPtr |
Smart pointer to image. | |
typedef I::tPixel | tPixel |
Image pixel type. | |
typedef mds::img::CPyramid < tImage > | tPyramid |
Image pyramid. | |
Public Member Functions | |
void | clear () |
Clears the motion vector. | |
bool | compute (const tPyramid &First, const tPyramid &Second) |
Estimates optical flow between two given images. | |
COpticalFlow (tSize WindowSize=DEFAULT_WINDOW) | |
Constructor. | |
COpticalFlow (mds::img::tCoordinate x, mds::img::tCoordinate y, tSize WindowSize=DEFAULT_WINDOW) | |
Constructor. | |
CVector3D & | getMotion () |
Returns reference to the estimated motion. | |
const CVector3D & | getMotion () const |
CPoint3D & | getPosition () |
Returns reference to the current point position. | |
const CPoint3D & | getPosition () const |
int | getReferencesCount () const |
Returns the number of references. | |
int | getWindowSize () const |
Returns size of the used window. | |
bool | isOnHeap () const |
Returns true if the object is allocated on the heap. | |
MDS_SHAREDPTR (COpticalFlow) | |
Smart pointer type. | |
bool | visualize (tImage &Image) |
Visualizes the estimated optical flow. | |
void | warp () |
Moves point in the direction of the previously estimated optical flow. | |
virtual | ~COpticalFlow () |
Destructor. | |
Static Public Member Functions | |
static void * | operator new (std::size_t Size) |
Allocates a new object on the heap. | |
Static Public Attributes | |
static const tSize | DEFAULT_WINDOW = 13 |
Default size of the window that is used to estimate optical flow. | |
Protected Member Functions | |
void | addReference () const |
Increase the reference counter. | |
bool | delReference () const |
Decrease the reference counter. | |
Protected Attributes | |
int | m_iHeapObject |
Flag initialized if the object is on the heap. | |
int | m_iReferences |
The number of references to the object. | |
mds::math::CDMatrix | m_It |
mds::math::CDMatrix | m_Ix |
Helper matrixes. | |
mds::math::CDMatrix | m_Iy |
CVector3D | m_Motion |
Estimated optical flow. | |
CPoint3D | m_Point |
Subpixel point position. | |
tSize | m_WindowSize |
Size of the window. |
typedef I::tImage mds::img::COpticalFlow< I >::tImage |
Image type.
typedef I::tSmartPtr mds::img::COpticalFlow< I >::tImageSmartPtr |
Smart pointer to image.
typedef I::tPixel mds::img::COpticalFlow< I >::tPixel |
Image pixel type.
typedef mds::img::CPyramid<tImage> mds::img::COpticalFlow< I >::tPyramid |
Image pyramid.
anonymous enum |
anonymous enum [inherited] |
Templates that require members of the CObject class can use this enum to check the existence.
mds::img::COpticalFlow< I >::COpticalFlow | ( | tSize | WindowSize = DEFAULT_WINDOW | ) |
Constructor.
mds::img::COpticalFlow< I >::COpticalFlow | ( | mds::img::tCoordinate | x, |
mds::img::tCoordinate | y, | ||
tSize | WindowSize = DEFAULT_WINDOW |
||
) |
Constructor.
virtual mds::img::COpticalFlow< I >::~COpticalFlow | ( | ) | [virtual] |
Destructor.
void mds::base::CObject::addReference | ( | ) | const [protected, inherited] |
Increase the reference counter.
void COpticalFlow::clear | ( | ) |
Clears the motion vector.
bool COpticalFlow::compute | ( | const tPyramid & | First, |
const tPyramid & | Second | ||
) |
Estimates optical flow between two given images.
bool mds::base::CObject::delReference | ( | ) | const [protected, inherited] |
Decrease the reference counter.
CVector3D& mds::img::COpticalFlow< I >::getMotion | ( | ) |
Returns reference to the estimated motion.
const CVector3D& mds::img::COpticalFlow< I >::getMotion | ( | ) | const |
CPoint3D& mds::img::COpticalFlow< I >::getPosition | ( | ) |
Returns reference to the current point position.
const CPoint3D& mds::img::COpticalFlow< I >::getPosition | ( | ) | const |
int mds::base::CObject::getReferencesCount | ( | ) | const [inherited] |
Returns the number of references.
int mds::img::COpticalFlow< I >::getWindowSize | ( | ) | const |
Returns size of the used window.
bool mds::base::CObject::isOnHeap | ( | ) | const [inherited] |
Returns true if the object is allocated on the heap.
mds::img::COpticalFlow< I >::MDS_SHAREDPTR | ( | COpticalFlow< I > | ) |
Smart pointer type.
static void* mds::base::CObject::operator new | ( | std::size_t | Size | ) | [static, inherited] |
Allocates a new object on the heap.
bool COpticalFlow::visualize | ( | tImage & | Image | ) |
Visualizes the estimated optical flow.
void COpticalFlow::warp | ( | ) |
Moves point in the direction of the previously estimated optical flow.
const tSize COpticalFlow::DEFAULT_WINDOW = 13 [static] |
Default size of the window that is used to estimate optical flow.
int mds::base::CObject::m_iHeapObject [mutable, protected, inherited] |
Flag initialized if the object is on the heap.
int mds::base::CObject::m_iReferences [mutable, protected, inherited] |
The number of references to the object.
mds::math::CDMatrix mds::img::COpticalFlow< I >::m_It [protected] |
mds::math::CDMatrix mds::img::COpticalFlow< I >::m_Ix [protected] |
Helper matrixes.
mds::math::CDMatrix mds::img::COpticalFlow< I >::m_Iy [protected] |
CVector3D mds::img::COpticalFlow< I >::m_Motion [protected] |
Estimated optical flow.
CPoint3D mds::img::COpticalFlow< I >::m_Point [protected] |
Subpixel point position.
tSize mds::img::COpticalFlow< I >::m_WindowSize [protected] |
Size of the window.