View Source Evision.CUDA.CornersDetector (Evision v0.2.9)
Summary
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
save
setMaxCorners
setMinDistance
Stores algorithm parameters in a file storage
write
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(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
@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
@spec getDefaultName(Keyword.t()) :: any() | {:error, String.t()}
@spec getDefaultName(t()) :: binary() | {:error, String.t()}
getDefaultName
Positional Arguments
- self:
Evision.CUDA.CornersDetector.t()
Return
- retval:
String
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()
- func:
Evision.FileNode
Python prototype (for reference only):
read(fn) -> None
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
setMaxCorners
Positional Arguments
- self:
Evision.CUDA.CornersDetector.t()
- maxCorners:
integer()
Python prototype (for reference only):
setMaxCorners(maxCorners) -> None
setMinDistance
Positional Arguments
- self:
Evision.CUDA.CornersDetector.t()
- minDistance:
double
Python prototype (for reference only):
setMinDistance(minDistance) -> 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
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
- name:
String
Has overloading in C++
Python prototype (for reference only):
write(fs, name) -> None