View Source Evision.GeneralizedHough (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.GeneralizedHough struct.

Functions

Clears the algorithm state

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

getCannyHighThresh

getCannyLowThresh

getDefaultName

getDp

getMaxBufferSize

getMinDist

Reads algorithm parameters from a file storage

simplified API for language bindings

simplified API for language bindings

Link to this section Types

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

Type that represents an Evision.GeneralizedHough struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec clear(t()) :: :ok | {:error, String.t()}

Clears the algorithm state

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

Python prototype (for reference only):

clear() -> None
@spec detect(t(), Evision.Mat.maybe_mat_in()) ::
  {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}

detect

Positional Arguments
Return

Python prototype (for reference only):

detect(image[, positions[, votes]]) -> positions, votes
Link to this function

detect(self, image, opts)

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

detect

Positional Arguments
Return

Python prototype (for reference only):

detect(image[, positions[, votes]]) -> positions, votes
Link to this function

detect(self, edges, dx, dy)

View Source

detect

Positional Arguments
Return

Python prototype (for reference only):

detect(edges, dx, dy[, positions[, votes]]) -> positions, votes
Link to this function

detect(self, edges, dx, dy, opts)

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

detect

Positional Arguments
Return

Python prototype (for reference only):

detect(edges, dx, dy[, positions[, votes]]) -> positions, votes
@spec empty(t()) :: boolean() | {:error, String.t()}

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

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

Python prototype (for reference only):

empty() -> retval
Link to this function

getCannyHighThresh(self)

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

getCannyHighThresh

Positional Arguments
  • self: Evision.GeneralizedHough.t()
Return
  • retval: int

Python prototype (for reference only):

getCannyHighThresh() -> retval
@spec getCannyLowThresh(t()) :: integer() | {:error, String.t()}

getCannyLowThresh

Positional Arguments
  • self: Evision.GeneralizedHough.t()
Return
  • retval: int

Python prototype (for reference only):

getCannyLowThresh() -> retval
@spec getDefaultName(t()) :: binary() | {:error, String.t()}

getDefaultName

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

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

Python prototype (for reference only):

getDefaultName() -> retval
@spec getDp(t()) :: number() | {:error, String.t()}

getDp

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

Python prototype (for reference only):

getDp() -> retval
@spec getMaxBufferSize(t()) :: integer() | {:error, String.t()}

getMaxBufferSize

Positional Arguments
  • self: Evision.GeneralizedHough.t()
Return
  • retval: int

Python prototype (for reference only):

getMaxBufferSize() -> retval
@spec getMinDist(t()) :: number() | {:error, String.t()}

getMinDist

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

Python prototype (for reference only):

getMinDist() -> retval
@spec read(t(), Evision.FileNode.t()) :: :ok | {:error, String.t()}

Reads algorithm parameters from a file storage

Positional Arguments

Python prototype (for reference only):

read(fn_) -> None
@spec save(t(), binary()) :: :ok | {:error, String.t()}

save

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • filename: String

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).

Python prototype (for reference only):

save(filename) -> None
Link to this function

setCannyHighThresh(self, cannyHighThresh)

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

setCannyHighThresh

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • cannyHighThresh: int

Python prototype (for reference only):

setCannyHighThresh(cannyHighThresh) -> None
Link to this function

setCannyLowThresh(self, cannyLowThresh)

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

setCannyLowThresh

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • cannyLowThresh: int

Python prototype (for reference only):

setCannyLowThresh(cannyLowThresh) -> None
@spec setDp(t(), number()) :: :ok | {:error, String.t()}

setDp

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • dp: double

Python prototype (for reference only):

setDp(dp) -> None
Link to this function

setMaxBufferSize(self, maxBufferSize)

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

setMaxBufferSize

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • maxBufferSize: int

Python prototype (for reference only):

setMaxBufferSize(maxBufferSize) -> None
Link to this function

setMinDist(self, minDist)

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

setMinDist

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • minDist: double

Python prototype (for reference only):

setMinDist(minDist) -> None
Link to this function

setTemplate(self, templ)

View Source
@spec setTemplate(t(), Evision.Mat.maybe_mat_in()) :: :ok | {:error, String.t()}

setTemplate

Positional Arguments
Keyword Arguments
  • templCenter: Point.

Python prototype (for reference only):

setTemplate(templ[, templCenter]) -> None
Link to this function

setTemplate(self, templ, opts)

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

setTemplate

Positional Arguments
Keyword Arguments
  • templCenter: Point.

Python prototype (for reference only):

setTemplate(templ[, templCenter]) -> None
Link to this function

setTemplate(self, edges, dx, dy)

View Source
@spec setTemplate(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in()
) :: :ok | {:error, String.t()}

setTemplate

Positional Arguments
Keyword Arguments
  • templCenter: Point.

Python prototype (for reference only):

setTemplate(edges, dx, dy[, templCenter]) -> None
Link to this function

setTemplate(self, edges, dx, dy, opts)

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

setTemplate

Positional Arguments
Keyword Arguments
  • templCenter: Point.

Python prototype (for reference only):

setTemplate(edges, dx, dy[, templCenter]) -> None
@spec write(t(), Evision.FileStorage.t()) :: :ok | {:error, String.t()}

simplified API for language bindings

Positional Arguments
Keyword Arguments

Has overloading in C++

Python prototype (for reference only):

write(fs[, name]) -> None
@spec write(t(), Evision.FileStorage.t(), [{atom(), term()}, ...] | nil) ::
  :ok | {:error, String.t()}

simplified API for language bindings

Positional Arguments
Keyword Arguments

Has overloading in C++

Python prototype (for reference only):

write(fs[, name]) -> None