直線に対するHough変換 [詳細]
関数 | |
| template<class T , class Allocator , template< typename, typename > class LINES, class TT , class AAllocator , class FUNCTOR > | |
| bool | hough_transform (const array2< T, Allocator > &input, LINES< TT, AAllocator > &lines, std::size_t max_lines, double rho_resolution, double theta_resolution, size_t threshold, FUNCTOR value_functor) |
| Hough 変換(直線) | |
| template<class T , class Allocator , template< typename, typename > class LINES, class TT , class AAllocator > | |
| bool | hough_transform (const array2< T, Allocator > &input, LINES< TT, AAllocator > &lines, std::size_t max_lines, double rho_resolution=1.0, double theta_resolution=3.1415926535897932384626433832795/360.0, size_t threshold=100) |
| Hough 変換(直線) | |
直線に対するHough変換
| bool line::hough_transform | ( | const array2< T, Allocator > & | input, |
| LINES< TT, AAllocator > & | lines, | ||
| std::size_t | max_lines, | ||
| double | rho_resolution, | ||
| double | theta_resolution, | ||
| size_t | threshold, | ||
| FUNCTOR | value_functor | ||
| ) |
Hough 変換(直線)
| [in] | input | … 入力画像 |
| [out] | lines | … 求まった直線群のリスト(直線は極座標で表現される). |
| [in] | max_lines | … 抽出する直線の最大本数. |
| [in] | rho_resolution | … ρ分解能 [pixel] |
| [in] | theta_resolution | … θ分解能 [radian] |
| [in] | threshold | … 線を抽出する際のしきい値(対応する投票数がしきい値より大きい場合のみ線として抽出する). |
| [in] | value_functor | … 入力画像中から直線を表す画素かどうかを判定するファンクタ. |
| true | … Hough変換により直線が求まった場合 |
| false | … 直線が1本も求まらなかった場合 |
参照元 hough_transform().
| bool line::hough_transform | ( | const array2< T, Allocator > & | input, |
| LINES< TT, AAllocator > & | lines, | ||
| std::size_t | max_lines, | ||
| double | rho_resolution = 1.0, |
||
| double | theta_resolution = 3.1415926535897932384626433832795 / 360.0, |
||
| size_t | threshold = 100 |
||
| ) |
Hough 変換(直線)
| [in] | input | … 入力画像 |
| [out] | lines | … 求まった直線群のリスト(直線は極座標で表現される). |
| [in] | max_lines | … 抽出する直線の最大本数. |
| [in] | rho_resolution | … ρ分解能 [pixel](デフォルト値 1.0) |
| [in] | theta_resolution | … θ分解能 [radian](デフォルト値 π÷360) |
| [in] | threshold | … 線を抽出する際のしきい値(デフォルト値 100). |
| true | … Hough変換により直線が求まった場合 |
| false | … 直線が1本も求まらなかった場合 |
参照先 hough_transform().
1.8.1.2