Skip to content

coherence_enhancing_diffCoherenceEnhancingDiffCoherenceEnhancingDiffcoherence_enhancing_diffcoherence_enhancing_diff🔗

説明🔗

coherence_enhancing_diffCoherenceEnhancingDiffCoherenceEnhancingDiffcoherence_enhancing_diffcoherence_enhancing_diff — エッジ方向を保存したまま平滑化する

書式🔗

coherence_enhancing_diff( image Image, out image ImageCED, real Sigma, real Rho, real Theta, integer Iterations )void CoherenceEnhancingDiff( const HObject& Image, HObject* ImageCED, const HTuple& Sigma, const HTuple& Rho, const HTuple& Theta, const HTuple& Iterations )static void HOperatorSet.CoherenceEnhancingDiff( HObject image, out HObject imageCED, HTuple sigma, HTuple rho, HTuple theta, HTuple iterations )def coherence_enhancing_diff( image: HObject, sigma: float, rho: float, theta: float, iterations: int ) -> HObject

Herror coherence_enhancing_diff( const Hobject Image, Hobject* ImageCED, double Sigma, double Rho, double Theta, const Hlong Iterations )

Herror T_coherence_enhancing_diff( const Hobject Image, Hobject* ImageCED, const Htuple Sigma, const Htuple Rho, const Htuple Theta, const Htuple Iterations )

HImage HImage::CoherenceEnhancingDiff( double Sigma, double Rho, double Theta, Hlong Iterations ) const

HImage HImage.CoherenceEnhancingDiff( double sigma, double rho, double theta, int iterations )

説明🔗

オペレーター coherence_enhancing_diffCoherenceEnhancingDiff は、 Imageimageimage に 含まれる画像構造のコヒーレンスを増やすために、入力画像 Imageimageimage で 非等方性拡散プロセスを実行します。特に、 非連続拡散エッジが、エッジ方向に 直角に平滑化されることなく拡散によって結合されます。このため、 coherence_enhancing_diffCoherenceEnhancingDiff はWeickertによって公式化された 非等方性拡散方程式を使用します。

\[\begin{eqnarray*} u_{t} = div(G(u) \nabla u) \end{eqnarray*}\]

行列Gが Imageimageimage のグレイ値に依存する 2x2 の係数行列である 場合、これは、平均曲率流の強化または時間 \(t_{0} = 0\) における 入力画像 Imageimageimage によって定義されるグレイ値の関数 \(u\) の固有の 熱方程式になります。

\[\begin{eqnarray*} u_{t} = div(\frac{\nabla u}{|\nabla u|}) |\nabla u| = curv(u) |\nabla u| \end{eqnarray*}\]

平滑化オペレーター mean_curvature_flowMeanCurvatureFlow は平均曲率流を直接利用 します。差分拡散方程式はステップ幅 Thetathetatheta の Iterationsiterationsiterations 回の時間ステップにおいて計算されます。そのため、出力画像 ImageCEDimageCEDimage_ced は、時間 \(\textrm{Iterations} \cdot \textrm{Theta}\) でグレイ値関数を含みます。

よりロバストにエッジ方向を検出するために、特に、ノイズのある入力データ に対して、追加の非等方性平滑化ステップがグレイ値の勾配計算の前に行われます。 等方性画像平滑化のオペレーター isotropic_diffusionIsotropicDiffusion と同様 に、パラメーター Sigmasigmasigma は、対応するガウスコンボリューション カーネルの標準偏差の平均によって平滑化の度合いを決定します。

以下の式によって行列 \(G\) が与えられる場合、

\[\begin{eqnarray*} G_{MCF}(u) = I - \frac{1}{|\nabla u|^2} \nabla u (\nabla u)^T, \end{eqnarray*}\]

単位行列を示す、オペレーター mean_curvature_flowMeanCurvatureFlow の場合、 \(G_{MCF}\) はまた coherence_enhancing_diffCoherenceEnhancingDiff のために標準偏差 Rhorhorho のガウスフィルターによって再度コンポーネント 方向に平滑化されます。

\[\begin{eqnarray*} G_{CED} = g_{1}\left((\lambda_{1}-\lambda_{2})^2\right) w_{1} (w_{1})^T + g_{2}\left((\lambda_{1}-\lambda_{2})^2\right) w_{2} (w_{2})^T \end{eqnarray*}\]

その後、上記のような最終的な係数行列が中間行列の固有値 \(\lambda_{1},\lambda_{2}\) と 固有ベクトル \(w_{1},w_{2}\) から生成されます。

\[\begin{eqnarray*} \begin{array}{rcl} g_{1}(p) &=& 0.001\\ g_{2}(p) &=& 0.001 + 0.999 \, \exp\left(\displaystyle\frac{-1}{p}\right) \end{array} \end{eqnarray*}\]

上記関数は実験的に求められ、Weickertによって発表されています。

それゆえ、mean_curvature_flowMeanCurvatureFlow の拡散方向はグレイ値勾配の 局所的な方向によってのみ決められます。 \(G_{CED}\) は スケール Rhorhorho の画像オブジェクトの巨視的構造と考えられ、 coherence_enhancing_diffCoherenceEnhancingDiff はこの構造がどのように定義されて いるかで異なります。

注意🔗

入力画像としてドメインを絞り込んだ画像を用いた場合、期待しない結果と なる場合があります。章Filters を確認ください。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • tupleレベルで自動的に並列演算処理を実施

  • チャンネルレベルで自動的に並列演算処理を実施

パラメーター🔗

Imageimageimage (input_object) (multichannel-)image(-array) → object (byte / uint2 / real)HObject (byte / uint2 / real)HImage (byte / uint2 / real)HObject (byte / uint2 / real)Hobject (byte / uint2 / real)

入力画像

ImageCEDimageCEDimage_ced (output_object) image(-array) → object (byte / uint2 / real)HObject (byte / uint2 / real)HImage (byte / uint2 / real)HObject (byte / uint2 / real)Hobject * (byte / uint2 / real)

出力画像

Sigmasigmasigma (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

微分係数オペレーターのための平滑化係数

初期値: 0.50.5
推奨値: 0.0, 0.1, 0.5, 1.00.0, 0.1, 0.5, 1.0
制限: Sigma >= 0

Rhorhorho (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

拡散係数のための平滑化係数

初期値: 3.03.0
推奨値: 0.0, 1.0, 3.0, 5.0, 10.0, 30.00.0, 1.0, 3.0, 5.0, 10.0, 30.0
制限: Rho >= 0

Thetathetatheta (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

時間ステップ

初期値: 0.50.5
推奨値: 0.1, 0.2, 0.3, 0.4, 0.50.1, 0.2, 0.3, 0.4, 0.5
制限: 0 < Theta <= 0.5

Iterationsiterationsiterations (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

繰り返し数

初期値: 1010
推奨値: 1, 5, 10, 20, 50, 100, 5001, 5, 10, 20, 50, 100, 500
制限: Iterations >= 1

参考文献🔗

J. Weickert, V. Hlavac, R. Sara; ``Multiscale texture enhancement’‘; Computer analysis of images and patterns, Lecture Notes in Computer Science, Vol. 970, pp. 230-237; Springer, Berlin; 1995.

J. Weickert, B. ter Haar Romeny, L. Florack, J. Koenderink, M. Viergever; “A review of nonlinear diffusion filtering”; Scale-Space Theory in Computer Vision, Lecture Notes in Comp. Science, Vol. 1252, pp. 3-28; Springer, Berlin; 1997.

モジュール🔗

Foundation