Skip to content

plateausPlateausPlateausplateausplateaus🔗

説明🔗

plateausPlateausPlateausplateausplateaus — すべてのグレイ値プラトー を検出する。

書式🔗

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

Herror plateaus( const Hobject Image, Hobject* Plateaus )

Herror T_plateaus( const Hobject Image, Hobject* Plateaus )

HRegion HImage::Plateaus( ) const

HRegion HImage.Plateaus( )

説明🔗

plateausPlateaus は、Imageimageimage からその近傍(8-連結性)のグレイ値以上のグレイ値 をもつすべての点を抽出し、Plateausplateausplateaus で それらを返します。各領域は、別々の領域として返ります。

実行情報🔗

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

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

  • 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)

入力画像

Plateausplateausplateaus (output_object) region-array → objectHObjectHRegionHObjectHobject *

プラトーとして抽出された領域

例🔗

(C)

read_image(&Image,"fabrik")\;
corner_responce(Image,&CornerResp,5,0.04)\;
plateaus(CornerResp,&Maxima)\;
set_colored(WindowHandle,12)\;
disp_region(Maxima,WindowHandle)\;
T_area_center(Maxima,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 maxi = cres.Plateaus ()\;
 win.SetColored (12)\;
  maxi.Display (win)\;
  win.Click ()\;
 return (0)\;
}

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

組み合わせ

前処理の候補

binomial_filterBinomialFilter, gauss_filterGaussFilter, smooth_imageSmoothImage

後処理の候補

area_centerAreaCenter, get_region_pointsGetRegionPoints, select_shapeSelectShape

他の選択候補

plateaus_centerPlateausCenter, nonmax_suppression_ampNonmaxSuppressionAmp, local_maxLocalMax

関連項目

monotonyMonotony, topographic_sketchTopographicSketch, corner_responseCornerResponse, texture_lawsTextureLaws

モジュール🔗

Foundation