Applies Ridge Detection Filter to an input image. Implements Ridge detection similar to the one in
Mathematica
using the eigen values from the Hessian Matrix of the input image using Sobel Derivatives. Additional refinement can be done using Skeletonization and Binarization. Adapted from
[segleafvein]
and
[M_RF]
[詳解]
#include <ridgefilter.hpp>
cv::Algorithmを継承しています。
|
static CV_WRAP
Ptr<
RidgeDetectionFilter
> |
create
(int ddepth=CV_32FC1, int dx=1, int dy=1, int ksize=3, int out_dtype=CV_8UC1, double scale=1, double delta=0, int borderType=BORDER_DEFAULT) |
|
リッジ検出フィルタへのポインタを作成します.[【詳解】(英語]
|
|
template<typename _Tp >
|
static
Ptr< _Tp > |
read
(const
FileNode
&fn) |
|
ファイル・ノードからアルゴリズムを読み込む[【詳解】(英語]
|
|
template<typename _Tp >
|
static
Ptr< _Tp > |
load
(const String &filename, const String &objname=String()) |
|
ファイルからアルゴリズムを読み込む[【詳解】(英語]
|
|
template<typename _Tp >
|
static
Ptr< _Tp > |
loadFromString
(const String &strModel, const String &objname=String()) |
|
文字列からアルゴリズムを読み込む[【詳解】(英語]
|
|
Ridge Detection Filter を入力画像に適用します。のものと同様のリッジ検出を実装しています.Mathematicaと同様に,入力画像のヘシアン行列の固有値を使って,Sobel 微分を使ったリッジ検出を行います.スケルトン化および2値化を使ってさらに精密化することができます.引用元[SEGLEAFVEIN] (英語)および[M_RF] より引用
◆
create()
static CV_WRAP
Ptr<
RidgeDetectionFilter
> cv::ximgproc::RidgeDetectionFilter::create
|
( |
int |
ddepth
=
CV_32FC1 ,
|
|
|
int |
dx
=
1 ,
|
|
|
int |
dy
=
1 ,
|
|
|
int |
ksize
=
3 ,
|
|
|
int |
out_dtype
=
CV_8UC1 ,
|
|
|
double |
scale
=
1 ,
|
|
|
double |
delta
=
0 ,
|
|
|
int |
borderType
=
BORDER_DEFAULT
|
|
) |
|
|
|
static
|
リッジ検出フィルタへのポインタを作成します.
- 引数
-
ddepth |
出力画像の深度を指定します.初期値は CV_32FC1 です. |
dx |
導関数xの次数,デフォルトは1. |
dy |
導関数yの次数,デフォルトは1. |
ksize |
Sobelカーネルサイズ,デフォルトは3. |
out_dtype |
出力の変換形式,デフォルトは CV_8UC1 です. |
scale |
微分値に対する任意のスケール値,デフォルトは1. |
delta |
出力に追加される任意のバイアス,デフォルトは0. |
borderType |
ピクセル外挿法,デフォルトは BORDER_DEFAULT. |
- 参照
-
Sobel,threshold,getStructuringElement,morphologyEx.( さらなる改良のために)
◆
getRidgeFilteredImage()
virtual CV_WRAP void cv::ximgproc::RidgeDetectionFilter::getRidgeFilteredImage
|
( |
InputArray |
_img,
|
|
|
OutputArray |
out |
|
) |
|
|
|
pure virtual
|
リッジ検出フィルタを入力画像に適用します.
- 引数
-
_img |
InputArray は Sobel でサポートされているもので,img は 1-Channel または 3-Channel である. |
out |
RidgeDetectionFilter::ddepth と同じ構造の出力配列.稜線のある画像を出力します. |
このクラス詳解は次のファイルから抽出されました: