ClassesClassesClassesClasses | | | | Operators

plateausplateausPlateausplateausPlateausPlateaus (Operator)

Name

plateausplateausPlateausplateausPlateausPlateaus — Detect all gray value plateaus.

Signature

plateaus(Image : Plateaus : : )

Herror plateaus(const Hobject Image, Hobject* Plateaus)

Herror T_plateaus(const Hobject Image, Hobject* Plateaus)

Herror plateaus(Hobject Image, Hobject* Plateaus)

HRegionArray HImage::Plateaus() const

HRegionArray HImageArray::Plateaus() const

void Plateaus(const HObject& Image, HObject* Plateaus)

HRegion HImage::Plateaus() const

void HOperatorSetX.Plateaus(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*Plateaus)

IHRegionX* HImageX.Plateaus()

static void HOperatorSet.Plateaus(HObject image, out HObject plateaus)

HRegion HImage.Plateaus()

Description

plateausplateausPlateausplateausPlateausPlateaus extracts all points from ImageImageImageImageImageimage with a gray value greater or equal to the gray value of its neighbors (8-neighborhood) and returns them in PlateausPlateausPlateausPlateausPlateausplateaus. Each maximum is returned as a separate region.

Parallelization

Parameters

ImageImageImageImageImageimage (input_object)  singlechannelimage(-array) objectHImageHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real)

Input image.

PlateausPlateausPlateausPlateausPlateausplateaus (output_object)  region-array objectHRegionHRegionHRegionArrayHRegionXHobject *

Extracted plateaus as regions (one region for each plateau).

Example (C++ (HALCON 5.0-10.0))

#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);
}

Example (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);

Example (C++ (HALCON 5.0-10.0))

#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);
}

Example (C++ (HALCON 5.0-10.0))

#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);
}

Example (C++ (HALCON 5.0-10.0))

#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);
}

Example (C++ (HALCON 5.0-10.0))

#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);
}

Possible Predecessors

binomial_filterbinomial_filterBinomialFilterbinomial_filterBinomialFilterBinomialFilter, gauss_imagegauss_imageGaussImagegauss_imageGaussImageGaussImage, smooth_imagesmooth_imageSmoothImagesmooth_imageSmoothImageSmoothImage

Possible Successors

area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter, get_region_pointsget_region_pointsGetRegionPointsget_region_pointsGetRegionPointsGetRegionPoints, select_shapeselect_shapeSelectShapeselect_shapeSelectShapeSelectShape

Alternatives

plateaus_centerplateaus_centerPlateausCenterplateaus_centerPlateausCenterPlateausCenter, nonmax_suppression_ampnonmax_suppression_ampNonmaxSuppressionAmpnonmax_suppression_ampNonmaxSuppressionAmpNonmaxSuppressionAmp, local_maxlocal_maxLocalMaxlocal_maxLocalMaxLocalMax

See also

monotonymonotonyMonotonymonotonyMonotonyMonotony, topographic_sketchtopographic_sketchTopographicSketchtopographic_sketchTopographicSketchTopographicSketch, corner_responsecorner_responseCornerResponsecorner_responseCornerResponseCornerResponse, texture_lawstexture_lawsTextureLawstexture_lawsTextureLawsTextureLaws

Module

Foundation


ClassesClassesClassesClasses | | | | Operators