OpenCV453
|
A class to represent a line [詳解]
#include <descriptor.hpp>
公開メンバ関数 | |
CV_WRAP Point2f | getStartPoint () const |
CV_WRAP Point2f | getEndPoint () const |
CV_WRAP Point2f | getStartPointInOctave () const |
CV_WRAP Point2f | getEndPointInOctave () const |
CV_WRAP | KeyLine () |
公開変数類 | |
CV_PROP_RW float | angle |
CV_PROP_RW int | class_id |
CV_PROP_RW int | octave |
CV_PROP_RW Point2f | pt |
CV_PROP_RW float | response |
CV_PROP_RW float | size |
CV_PROP_RW float | startPointX |
CV_PROP_RW float | startPointY |
CV_PROP_RW float | endPointX |
CV_PROP_RW float | endPointY |
CV_PROP_RW float | sPointInOctaveX |
CV_PROP_RW float | sPointInOctaveY |
CV_PROP_RW float | ePointInOctaveX |
CV_PROP_RW float | ePointInOctaveY |
CV_PROP_RW float | lineLength |
CV_PROP_RW int | numOfPixels |
A class to represent a line
As aformentioned, it is been necessary to design a class that fully stores the information needed to characterize completely a line and plot it on image it was extracted from, when required.
KeyLine* class has been created for such goal; it is mainly inspired to Feature2d's KeyPoint class, since KeyLine shares some of KeyPoint's fields, even if a part of them assumes a different meaning, when speaking about lines. In particular:
Apart from fields inspired to KeyPoint class, KeyLines stores information about extremes of line in original image and in octave it was extracted from, about line's length and number of pixels it covers.
|
inline |
constructor
|
inline |
Returns the end point of the line in the original image
|
inline |
Returns the end point of the line in the octave it was extracted from
|
inline |
Returns the start point of the line in the original image
|
inline |
Returns the start point of the line in the octave it was extracted from
CV_PROP_RW float cv::line_descriptor::KeyLine::angle |
orientation of the line
CV_PROP_RW int cv::line_descriptor::KeyLine::class_id |
object ID, that can be used to cluster keylines by the line they represent
CV_PROP_RW float cv::line_descriptor::KeyLine::lineLength |
the length of line
CV_PROP_RW int cv::line_descriptor::KeyLine::numOfPixels |
number of pixels covered by the line
CV_PROP_RW int cv::line_descriptor::KeyLine::octave |
octave (pyramid layer), from which the keyline has been extracted
CV_PROP_RW Point2f cv::line_descriptor::KeyLine::pt |
coordinates of the middlepoint
CV_PROP_RW float cv::line_descriptor::KeyLine::response |
the response, by which the strongest keylines have been selected. It's represented by the ratio between line's length and maximum between image's width and height
CV_PROP_RW float cv::line_descriptor::KeyLine::size |
minimum area containing line
CV_PROP_RW float cv::line_descriptor::KeyLine::sPointInOctaveX |
line's extremes in image it was extracted from
CV_PROP_RW float cv::line_descriptor::KeyLine::startPointX |
lines's extremes in original image