View Source Evision.MSER (Evision v0.2.9)

Summary

Types

t()

Type that represents an MSER struct.

Functions

Full constructor for %MSER detector

Full constructor for %MSER detector

Variant 1:

detect

Variant 1:

detect

Detect %MSER regions

getAreaThreshold

getEdgeBlurSize

getMaxEvolution

getMaxVariation

getMinDiversity

Variant 1:

read

setPass2Only

Types

@type t() :: %Evision.MSER{ref: reference()}

Type that represents an MSER struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec compute(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

compute(self, images, keypoints)

View Source
@spec compute(t(), [Evision.Mat.maybe_mat_in()], [[Evision.KeyPoint.t()]]) ::
  {[[Evision.KeyPoint.t()]], [Evision.Mat.t()]} | {:error, String.t()}
@spec compute(t(), Evision.Mat.maybe_mat_in(), [Evision.KeyPoint.t()]) ::
  {[Evision.KeyPoint.t()], Evision.Mat.t()} | {:error, String.t()}

Variant 1:

compute

Positional Arguments
  • self: Evision.MSER.t()

  • images: [Evision.Mat].

    Image set.

Return
  • keypoints: [[Evision.KeyPoint]].

    Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).

  • descriptors: [Evision.Mat].

    Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

Has overloading in C++

Python prototype (for reference only):

compute(images, keypoints[, descriptors]) -> keypoints, descriptors

Variant 2:

Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).

Positional Arguments
Return
  • keypoints: [Evision.KeyPoint].

    Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).

  • descriptors: Evision.Mat.t().

    Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

Python prototype (for reference only):

compute(image, keypoints[, descriptors]) -> keypoints, descriptors
Link to this function

compute(self, images, keypoints, opts)

View Source
@spec compute(
  t(),
  [Evision.Mat.maybe_mat_in()],
  [[Evision.KeyPoint.t()]],
  [{atom(), term()}, ...] | nil
) :: {[[Evision.KeyPoint.t()]], [Evision.Mat.t()]} | {:error, String.t()}
@spec compute(
  t(),
  Evision.Mat.maybe_mat_in(),
  [Evision.KeyPoint.t()],
  [{atom(), term()}, ...] | nil
) ::
  {[Evision.KeyPoint.t()], Evision.Mat.t()} | {:error, String.t()}

Variant 1:

compute

Positional Arguments
  • self: Evision.MSER.t()

  • images: [Evision.Mat].

    Image set.

Return
  • keypoints: [[Evision.KeyPoint]].

    Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).

  • descriptors: [Evision.Mat].

    Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

Has overloading in C++

Python prototype (for reference only):

compute(images, keypoints[, descriptors]) -> keypoints, descriptors

Variant 2:

Computes the descriptors for a set of keypoints detected in an image (first variant) or image set (second variant).

Positional Arguments
Return
  • keypoints: [Evision.KeyPoint].

    Input collection of keypoints. Keypoints for which a descriptor cannot be computed are removed. Sometimes new keypoints can be added, for example: SIFT duplicates keypoint with several dominant orientations (for each orientation).

  • descriptors: Evision.Mat.t().

    Computed descriptors. In the second variant of the method descriptors[i] are descriptors computed for a keypoints[i]. Row j is the keypoints (or keypoints[i]) is the descriptor for keypoint j-th keypoint.

Python prototype (for reference only):

compute(image, keypoints[, descriptors]) -> keypoints, descriptors
@spec create() :: t() | {:error, String.t()}

Full constructor for %MSER detector

Keyword Arguments
  • delta: integer().

    it compares \f$(size_{i}-size_{i-delta})/size_{i-delta}\f$

  • min_area: integer().

    prune the area which smaller than minArea

  • max_area: integer().

    prune the area which bigger than maxArea

  • max_variation: double.

    prune the area have similar size to its children

  • min_diversity: double.

    for color image, trace back to cut off mser with diversity less than min_diversity

  • max_evolution: integer().

    for color image, the evolution steps

  • area_threshold: double.

    for color image, the area threshold to cause re-initialize

  • min_margin: double.

    for color image, ignore too small margin

  • edge_blur_size: integer().

    for color image, the aperture size for edge blur

Return
  • retval: Evision.MSER.t()

Python prototype (for reference only):

create([, delta[, min_area[, max_area[, max_variation[, min_diversity[, max_evolution[, area_threshold[, min_margin[, edge_blur_size]]]]]]]]]) -> retval
@spec create(Keyword.t()) :: any() | {:error, String.t()}
@spec create(
  [
    area_threshold: term(),
    delta: term(),
    edge_blur_size: term(),
    max_area: term(),
    max_evolution: term(),
    max_variation: term(),
    min_area: term(),
    min_diversity: term(),
    min_margin: term()
  ]
  | nil
) :: t() | {:error, String.t()}

Full constructor for %MSER detector

Keyword Arguments
  • delta: integer().

    it compares \f$(size_{i}-size_{i-delta})/size_{i-delta}\f$

  • min_area: integer().

    prune the area which smaller than minArea

  • max_area: integer().

    prune the area which bigger than maxArea

  • max_variation: double.

    prune the area have similar size to its children

  • min_diversity: double.

    for color image, trace back to cut off mser with diversity less than min_diversity

  • max_evolution: integer().

    for color image, the evolution steps

  • area_threshold: double.

    for color image, the area threshold to cause re-initialize

  • min_margin: double.

    for color image, ignore too small margin

  • edge_blur_size: integer().

    for color image, the aperture size for edge blur

Return
  • retval: Evision.MSER.t()

Python prototype (for reference only):

create([, delta[, min_area[, max_area[, max_variation[, min_diversity[, max_evolution[, area_threshold[, min_margin[, edge_blur_size]]]]]]]]]) -> retval
@spec defaultNorm(Keyword.t()) :: any() | {:error, String.t()}
@spec defaultNorm(t()) :: integer() | {:error, String.t()}

defaultNorm

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

defaultNorm() -> retval
Link to this function

descriptorSize(named_args)

View Source
@spec descriptorSize(Keyword.t()) :: any() | {:error, String.t()}
@spec descriptorSize(t()) :: integer() | {:error, String.t()}

descriptorSize

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

descriptorSize() -> retval
Link to this function

descriptorType(named_args)

View Source
@spec descriptorType(Keyword.t()) :: any() | {:error, String.t()}
@spec descriptorType(t()) :: integer() | {:error, String.t()}

descriptorType

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

descriptorType() -> retval
@spec detect(Keyword.t()) :: any() | {:error, String.t()}
@spec detect(t(), [Evision.Mat.maybe_mat_in()]) ::
  [[Evision.KeyPoint.t()]] | {:error, String.t()}
@spec detect(t(), Evision.Mat.maybe_mat_in()) ::
  [Evision.KeyPoint.t()] | {:error, String.t()}

Variant 1:

detect

Positional Arguments
  • self: Evision.MSER.t()

  • images: [Evision.Mat].

    Image set.

Keyword Arguments
  • masks: [Evision.Mat].

    Masks for each input image specifying where to look for keypoints (optional). masks[i] is a mask for images[i].

Return
  • keypoints: [[Evision.KeyPoint]].

    The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .

Has overloading in C++

Python prototype (for reference only):

detect(images[, masks]) -> keypoints

Variant 2:

Detects keypoints in an image (first variant) or image set (second variant).

Positional Arguments
Keyword Arguments
  • mask: Evision.Mat.

    Mask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.

Return
  • keypoints: [Evision.KeyPoint].

    The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .

Python prototype (for reference only):

detect(image[, mask]) -> keypoints
Link to this function

detect(self, images, opts)

View Source
@spec detect(t(), [Evision.Mat.maybe_mat_in()], [{:masks, term()}] | nil) ::
  [[Evision.KeyPoint.t()]] | {:error, String.t()}
@spec detect(t(), Evision.Mat.maybe_mat_in(), [{:mask, term()}] | nil) ::
  [Evision.KeyPoint.t()] | {:error, String.t()}

Variant 1:

detect

Positional Arguments
  • self: Evision.MSER.t()

  • images: [Evision.Mat].

    Image set.

Keyword Arguments
  • masks: [Evision.Mat].

    Masks for each input image specifying where to look for keypoints (optional). masks[i] is a mask for images[i].

Return
  • keypoints: [[Evision.KeyPoint]].

    The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .

Has overloading in C++

Python prototype (for reference only):

detect(images[, masks]) -> keypoints

Variant 2:

Detects keypoints in an image (first variant) or image set (second variant).

Positional Arguments
Keyword Arguments
  • mask: Evision.Mat.

    Mask specifying where to look for keypoints (optional). It must be a 8-bit integer matrix with non-zero values in the region of interest.

Return
  • keypoints: [Evision.KeyPoint].

    The detected keypoints. In the second variant of the method keypoints[i] is a set of keypoints detected in images[i] .

Python prototype (for reference only):

detect(image[, mask]) -> keypoints
Link to this function

detectAndCompute(named_args)

View Source
@spec detectAndCompute(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

detectAndCompute(self, image, mask)

View Source
@spec detectAndCompute(t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) ::
  {[Evision.KeyPoint.t()], Evision.Mat.t()} | {:error, String.t()}

detectAndCompute

Positional Arguments
Keyword Arguments
  • useProvidedKeypoints: bool.
Return
  • keypoints: [Evision.KeyPoint]
  • descriptors: Evision.Mat.t().

Detects keypoints and computes the descriptors

Python prototype (for reference only):

detectAndCompute(image, mask[, descriptors[, useProvidedKeypoints]]) -> keypoints, descriptors
Link to this function

detectAndCompute(self, image, mask, opts)

View Source
@spec detectAndCompute(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  [{:useProvidedKeypoints, term()}] | nil
) :: {[Evision.KeyPoint.t()], Evision.Mat.t()} | {:error, String.t()}

detectAndCompute

Positional Arguments
Keyword Arguments
  • useProvidedKeypoints: bool.
Return
  • keypoints: [Evision.KeyPoint]
  • descriptors: Evision.Mat.t().

Detects keypoints and computes the descriptors

Python prototype (for reference only):

detectAndCompute(image, mask[, descriptors[, useProvidedKeypoints]]) -> keypoints, descriptors
Link to this function

detectRegions(named_args)

View Source
@spec detectRegions(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

detectRegions(self, image)

View Source
@spec detectRegions(t(), Evision.Mat.maybe_mat_in()) ::
  {[[{number(), number()}]], [{number(), number(), number(), number()}]}
  | {:error, String.t()}

Detect %MSER regions

Positional Arguments
  • self: Evision.MSER.t()

  • image: Evision.Mat.

    input image (8UC1, 8UC3 or 8UC4, must be greater or equal than 3x3)

Return
  • msers: [[Point]].

    resulting list of point sets

  • bboxes: [Rect].

    resulting bounding boxes

Python prototype (for reference only):

detectRegions(image) -> msers, bboxes
@spec empty(Keyword.t()) :: any() | {:error, String.t()}
@spec empty(t()) :: boolean() | {:error, String.t()}

empty

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: bool

Python prototype (for reference only):

empty() -> retval
Link to this function

getAreaThreshold(named_args)

View Source
@spec getAreaThreshold(Keyword.t()) :: any() | {:error, String.t()}
@spec getAreaThreshold(t()) :: number() | {:error, String.t()}

getAreaThreshold

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: double

Python prototype (for reference only):

getAreaThreshold() -> retval
Link to this function

getDefaultName(named_args)

View Source
@spec getDefaultName(Keyword.t()) :: any() | {:error, String.t()}
@spec getDefaultName(t()) :: binary() | {:error, String.t()}

getDefaultName

Positional Arguments
  • self: Evision.MSER.t()
Return

Python prototype (for reference only):

getDefaultName() -> retval
@spec getDelta(Keyword.t()) :: any() | {:error, String.t()}
@spec getDelta(t()) :: integer() | {:error, String.t()}

getDelta

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

getDelta() -> retval
Link to this function

getEdgeBlurSize(named_args)

View Source
@spec getEdgeBlurSize(Keyword.t()) :: any() | {:error, String.t()}
@spec getEdgeBlurSize(t()) :: integer() | {:error, String.t()}

getEdgeBlurSize

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

getEdgeBlurSize() -> retval
@spec getMaxArea(Keyword.t()) :: any() | {:error, String.t()}
@spec getMaxArea(t()) :: integer() | {:error, String.t()}

getMaxArea

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

getMaxArea() -> retval
Link to this function

getMaxEvolution(named_args)

View Source
@spec getMaxEvolution(Keyword.t()) :: any() | {:error, String.t()}
@spec getMaxEvolution(t()) :: integer() | {:error, String.t()}

getMaxEvolution

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

getMaxEvolution() -> retval
Link to this function

getMaxVariation(named_args)

View Source
@spec getMaxVariation(Keyword.t()) :: any() | {:error, String.t()}
@spec getMaxVariation(t()) :: number() | {:error, String.t()}

getMaxVariation

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: double

Python prototype (for reference only):

getMaxVariation() -> retval
@spec getMinArea(Keyword.t()) :: any() | {:error, String.t()}
@spec getMinArea(t()) :: integer() | {:error, String.t()}

getMinArea

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: integer()

Python prototype (for reference only):

getMinArea() -> retval
Link to this function

getMinDiversity(named_args)

View Source
@spec getMinDiversity(Keyword.t()) :: any() | {:error, String.t()}
@spec getMinDiversity(t()) :: number() | {:error, String.t()}

getMinDiversity

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: double

Python prototype (for reference only):

getMinDiversity() -> retval
Link to this function

getMinMargin(named_args)

View Source
@spec getMinMargin(Keyword.t()) :: any() | {:error, String.t()}
@spec getMinMargin(t()) :: number() | {:error, String.t()}

getMinMargin

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: double

Python prototype (for reference only):

getMinMargin() -> retval
Link to this function

getPass2Only(named_args)

View Source
@spec getPass2Only(Keyword.t()) :: any() | {:error, String.t()}
@spec getPass2Only(t()) :: boolean() | {:error, String.t()}

getPass2Only

Positional Arguments
  • self: Evision.MSER.t()
Return
  • retval: bool

Python prototype (for reference only):

getPass2Only() -> retval
@spec read(Keyword.t()) :: any() | {:error, String.t()}
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}
@spec read(t(), binary()) :: t() | {:error, String.t()}

Variant 1:

read

Positional Arguments

Python prototype (for reference only):

read(arg1) -> None

Variant 2:

read

Positional Arguments
  • self: Evision.MSER.t()
  • fileName: String

Python prototype (for reference only):

read(fileName) -> None
Link to this function

setAreaThreshold(named_args)

View Source
@spec setAreaThreshold(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setAreaThreshold(self, areaThreshold)

View Source
@spec setAreaThreshold(t(), number()) :: t() | {:error, String.t()}

setAreaThreshold

Positional Arguments
  • self: Evision.MSER.t()
  • areaThreshold: double

Python prototype (for reference only):

setAreaThreshold(areaThreshold) -> None
@spec setDelta(Keyword.t()) :: any() | {:error, String.t()}
@spec setDelta(t(), integer()) :: t() | {:error, String.t()}

setDelta

Positional Arguments
  • self: Evision.MSER.t()
  • delta: integer()

Python prototype (for reference only):

setDelta(delta) -> None
Link to this function

setEdgeBlurSize(named_args)

View Source
@spec setEdgeBlurSize(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setEdgeBlurSize(self, edge_blur_size)

View Source
@spec setEdgeBlurSize(t(), integer()) :: t() | {:error, String.t()}

setEdgeBlurSize

Positional Arguments
  • self: Evision.MSER.t()
  • edge_blur_size: integer()

Python prototype (for reference only):

setEdgeBlurSize(edge_blur_size) -> None
@spec setMaxArea(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMaxArea(self, maxArea)

View Source
@spec setMaxArea(t(), integer()) :: t() | {:error, String.t()}

setMaxArea

Positional Arguments
  • self: Evision.MSER.t()
  • maxArea: integer()

Python prototype (for reference only):

setMaxArea(maxArea) -> None
Link to this function

setMaxEvolution(named_args)

View Source
@spec setMaxEvolution(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMaxEvolution(self, maxEvolution)

View Source
@spec setMaxEvolution(t(), integer()) :: t() | {:error, String.t()}

setMaxEvolution

Positional Arguments
  • self: Evision.MSER.t()
  • maxEvolution: integer()

Python prototype (for reference only):

setMaxEvolution(maxEvolution) -> None
Link to this function

setMaxVariation(named_args)

View Source
@spec setMaxVariation(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMaxVariation(self, maxVariation)

View Source
@spec setMaxVariation(t(), number()) :: t() | {:error, String.t()}

setMaxVariation

Positional Arguments
  • self: Evision.MSER.t()
  • maxVariation: double

Python prototype (for reference only):

setMaxVariation(maxVariation) -> None
@spec setMinArea(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMinArea(self, minArea)

View Source
@spec setMinArea(t(), integer()) :: t() | {:error, String.t()}

setMinArea

Positional Arguments
  • self: Evision.MSER.t()
  • minArea: integer()

Python prototype (for reference only):

setMinArea(minArea) -> None
Link to this function

setMinDiversity(named_args)

View Source
@spec setMinDiversity(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMinDiversity(self, minDiversity)

View Source
@spec setMinDiversity(t(), number()) :: t() | {:error, String.t()}

setMinDiversity

Positional Arguments
  • self: Evision.MSER.t()
  • minDiversity: double

Python prototype (for reference only):

setMinDiversity(minDiversity) -> None
Link to this function

setMinMargin(named_args)

View Source
@spec setMinMargin(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMinMargin(self, min_margin)

View Source
@spec setMinMargin(t(), number()) :: t() | {:error, String.t()}

setMinMargin

Positional Arguments
  • self: Evision.MSER.t()
  • min_margin: double

Python prototype (for reference only):

setMinMargin(min_margin) -> None
Link to this function

setPass2Only(named_args)

View Source
@spec setPass2Only(Keyword.t()) :: any() | {:error, String.t()}
@spec setPass2Only(t(), boolean()) :: t() | {:error, String.t()}

setPass2Only

Positional Arguments
  • self: Evision.MSER.t()
  • f: bool

Python prototype (for reference only):

setPass2Only(f) -> None
@spec write(Keyword.t()) :: any() | {:error, String.t()}
@spec write(t(), binary()) :: t() | {:error, String.t()}

write

Positional Arguments
  • self: Evision.MSER.t()
  • fileName: String

Python prototype (for reference only):

write(fileName) -> None
@spec write(t(), Evision.FileStorage.t(), binary()) :: t() | {:error, String.t()}

write

Positional Arguments

Python prototype (for reference only):

write(fs, name) -> None