OpenCV453
公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::line_descriptor::KeyLine 構造体

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.

構築子と解体子

◆ KeyLine()

CV_WRAP cv::line_descriptor::KeyLine::KeyLine ( )
inline

constructor

関数詳解

◆ getEndPoint()

CV_WRAP Point2f cv::line_descriptor::KeyLine::getEndPoint ( ) const
inline

Returns the end point of the line in the original image

◆ getEndPointInOctave()

CV_WRAP Point2f cv::line_descriptor::KeyLine::getEndPointInOctave ( ) const
inline

Returns the end point of the line in the octave it was extracted from

◆ getStartPoint()

CV_WRAP Point2f cv::line_descriptor::KeyLine::getStartPoint ( ) const
inline

Returns the start point of the line in the original image

◆ getStartPointInOctave()

CV_WRAP Point2f cv::line_descriptor::KeyLine::getStartPointInOctave ( ) const
inline

Returns the start point of the line in the octave it was extracted from

メンバ詳解

◆ angle

CV_PROP_RW float cv::line_descriptor::KeyLine::angle

orientation of the line

◆ class_id

CV_PROP_RW int cv::line_descriptor::KeyLine::class_id

object ID, that can be used to cluster keylines by the line they represent

◆ lineLength

CV_PROP_RW float cv::line_descriptor::KeyLine::lineLength

the length of line

◆ numOfPixels

CV_PROP_RW int cv::line_descriptor::KeyLine::numOfPixels

number of pixels covered by the line

◆ octave

CV_PROP_RW int cv::line_descriptor::KeyLine::octave

octave (pyramid layer), from which the keyline has been extracted

◆ pt

CV_PROP_RW Point2f cv::line_descriptor::KeyLine::pt

coordinates of the middlepoint

◆ response

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

◆ size

CV_PROP_RW float cv::line_descriptor::KeyLine::size

minimum area containing line

◆ sPointInOctaveX

CV_PROP_RW float cv::line_descriptor::KeyLine::sPointInOctaveX

line's extremes in image it was extracted from

◆ startPointX

CV_PROP_RW float cv::line_descriptor::KeyLine::startPointX

lines's extremes in original image


この構造体詳解は次のファイルから抽出されました: