Commit c0f84d2c authored by Maksim Shabunin's avatar Maksim Shabunin

Merge pull request #405 from Milania1:line_descriptor_getters

parents f98580b2 e57a81d2
......@@ -143,6 +143,30 @@ struct CV_EXPORTS KeyLine
/** number of pixels covered by the line */
int numOfPixels;
/** Returns the start point of the line in the original image */
Point2f getStartPoint() const
{
return Point2f(startPointX, startPointY);
}
/** Returns the end point of the line in the original image */
Point2f getEndPoint() const
{
return Point2f(endPointX, endPointY);
}
/** Returns the start point of the line in the octave it was extracted from */
Point2f getStartPointInOctave() const
{
return Point2f(sPointInOctaveX, sPointInOctaveY);
}
/** Returns the end point of the line in the octave it was extracted from */
Point2f getEndPointInOctave() const
{
return Point2f(ePointInOctaveX, ePointInOctaveY);
}
/** constructor */
KeyLine()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment