View Source Evision.GeneralizedHough (Evision v0.1.38)

Summary

Types

t()

Type that represents an 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

Stores algorithm parameters in a file storage

Types

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

Type that represents an GeneralizedHough struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@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(t(), Evision.Mat.maybe_mat_in()) ::
  {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}

detect

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • image: Evision.Mat.t()
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
  • self: Evision.GeneralizedHough.t()
  • image: Evision.Mat.t()
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
  • self: Evision.GeneralizedHough.t()
  • edges: Evision.Mat.t()
  • dx: Evision.Mat.t()
  • dy: Evision.Mat.t()
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
  • self: Evision.GeneralizedHough.t()
  • edges: Evision.Mat.t()
  • dx: Evision.Mat.t()
  • dy: Evision.Mat.t()
Return
  • positions: Evision.Mat.t().
  • votes: Evision.Mat.t().

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()) :: t() | {:error, String.t()}

Reads algorithm parameters from a file storage

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

Python prototype (for reference only):

read(fn_) -> None
@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(self, cannyHighThresh)

View Source
@spec setCannyHighThresh(t(), integer()) :: t() | {: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()) :: t() | {:error, String.t()}

setCannyLowThresh

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

Python prototype (for reference only):

setCannyLowThresh(cannyLowThresh) -> None
@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(self, maxBufferSize)

View Source
@spec setMaxBufferSize(t(), integer()) :: t() | {: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()) :: t() | {: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()) :: t() | {:error, String.t()}

setTemplate

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • templ: Evision.Mat.t()
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) ::
  t() | {:error, String.t()}

setTemplate

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • templ: Evision.Mat.t()
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
  • self: Evision.GeneralizedHough.t()
  • edges: Evision.Mat.t()
  • dx: Evision.Mat.t()
  • dy: Evision.Mat.t()
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
) :: t() | {:error, String.t()}

setTemplate

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • edges: Evision.Mat.t()
  • dx: Evision.Mat.t()
  • dy: Evision.Mat.t()
Keyword Arguments
  • templCenter: Point.

Python prototype (for reference only):

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

Stores algorithm parameters in a file storage

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

Python prototype (for reference only):

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

write

Positional Arguments
  • self: Evision.GeneralizedHough.t()
  • fs: Evision.FileStorage.t()
  • name: String

Has overloading in C++

Python prototype (for reference only):

write(fs, name) -> None