View Source Evision.CUDA.CornersDetector (Evision v0.2.9)

Summary

Types

t()

Type that represents an CUDA.CornersDetector struct.

Functions

Clears the algorithm state

Variant 1:

Determines strong corners on an image.

Variant 1:

Determines strong corners on an image.

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

Reads algorithm parameters from a file storage

Stores algorithm parameters in a file storage

Types

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

Type that represents an CUDA.CornersDetector 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.CornersDetector.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:

Determines strong corners on an image.

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

  • image: Evision.Mat.

    Input 8-bit or floating-point 32-bit, single-channel image.

Keyword Arguments
  • mask: Evision.Mat.

    Optional region of interest. If the image is not empty (it needs to have the type CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected.

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

    Stream for the asynchronous version.

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

    Output vector of detected corners (1-row matrix with CV_32FC2 type with corners positions).

Python prototype (for reference only):

detect(image[, corners[, mask[, stream]]]) -> corners

Variant 2:

Determines strong corners on an image.

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

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

    Input 8-bit or floating-point 32-bit, single-channel image.

Keyword Arguments
  • mask: Evision.CUDA.GpuMat.t().

    Optional region of interest. If the image is not empty (it needs to have the type CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected.

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

    Stream for the asynchronous version.

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

    Output vector of detected corners (1-row matrix with CV_32FC2 type with corners positions).

Python prototype (for reference only):

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

detect(self, image, opts)

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

Variant 1:

Determines strong corners on an image.

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

  • image: Evision.Mat.

    Input 8-bit or floating-point 32-bit, single-channel image.

Keyword Arguments
  • mask: Evision.Mat.

    Optional region of interest. If the image is not empty (it needs to have the type CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected.

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

    Stream for the asynchronous version.

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

    Output vector of detected corners (1-row matrix with CV_32FC2 type with corners positions).

Python prototype (for reference only):

detect(image[, corners[, mask[, stream]]]) -> corners

Variant 2:

Determines strong corners on an image.

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

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

    Input 8-bit or floating-point 32-bit, single-channel image.

Keyword Arguments
  • mask: Evision.CUDA.GpuMat.t().

    Optional region of interest. If the image is not empty (it needs to have the type CV_8UC1 and the same size as image ), it specifies the region in which the corners are detected.

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

    Stream for the asynchronous version.

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

    Output vector of detected corners (1-row matrix with CV_32FC2 type with corners positions).

Python prototype (for reference only):

detect(image[, corners[, mask[, stream]]]) -> corners
@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.CornersDetector.t()
Return
  • retval: bool

Python prototype (for reference only):

empty() -> 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.CornersDetector.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 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.CornersDetector.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

setMaxCorners(named_args)

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

setMaxCorners(self, maxCorners)

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

setMaxCorners

Positional Arguments
  • self: Evision.CUDA.CornersDetector.t()
  • maxCorners: integer()

Python prototype (for reference only):

setMaxCorners(maxCorners) -> None
Link to this function

setMinDistance(named_args)

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

setMinDistance(self, minDistance)

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

setMinDistance

Positional Arguments
  • self: Evision.CUDA.CornersDetector.t()
  • minDistance: double

Python prototype (for reference only):

setMinDistance(minDistance) -> 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