Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ConfigWatershed

[149:7] extends: object

ConfigWatershed wraps boofcv.factory.segmentation.ConfigWatershed.

Members

  • obj

Methods

  • ConfigWatershed (string RuleName = "EIGHT", int MinimumRegionSize = 20)

    Creates a watershed config.

    • @p RuleName is FOUR or EIGHT.
    • @p MinimumRegionSize is the minimum region size.
  • get (string Name)

    Gets a config field.

    • @p Name is connectRule or minimumRegionSize.
    • @r The field value.
  • set (string Name, Value)

    Sets a config field.

    • @p Name is connectRule or minimumRegionSize.
    • @p Value is the new field value.
  • checkValidity ()

    Validates this config.

class: ImageSuperpixels

[40:7] extends: object

ImageSuperpixels wraps boofcv.abst.segmentation.ImageSuperpixels.

Members

  • obj

Methods

  • ImageSuperpixels (object Obj)

    Wraps a BoofCV ImageSuperpixels object.

    • @p Obj is an existing ImageSuperpixels Java object or wrapper.
  • segment (object Input, object Output)

    Segments an image into labeled superpixels.

    • @p Input is the input image.
    • @p Output is a GrayS32 label image.
  • getTotalSuperpixels ()

    Gets the total number of superpixels from the most recent segmentation.

    • @r The total number of superpixels.
  • getRule ()

    Gets the connectivity rule.

    • @r A ConnectRule Java object.
  • getImageType ()

    Gets the image type.

    • @r An ImageType Java object.

class: ConfigFh04

[120:7] extends: object

ConfigFh04 wraps boofcv.factory.segmentation.ConfigFh04.

Members

  • obj

Methods

  • ConfigFh04 (K = 300.0, int MinimumRegionSize = 20)

    Creates an FH04 config.

    • @p K is the merge threshold.
    • @p MinimumRegionSize is the minimum region size.
  • get (string Name)

    Gets a config field.

    • @p Name is K, minimumRegionSize, connectRule, or approximateSortBins.
    • @r The field value.
  • set (string Name, Value)

    Sets a config field.

    • @p Name is K, minimumRegionSize, connectRule, or approximateSortBins.
    • @p Value is the new field value.
  • checkValidity ()

    Validates this config.

class: ConfigSlic

[73:7] extends: object

ConfigSlic wraps boofcv.factory.segmentation.ConfigSlic.

Members

  • obj

Methods

  • ConfigSlic (int NumberOfRegions = 100)

    Creates a SLIC config.

    • @p NumberOfRegions is the requested region count.
  • get (string Name)

    Gets a config field.

    • @p Name is numberOfRegions, spacialWeight, totalIterations, or connectRule.
    • @r The field value.
  • set (string Name, Value)

    Sets a config field.

    • @p Name is numberOfRegions, spacialWeight, totalIterations, or connectRule.
    • @p Value is the new field value.
  • setTotalIterations (int TotalIterations)

    Sets the total iteration count.

    • @p TotalIterations is the number of SLIC iterations.
  • setSpacialWeight (SpacialWeight)

    Sets the spatial weight.

    • @p SpacialWeight is the SLIC spatial weight.
  • setConnectRule (string RuleName)

    Sets the connectivity rule.

    • @p RuleName is FOUR or EIGHT.
  • checkValidity ()

    Validates this config.

class: ConfigSegmentMeanShift

[178:7] extends: object

ConfigSegmentMeanShift wraps boofcv.factory.segmentation.ConfigSegmentMeanShift.

Members

  • obj

Methods

  • ConfigSegmentMeanShift (int SpacialRadius = 10, ColorRadius = 10.0, int MinimumRegionSize = 20, bool Fast = true)

    Creates a mean-shift segment config.

    • @p SpacialRadius is the spatial radius.
    • @p ColorRadius is the color radius.
    • @p MinimumRegionSize is the minimum region size.
    • @p Fast selects the fast implementation.
  • get (string Name)

    Gets a config field.

    • @p Name is spacialRadius, colorRadius, minimumRegionSize, fast, or connectRule.
    • @r The field value.
  • set (string Name, Value)

    Sets a config field.

    • @p Name is spacialRadius, colorRadius, minimumRegionSize, fast, or connectRule.
    • @p Value is the new field value.
  • checkValidity ()

    Validates this config.

class: FactoryImageSegmentation

[6:14] static extends: object

Static wrappers for boofcv.factory.segmentation.FactoryImageSegmentation.

Methods

  • meanShift (object Config, object ImageTypeValue)

    Creates a mean-shift superpixel segmenter.

    • @p Config is a ConfigSegmentMeanShift wrapper or Java object.
    • @p ImageTypeValue is an ImageType wrapper or Java object.
    • @r An ImageSuperpixels wrapper.
  • slic (object Config, object ImageTypeValue)

    Creates a SLIC superpixel segmenter.

    • @p Config is a ConfigSlic wrapper or Java object.
    • @p ImageTypeValue is an ImageType wrapper or Java object.
    • @r An ImageSuperpixels wrapper.
  • fh04 (object Config, object ImageTypeValue)

    Creates an FH04 superpixel segmenter.

    • @p Config is a ConfigFh04 wrapper or Java object.
    • @p ImageTypeValue is an ImageType wrapper or Java object.
    • @r An ImageSuperpixels wrapper.
  • watershed (object Config, object ImageTypeValue)

    Creates a watershed superpixel segmenter.

    • @p Config is a ConfigWatershed wrapper or Java object.
    • @p ImageTypeValue is an ImageType wrapper or Java object.
    • @r An ImageSuperpixels wrapper.