View Source Evision.CUDA.HoughCirclesDetector (Evision v0.2.7)

Summary

Types

t()

Type that represents an CUDA.HoughCirclesDetector struct.

Functions

Clears the algorithm state

Variant 1:

Finds circles in a grayscale image using the Hough transform.

Variant 1:

Finds circles in a grayscale image using the Hough transform.

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

getCannyThreshold

getVotesThreshold

Reads algorithm parameters from a file storage

Stores algorithm parameters in a file storage

Types

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

Type that represents an CUDA.HoughCirclesDetector 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.CUDA.HoughCirclesDetector.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() | {:error, String.t()}
@spec detect(t(), Evision.CUDA.GpuMat.t()) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

Finds circles in a grayscale image using the Hough transform.

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()

  • src: Evision.Mat.

    8-bit, single-channel grayscale input image.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

Return
  • circles: Evision.Mat.t().

    Output vector of found circles. Each vector is encoded as a 3-element floating-point vector \f$(x, y, radius)\f$ .

@sa HoughCircles

Python prototype (for reference only):

detect(src[, circles[, stream]]) -> circles

Variant 2:

Finds circles in a grayscale image using the Hough transform.

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()

  • src: Evision.CUDA.GpuMat.t().

    8-bit, single-channel grayscale input image.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

Return
  • circles: Evision.CUDA.GpuMat.t().

    Output vector of found circles. Each vector is encoded as a 3-element floating-point vector \f$(x, y, radius)\f$ .

@sa HoughCircles

Python prototype (for reference only):

detect(src[, circles[, stream]]) -> circles
@spec detect(t(), Evision.Mat.maybe_mat_in(), [{:stream, term()}] | nil) ::
  Evision.Mat.t() | {:error, String.t()}
@spec detect(t(), Evision.CUDA.GpuMat.t(), [{:stream, term()}] | nil) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

Finds circles in a grayscale image using the Hough transform.

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()

  • src: Evision.Mat.

    8-bit, single-channel grayscale input image.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

Return
  • circles: Evision.Mat.t().

    Output vector of found circles. Each vector is encoded as a 3-element floating-point vector \f$(x, y, radius)\f$ .

@sa HoughCircles

Python prototype (for reference only):

detect(src[, circles[, stream]]) -> circles

Variant 2:

Finds circles in a grayscale image using the Hough transform.

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()

  • src: Evision.CUDA.GpuMat.t().

    8-bit, single-channel grayscale input image.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

Return
  • circles: Evision.CUDA.GpuMat.t().

    Output vector of found circles. Each vector is encoded as a 3-element floating-point vector \f$(x, y, radius)\f$ .

@sa HoughCircles

Python prototype (for reference only):

detect(src[, circles[, stream]]) -> circles
@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.CUDA.HoughCirclesDetector.t()
Return
  • retval: bool

Python prototype (for reference only):

empty() -> retval
Link to this function

getCannyThreshold(named_args)

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

getCannyThreshold

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

Python prototype (for reference only):

getCannyThreshold() -> 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.CUDA.HoughCirclesDetector.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.CUDA.HoughCirclesDetector.t()
Return
  • retval: float

Python prototype (for reference only):

getDp() -> retval
Link to this function

getMaxCircles(named_args)

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

getMaxCircles

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

Python prototype (for reference only):

getMaxCircles() -> retval
Link to this function

getMaxRadius(named_args)

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

getMaxRadius

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

Python prototype (for reference only):

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

getMinDist

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()
Return
  • retval: float

Python prototype (for reference only):

getMinDist() -> retval
Link to this function

getMinRadius(named_args)

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

getMinRadius

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

Python prototype (for reference only):

getMinRadius() -> retval
Link to this function

getVotesThreshold(named_args)

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

getVotesThreshold

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

Python prototype (for reference only):

getVotesThreshold() -> 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.CUDA.HoughCirclesDetector.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

setCannyThreshold(named_args)

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

setCannyThreshold(self, cannyThreshold)

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

setCannyThreshold

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()
  • cannyThreshold: integer()

Python prototype (for reference only):

setCannyThreshold(cannyThreshold) -> None
@spec setDp(Keyword.t()) :: any() | {:error, String.t()}
@spec setDp(t(), number()) :: t() | {:error, String.t()}

setDp

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()
  • dp: float

Python prototype (for reference only):

setDp(dp) -> None
Link to this function

setMaxCircles(named_args)

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

setMaxCircles(self, maxCircles)

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

setMaxCircles

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()
  • maxCircles: integer()

Python prototype (for reference only):

setMaxCircles(maxCircles) -> None
Link to this function

setMaxRadius(named_args)

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

setMaxRadius(self, maxRadius)

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

setMaxRadius

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()
  • maxRadius: integer()

Python prototype (for reference only):

setMaxRadius(maxRadius) -> 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.CUDA.HoughCirclesDetector.t()
  • minDist: float

Python prototype (for reference only):

setMinDist(minDist) -> None
Link to this function

setMinRadius(named_args)

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

setMinRadius(self, minRadius)

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

setMinRadius

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()
  • minRadius: integer()

Python prototype (for reference only):

setMinRadius(minRadius) -> None
Link to this function

setVotesThreshold(named_args)

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

setVotesThreshold(self, votesThreshold)

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

setVotesThreshold

Positional Arguments
  • self: Evision.CUDA.HoughCirclesDetector.t()
  • votesThreshold: integer()

Python prototype (for reference only):

setVotesThreshold(votesThreshold) -> 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