I am working on a OpenCV program capable of detecting Boxers punches and categories them. At the moment my program goes through all the different image processing, finds and detects contours, draws bounding boxes on ROI's (Region Of Interest), I am also computing some properties of each bounding box such as: Area and Center Point.
Now what i want to do is to draw a line from each bounding box starting from the center point and analyze that line for its Angle and Length. Have a look at the Image that illustrates my aim:
So hopefully now you guys have a better overview..........
My Question here is How do i draw such line from starting position to end position store it in a vector to analyse it...?
I did some research on various functions that draw lines but non of them seem to be appropriate for my purpose. Here are some Research links:
Opencv Draw Line & Line iterator & poly lines
Also looked at arcLength, fitLine, clipLine & Hough transform
Could some one indicate me which technique would best fit my aim...? Some good read, examples, Or just suggest how to even start this whole thing
Regards Hopefully my problem is well understood by now