Skip to content

lowlandsLowlandsLowlandslowlandslowlands🔗

説明🔗

lowlandsLowlandsLowlandslowlandslowlands — すべてのグレイ低地を検出する。

書式🔗

lowlands( image Image, out region Lowlands )void Lowlands( const HObject& Image, HObject* Lowlands )static void HOperatorSet.Lowlands( HObject image, out HObject lowlands )def lowlands( image: HObject ) -> HObject

Herror lowlands( const Hobject Image, Hobject* Lowlands )

Herror T_lowlands( const Hobject Image, Hobject* Lowlands )

HRegion HImage::Lowlands( ) const

HRegion HImage.Lowlands( )

説明🔗

lowlandsLowlands は、その近傍(8-連結性)のグレイ値以下のグレイ値 をもつ Imageimageimage からすべての点を抽出し、Lowlandslowlandslowlands で それらを返します。平坦な領域はそれぞれ別領域として返されます。

実行情報🔗

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

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

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

パラメーター🔗

Imageimageimage (input_object) singlechannelimage(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)HImage (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)HObject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)Hobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)

入力画像

Lowlandslowlandslowlands (output_object) region-array → objectHObjectHRegionHObjectHobject *

抽出された平坦な領域 (各領域はそれぞれ別領域として扱われます)

例🔗

(C)

read_image(&Image,"fabrik")\;
corner_responce(Image,&CornerResp,5,0.04)\;
lowlands(CornerResp,&Minima)\;
set_colored(WindowHandle,12)\;
disp_region(Minima,WindowHandle)\;
T_area_center(Minima,NULL,&Row,&Col)\;
(C++)
#include "HIOStream.h"
#if !defined(USE_IOSTREAM_H)
using namespace std\;
#endif
#include "HalconCpp.h"
using namespace Halcon\;

int main (int argc, char *argv[])
{
  if (argc != 2)
  {
    cout << "Usage : " << argv[0] << " <name of image>" << endl\;
    return (-1)\;
  }
 HImage   image (argv[1])\;
  HWindow  win\;
 image.Display (win)\;
 HImage       cres = image.CornerResponse (5, 0.04)\;
  HRegionArray mins = cres.Lowlands ()\;
 win.SetColored (12)\;
  mins.Display (win)\;
  win.Click ()\;
 return (0)\;
}

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

binomial_filterBinomialFilter, gauss_filterGaussFilter, smooth_imageSmoothImage

後処理の候補

area_centerAreaCenter, get_region_pointsGetRegionPoints, select_shapeSelectShape

他の選択候補

lowlands_centerLowlandsCenter, gray_skeletonGraySkeleton, local_minLocalMin

関連項目

monotonyMonotony, topographic_sketchTopographicSketch, corner_responseCornerResponse, texture_lawsTextureLaws

モジュール🔗

Foundation