header file of the PipeLineAction base-class
Child-classe, implements OpenCV's center of mass finding.
Definition: Moment.h:15
Moment(const cv::String name)
Constructor.
Definition: Moment.cpp:13
cv::Moments m
struct containing spatial moment
Definition: Moment.h:17
cv::Point * getCenterOfMass()
gets the output of the action
Definition: Moment.cpp:38
void showWindow()
shows the action to the user
Definition: Moment.cpp:43
int area
current value of the trackbar, used as area filter
Definition: Moment.h:20
void setAction(void *data)
sets the output of the action
Definition: Moment.cpp:21
cv::Point center
vector containing all contour points
Definition: Moment.h:18
int areaMax
highest value of the trackbar
Definition: Moment.h:19
void * getAction()
gets the output of the action
Definition: Moment.cpp:33
Base-class for all OpenCV pipeline actions.
Definition: PipeLineAction.h:23
cv::String name
(screen)name of the pipeline action
Definition: PipeLineAction.h:27