View Source Evision.GeneralizedHough (Evision v0.2.7)

Summary

Types

t()

Type that represents an GeneralizedHough struct.

Types

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

Type that represents an GeneralizedHough struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

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

Clears the algorithm state

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

Python prototype (for reference only):

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

detect

Positional Arguments
Return
  • positions: Evision.Mat.t().
  • votes: Evision.Mat.t().

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
  • positions: Evision.Mat.t().
  • votes: Evision.Mat.t().

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
  • positions: Evision.Mat.t().
  • votes: Evision.Mat.t().

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
  • positions: Evision.Mat.t().
  • votes: Evision.Mat.t().

Python prototype (for reference only):

detect(edges, dx, dy[, positions[, votes]]) -> positions, votes
@spec empty(Keyword.t()) :: any() | {:error, String.t()}
@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(named_args)

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

getCannyHighThresh

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

Python prototype (for reference only):

getCannyHighThresh() -> retval
Link to this function

getCannyLowThresh(named_args)

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

getCannyLowThresh

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

Python prototype (for reference only):

getCannyLowThresh() -> 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.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(Keyword.t()) :: any() | {:error, String.t()}
@spec getDp(t()) :: number() | {:error, String.t()}

getDp

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

Python prototype (for reference only):

getDp() -> retval
Link to this function

getMaxBufferSize(named_args)

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

getMaxBufferSize

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

Python prototype (for reference only):

getMaxBufferSize() -> retval
@spec getMinDist(Keyword.t()) :: any() | {:error, String.t()}
@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(Keyword.t()) :: any() | {:error, String.t()}
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}

Reads algorithm parameters from a file storage

Positional Arguments

Python prototype (for reference only):

read(fn) -> None
@spec save(Keyword.t()) :: any() | {:error, String.t()}
@spec save(t(), binary()) :: t() | {: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(named_args)

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

setCannyHighThresh(self, cannyHighThresh)

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

setCannyHighThresh

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

Python prototype (for reference only):

setCannyHighThresh(cannyHighThresh) -> None
Link to this function

setCannyLowThresh(named_args)

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

setCannyLowThresh(self, cannyLowThresh)

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

setCannyLowThresh

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

Python prototype (for reference only):

setCannyLowThresh(cannyLowThresh) -> None
@spec setDp(Keyword.t()) :: any() | {:error, String.t()}
@spec setDp(t(), number()) :: t() | {: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(named_args)

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

setMaxBufferSize(self, maxBufferSize)

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

setMaxBufferSize

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

Python prototype (for reference only):

setMaxBufferSize(maxBufferSize) -> None
@spec setMinDist(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMinDist(self, minDist)

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

setMinDist

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

Python prototype (for reference only):

setMinDist(minDist) -> None
@spec setTemplate(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setTemplate(self, templ)

View Source
@spec setTemplate(t(), Evision.Mat.maybe_mat_in()) :: t() | {: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(), [{:templCenter, term()}] | nil) ::
  t() | {: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()
) :: t() | {: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(),
  [{:templCenter, term()}] | nil
) :: t() | {:error, String.t()}

setTemplate

Positional Arguments
Keyword Arguments
  • templCenter: Point.

Python prototype (for reference only):

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

Stores algorithm parameters in a file storage

Positional Arguments

Python prototype (for reference only):

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

write

Positional Arguments

Has overloading in C++

Python prototype (for reference only):

write(fs, name) -> None