KlassenKlassenKlassenKlassen | | | | Operatoren

expand_lineexpand_lineExpandLineexpand_lineExpandLineExpandLine (Operator)

Name

expand_lineexpand_lineExpandLineexpand_lineExpandLineExpandLine — Expandieren ausgehend von einer Linie.

Signatur

expand_line(Image : RegionExpand : Coordinate, ExpandType, RowColumn, Threshold : )

Herror expand_line(const Hobject Image, Hobject* RegionExpand, const Hlong Coordinate, const char* ExpandType, const char* RowColumn, double Threshold)

Herror T_expand_line(const Hobject Image, Hobject* RegionExpand, const Htuple Coordinate, const Htuple ExpandType, const Htuple RowColumn, const Htuple Threshold)

Herror expand_line(Hobject Image, Hobject* RegionExpand, const HTuple& Coordinate, const HTuple& ExpandType, const HTuple& RowColumn, const HTuple& Threshold)

HRegion HImage::ExpandLine(const HTuple& Coordinate, const HTuple& ExpandType, const HTuple& RowColumn, const HTuple& Threshold) const

HRegionArray HImageArray::ExpandLine(const HTuple& Coordinate, const HTuple& ExpandType, const HTuple& RowColumn, const HTuple& Threshold) const

void ExpandLine(const HObject& Image, HObject* RegionExpand, const HTuple& Coordinate, const HTuple& ExpandType, const HTuple& RowColumn, const HTuple& Threshold)

HRegion HImage::ExpandLine(Hlong Coordinate, const HString& ExpandType, const HString& RowColumn, const HTuple& Threshold) const

HRegion HImage::ExpandLine(Hlong Coordinate, const HString& ExpandType, const HString& RowColumn, double Threshold) const

HRegion HImage::ExpandLine(Hlong Coordinate, const char* ExpandType, const char* RowColumn, double Threshold) const

void HOperatorSetX.ExpandLine(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*RegionExpand, [in] VARIANT Coordinate, [in] VARIANT ExpandType, [in] VARIANT RowColumn, [in] VARIANT Threshold)

IHRegionX* HImageX.ExpandLine(
[in] Hlong Coordinate, [in] BSTR ExpandType, [in] BSTR RowColumn, [in] VARIANT Threshold)

static void HOperatorSet.ExpandLine(HObject image, out HObject regionExpand, HTuple coordinate, HTuple expandType, HTuple rowColumn, HTuple threshold)

HRegion HImage.ExpandLine(int coordinate, string expandType, string rowColumn, HTuple threshold)

HRegion HImage.ExpandLine(int coordinate, string expandType, string rowColumn, double threshold)

Beschreibung

expand_lineexpand_lineExpandLineexpand_lineExpandLineExpandLine erzeugt eine Region durch Expansion, ausgehend von einer Linie (Zeile oder Spalte). Die Expansion wird beendet, sobald der betrachtete Grauwert um mehr als ThresholdThresholdThresholdThresholdThresholdthreshold vom Mittelwert entlang der Linie (ExpandTypeExpandTypeExpandTypeExpandTypeExpandTypeexpandType = 'mean'"mean""mean""mean""mean""mean") oder vom zuletzt hinzugefügten Grauwert (ExpandTypeExpandTypeExpandTypeExpandTypeExpandTypeexpandType = 'gradient'"gradient""gradient""gradient""gradient""gradient") abweicht.

Parallelisierung

Parameter

ImageImageImageImageImageimage (input_object)  singlechannelimage(-array) objectHImageHImageHImageHImageXHobject (byte)

Eingabebild.

RegionExpandRegionExpandRegionExpandRegionExpandRegionExpandregionExpand (output_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject *

Gefundenes Segmente.

CoordinateCoordinateCoordinateCoordinateCoordinatecoordinate (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Koordinate der Zeile oder Spalte.

Defaultwert: 256

Wertevorschläge: 16, 64, 128, 200, 256, 300, 400, 511

Restriktion: Coordinate >= 0

ExpandTypeExpandTypeExpandTypeExpandTypeExpandTypeexpandType (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Kriterium für Abbruch.

Defaultwert: 'gradient' "gradient" "gradient" "gradient" "gradient" "gradient"

Werteliste: 'gradient'"gradient""gradient""gradient""gradient""gradient", 'mean'"mean""mean""mean""mean""mean"

RowColumnRowColumnRowColumnRowColumnRowColumnrowColumn (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Segmentationsmodus (Zeile oder Spalte).

Defaultwert: 'row' "row" "row" "row" "row" "row"

Werteliste: 'column'"column""column""column""column""column", 'row'"row""row""row""row""row"

ThresholdThresholdThresholdThresholdThresholdthreshold (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Schwellenwert für Ausdehnung.

Defaultwert: 3.0

Wertevorschläge: 0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 13.0, 17.0, 20.0, 30.0

Typischer Wertebereich: 1.0 ≤ Threshold Threshold Threshold Threshold Threshold threshold ≤ 255.0 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 1.0

Restriktion: Threshold >= 0.0 && Threshold <= 255.0

Beispiel (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[])
{
  HImage   image (argv[1]),
           gauss;
  HWindow  win;

  win.SetDraw ("margin");
  win.SetColored (12);

  image.Display (win);

  gauss = image.GaussImage (5);

  HRegionArray reg = gauss.ExpandLine (100, "mean", "row", 5.0);

  reg.Display (win);
  win.Click ();

  return (0);
}

Beispiel (C)

read_image(&Image,"fabrik");
gauss_filter(Image,&Gauss,5);
expand_line(Gauss,&Reg,100,"mean","row",5.0);
set_colored(WindowHandle,12);
disp_region(Maxima,WindowHandle);

Beispiel (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[])
{
  HImage   image (argv[1]),
           gauss;
  HWindow  win;

  win.SetDraw ("margin");
  win.SetColored (12);

  image.Display (win);

  gauss = image.GaussImage (5);

  HRegionArray reg = gauss.ExpandLine (100, "mean", "row", 5.0);

  reg.Display (win);
  win.Click ();

  return (0);
}

Beispiel (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[])
{
  HImage   image (argv[1]),
           gauss;
  HWindow  win;

  win.SetDraw ("margin");
  win.SetColored (12);

  image.Display (win);

  gauss = image.GaussImage (5);

  HRegionArray reg = gauss.ExpandLine (100, "mean", "row", 5.0);

  reg.Display (win);
  win.Click ();

  return (0);
}

Beispiel (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[])
{
  HImage   image (argv[1]),
           gauss;
  HWindow  win;

  win.SetDraw ("margin");
  win.SetColored (12);

  image.Display (win);

  gauss = image.GaussImage (5);

  HRegionArray reg = gauss.ExpandLine (100, "mean", "row", 5.0);

  reg.Display (win);
  win.Click ();

  return (0);
}

Beispiel (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[])
{
  HImage   image (argv[1]),
           gauss;
  HWindow  win;

  win.SetDraw ("margin");
  win.SetColored (12);

  image.Display (win);

  gauss = image.GaussImage (5);

  HRegionArray reg = gauss.ExpandLine (100, "mean", "row", 5.0);

  reg.Display (win);
  win.Click ();

  return (0);
}

Vorgänger

binomial_filterbinomial_filterBinomialFilterbinomial_filterBinomialFilterBinomialFilter, gauss_filtergauss_filterGaussFiltergauss_filterGaussFilterGaussFilter, smooth_imagesmooth_imageSmoothImagesmooth_imageSmoothImageSmoothImage, anisotropic_diffusionanisotropic_diffusionAnisotropicDiffusionanisotropic_diffusionAnisotropicDiffusionAnisotropicDiffusion, median_imagemedian_imageMedianImagemedian_imageMedianImageMedianImage, affine_trans_imageaffine_trans_imageAffineTransImageaffine_trans_imageAffineTransImageAffineTransImage, rotate_imagerotate_imageRotateImagerotate_imageRotateImageRotateImage

Nachfolger

intersectionintersectionIntersectionintersectionIntersectionIntersection, openingopeningOpeningopeningOpeningOpening, closingclosingClosingclosingClosingClosing

Alternativen

regiongrowing_meanregiongrowing_meanRegiongrowingMeanregiongrowing_meanRegiongrowingMeanRegiongrowingMean, expand_grayexpand_grayExpandGrayexpand_grayExpandGrayExpandGray, expand_gray_refexpand_gray_refExpandGrayRefexpand_gray_refExpandGrayRefExpandGrayRef

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren