該類實現了線條檢測及其二值描述符計算的功能。更多...
#include <opencv2/line_descriptor/descriptor.hpp>
|
| | BinaryDescriptor (const BinaryDescriptor::Params ¶meters=BinaryDescriptor::Params()) |
| | 建構函式。
|
| |
| | ~BinaryDescriptor () |
| |
| void | compute (const Mat &image, std::vector< KeyLine > &keylines, Mat &descriptors, bool returnFloatDescr=false) const |
| | 需要計算描述符。
|
| |
| void | compute (const std::vector< Mat > &images, std::vector< std::vector< KeyLine > > &keylines, std::vector< Mat > &descriptors, bool returnFloatDescr=false) const |
| |
| int | defaultNorm () const |
| |
| int | descriptorSize () const |
| | 返回描述符大小。
|
| |
| int | descriptorType () const |
| | 返回資料型別。
|
| |
| void | detect (const Mat &image, std::vector< KeyLine > &keypoints, const Mat &mask=Mat()) |
| | 需要進行線條檢測。
|
| |
| void | detect (const std::vector< Mat > &images, std::vector< std::vector< KeyLine > > &keylines, const std::vector< Mat > &masks=std::vector< Mat >()) const |
| |
| int | getNumOfOctaves () |
| | 獲取當前八度數。
|
| |
| int | getReductionRatio () |
| | 獲取當前縮減比率(用於高斯金字塔)
|
| |
| int | getWidthOfBand () |
| | 獲取當前波段寬度。
|
| |
| virtual void | operator() (InputArray image, InputArray mask, std::vector< KeyLine > &keylines, OutputArray descriptors, bool useProvidedKeyLines=false, bool returnFloatDescr=false) const |
| | 定義運算子 '()' 以執行 KeyLine 檢測和描述符的順序計算。
|
| |
| virtual void | read (const cv::FileNode &fn) CV_OVERRIDE |
| | 從 FileNode 物件讀取引數並存儲。
|
| |
| void | setNumOfOctaves (int octaves) |
| | 設定八度數。
|
| |
| void | setReductionRatio (int rRatio) |
| | 設定縮減比率(用於高斯金字塔)
|
| |
| void | setWidthOfBand (int width) |
| | 設定波段寬度。
|
| |
| virtual void | write (cv::FileStorage &fs) const CV_OVERRIDE |
| | 將引數儲存到 FileStorage 物件。
|
| |
| | Algorithm () |
| |
| virtual | ~Algorithm () |
| |
| virtual void | clear () |
| | 清除演算法狀態。
|
| |
| virtual bool | empty () const |
| | 如果 Algorithm 為空(例如,在最開始或讀取不成功後),則返回 true。
|
| |
| virtual String | getDefaultName () const |
| |
| virtual void | save (const String &filename) const |
| |
| void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
| |
| void | write (FileStorage &fs, const String &name) const |
| |
該類實現了線條檢測及其二值描述符計算的功能。
該類的介面主要基於經典的檢測器和提取器,例如 Feature2d 的特徵檢測與描述和描述符匹配器。獲取到的線條資訊儲存在line_descriptor::KeyLine 物件中。
◆ BinaryDescriptor()
建構函式。
- 引數
-
如果未提供引數,建構函式將設定預設值(請參閱上一節程式碼片段中的註釋)。強烈建議使用預設值。
◆ ~BinaryDescriptor()
| cv::line_descriptor::BinaryDescriptor::~BinaryDescriptor |
( |
| ) |
|
◆ compute() [1/2 過載]
| void cv::line_descriptor::BinaryDescriptor::compute |
( |
const Mat & | image, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
Mat & | descriptors, |
|
|
bool | returnFloatDescr = false ) const |
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.compute( | image, keylines[, descriptors[, returnFloatDescr]] | ) -> | keylines, descriptors |
需要計算描述符。
- 引數
-
| image | 輸入影像 |
| keylines | 包含需要計算描述符的線條的向量 |
| descriptors | |
| returnFloatDescr | 標誌(設定為 true 時,返回原始非二值描述符) |
◆ compute() [2/2 過載]
| void cv::line_descriptor::BinaryDescriptor::compute |
( |
const std::vector< Mat > & | images, |
|
|
std::vector< std::vector< KeyLine > > & | keylines, |
|
|
std::vector< Mat > & | descriptors, |
|
|
bool | returnFloatDescr = false ) const |
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.compute( | image, keylines[, descriptors[, returnFloatDescr]] | ) -> | keylines, descriptors |
這是一個過載的成員函式,為方便起見而提供。它與上述函式的區別僅在於接受的引數。
- 引數
-
| images | 輸入影像 |
| keylines | 包含需要計算描述符的線條的向量集 |
| descriptors | |
| returnFloatDescr | 標誌(設定為 true 時,返回原始非二值描述符) |
◆ computeImpl()
| virtual void cv::line_descriptor::BinaryDescriptor::computeImpl |
( |
const Mat & | imageSrc, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
Mat & | descriptors, |
|
|
bool | returnFloatDescr, |
|
|
bool | useDetectionData ) const |
|
保護虛擬函式 |
◆ createBinaryDescriptor() [1/2 過載]
| static Ptr< BinaryDescriptor > cv::line_descriptor::BinaryDescriptor::createBinaryDescriptor |
( |
| ) |
|
|
static |
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.createBinaryDescriptor( | | ) -> | retval |
| cv.line_descriptor.BinaryDescriptor_createBinaryDescriptor( | | ) -> | retval |
◆ createBinaryDescriptor() [2/2 過載]
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.createBinaryDescriptor( | | ) -> | retval |
| cv.line_descriptor.BinaryDescriptor_createBinaryDescriptor( | | ) -> | retval |
◆ defaultNorm()
| int cv::line_descriptor::BinaryDescriptor::defaultNorm |
( |
| ) |
const |
◆ descriptorSize()
| int cv::line_descriptor::BinaryDescriptor::descriptorSize |
( |
| ) |
const |
◆ descriptorType()
| int cv::line_descriptor::BinaryDescriptor::descriptorType |
( |
| ) |
const |
◆ detect() [1/2 過載]
| void cv::line_descriptor::BinaryDescriptor::detect |
( |
const Mat & | image, |
|
|
std::vector< KeyLine > & | keypoints, |
|
|
const Mat & | mask = Mat() ) |
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.detect( | image[, mask] | ) -> | keypoints |
需要進行線條檢測。
- 引數
-
| image | 輸入影像 |
| keypoints | 將儲存一個或多個影像的提取線的向量 |
| mask | 僅檢測感興趣的 KeyLines 的掩碼矩陣 |
◆ detect() [2/2 過載]
| void cv::line_descriptor::BinaryDescriptor::detect |
( |
const std::vector< Mat > & | images, |
|
|
std::vector< std::vector< KeyLine > > & | keylines, |
|
|
const std::vector< Mat > & | masks = std::vector< Mat >() ) const |
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.detect( | image[, mask] | ) -> | keypoints |
這是一個過載的成員函式,為方便起見而提供。它與上述函式的區別僅在於接受的引數。
- 引數
-
| images | 輸入影像 |
| keylines | 將儲存一個或多個影像中提取的線條的向量集 |
| 遮罩 | 掩碼矩陣向量,用於從每個輸入影像中僅檢測感興趣的 KeyLine |
◆ detectImpl()
| virtual void cv::line_descriptor::BinaryDescriptor::detectImpl |
( |
const Mat & | imageSrc, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
const Mat & | mask = Mat() ) const |
|
保護虛擬函式 |
◆ getNumOfOctaves()
| int cv::line_descriptor::BinaryDescriptor::getNumOfOctaves |
( |
| ) |
|
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.getNumOfOctaves( | | ) -> | retval |
◆ getReductionRatio()
| int cv::line_descriptor::BinaryDescriptor::getReductionRatio |
( |
| ) |
|
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.getReductionRatio( | | ) -> | retval |
◆ getWidthOfBand()
| int cv::line_descriptor::BinaryDescriptor::getWidthOfBand |
( |
| ) |
|
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.getWidthOfBand( | | ) -> | retval |
◆ operator()()
| virtual void cv::line_descriptor::BinaryDescriptor::operator() |
( |
InputArray | image, |
|
|
InputArray | mask, |
|
|
std::vector< KeyLine > & | keylines, |
|
|
OutputArray | descriptors, |
|
|
bool | useProvidedKeyLines = false, |
|
|
bool | returnFloatDescr = false ) const |
|
virtual |
定義運算子 '()' 以執行 KeyLine 檢測和描述符的順序計算。
- 引數
-
| image | 輸入影像 |
| mask | 掩碼矩陣,用於從提取的線條中選擇 KeyLines 中必須接受的線條(當 keylines 不為空時使用) |
| keylines | 包含輸入線條的向量(填充後,將跳過檢測部分,輸入線條將作為描述符計算演算法的輸入) |
| descriptors | 將儲存最終描述符的矩陣 |
| useProvidedKeyLines | 標誌(設定為 true 時,將跳過檢測階段,僅使用 keylines 中提供的線條執行描述符計算) |
| returnFloatDescr | 標誌(設定為 true 時,返回原始非二值描述符) |
◆ read()
| virtual void cv::line_descriptor::BinaryDescriptor::read |
( |
const cv::FileNode & | fn | ) |
|
|
virtual |
◆ setNumOfOctaves()
| void cv::line_descriptor::BinaryDescriptor::setNumOfOctaves |
( |
int | octaves | ) |
|
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.setNumOfOctaves( | octaves | ) -> | 無 |
◆ setReductionRatio()
| void cv::line_descriptor::BinaryDescriptor::setReductionRatio |
( |
int | rRatio | ) |
|
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.setReductionRatio( | rRatio | ) -> | 無 |
◆ setWidthOfBand()
| void cv::line_descriptor::BinaryDescriptor::setWidthOfBand |
( |
int | width | ) |
|
| Python |
|---|
| cv.line_descriptor.BinaryDescriptor.setWidthOfBand( | width | ) -> | 無 |
◆ write()
| virtual void cv::line_descriptor::BinaryDescriptor::write |
( |
cv::FileStorage & | fs | ) |
const |
|
virtual |
此類的文件生成自以下檔案