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

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

getDefaultName

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(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(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.t().

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

Keyword Arguments
  • mask: Evision.Mat.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.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(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | {:error, String.t()}
@spec detect(t(), Evision.CUDA.GpuMat.t(), [{atom(), 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.t().

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

Keyword Arguments
  • mask: Evision.Mat.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.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(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
@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(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}

Reads algorithm parameters from a file storage

Positional Arguments
  • self: Evision.CUDA.CornersDetector.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.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
@spec write(t(), Evision.FileStorage.t()) :: t() | {:error, String.t()}

Stores algorithm parameters in a file storage

Positional Arguments
  • self: Evision.CUDA.CornersDetector.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.CUDA.CornersDetector.t()
  • fs: Evision.FileStorage.t()
  • name: String

Has overloading in C++

Python prototype (for reference only):

write(fs, name) -> None