View Source Evision.CUDA.CannyEdgeDetector (Evision v0.2.9)
Summary
Functions
Clears the algorithm state
Variant 1:
Finds edges in an image using the @cite Canny86 algorithm.
Variant 1:
detect
Variant 1:
detect
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
getAppertureSize
getDefaultName
getHighThreshold
getL2Gradient
getLowThreshold
Reads algorithm parameters from a file storage
save
setAppertureSize
setHighThreshold
setL2Gradient
setLowThreshold
Stores algorithm parameters in a file storage
write
Types
@type t() :: %Evision.CUDA.CannyEdgeDetector{ref: reference()}
Type that represents an CUDA.CannyEdgeDetector
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.CannyEdgeDetector.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:
Finds edges in an image using the @cite Canny86 algorithm.
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
image:
Evision.Mat
.Single-channel 8-bit input image.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.Mat.t()
.Output edge map. It has the same size and type as image.
Python prototype (for reference only):
detect(image[, edges[, stream]]) -> edges
Variant 2:
Finds edges in an image using the @cite Canny86 algorithm.
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
image:
Evision.CUDA.GpuMat.t()
.Single-channel 8-bit input image.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.CUDA.GpuMat.t()
.Output edge map. It has the same size and type as image.
Python prototype (for reference only):
detect(image[, edges[, stream]]) -> edges
@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()}
@spec detect(t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) :: Evision.Mat.t() | {:error, String.t()}
@spec detect(t(), Evision.CUDA.GpuMat.t(), Evision.CUDA.GpuMat.t()) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}
Variant 1:
detect
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
dx:
Evision.Mat
.First derivative of image in the vertical direction. Support only CV_32S type.
dy:
Evision.Mat
.First derivative of image in the horizontal direction. Support only CV_32S type.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.Mat.t()
.Output edge map. It has the same size and type as image.
Has overloading in C++
Python prototype (for reference only):
detect(dx, dy[, edges[, stream]]) -> edges
Variant 2:
detect
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
dx:
Evision.CUDA.GpuMat.t()
.First derivative of image in the vertical direction. Support only CV_32S type.
dy:
Evision.CUDA.GpuMat.t()
.First derivative of image in the horizontal direction. Support only CV_32S type.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.CUDA.GpuMat.t()
.Output edge map. It has the same size and type as image.
Has overloading in C++
Python prototype (for reference only):
detect(dx, dy[, edges[, stream]]) -> edges
Variant 3:
Finds edges in an image using the @cite Canny86 algorithm.
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
image:
Evision.Mat
.Single-channel 8-bit input image.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.Mat.t()
.Output edge map. It has the same size and type as image.
Python prototype (for reference only):
detect(image[, edges[, stream]]) -> edges
Variant 4:
Finds edges in an image using the @cite Canny86 algorithm.
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
image:
Evision.CUDA.GpuMat.t()
.Single-channel 8-bit input image.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.CUDA.GpuMat.t()
.Output edge map. It has the same size and type as image.
Python prototype (for reference only):
detect(image[, edges[, stream]]) -> edges
@spec detect( t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), [{:stream, term()}] | nil ) :: Evision.Mat.t() | {:error, String.t()}
@spec detect( t(), Evision.CUDA.GpuMat.t(), Evision.CUDA.GpuMat.t(), [{:stream, term()}] | nil ) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}
Variant 1:
detect
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
dx:
Evision.Mat
.First derivative of image in the vertical direction. Support only CV_32S type.
dy:
Evision.Mat
.First derivative of image in the horizontal direction. Support only CV_32S type.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.Mat.t()
.Output edge map. It has the same size and type as image.
Has overloading in C++
Python prototype (for reference only):
detect(dx, dy[, edges[, stream]]) -> edges
Variant 2:
detect
Positional Arguments
self:
Evision.CUDA.CannyEdgeDetector.t()
dx:
Evision.CUDA.GpuMat.t()
.First derivative of image in the vertical direction. Support only CV_32S type.
dy:
Evision.CUDA.GpuMat.t()
.First derivative of image in the horizontal direction. Support only CV_32S type.
Keyword Arguments
stream:
Evision.CUDA.Stream.t()
.Stream for the asynchronous version.
Return
edges:
Evision.CUDA.GpuMat.t()
.Output edge map. It has the same size and type as image.
Has overloading in C++
Python prototype (for reference only):
detect(dx, dy[, edges[, stream]]) -> edges
@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.CannyEdgeDetector.t()
Return
- retval:
bool
Python prototype (for reference only):
empty() -> retval
@spec getAppertureSize(Keyword.t()) :: any() | {:error, String.t()}
@spec getAppertureSize(t()) :: integer() | {:error, String.t()}
getAppertureSize
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
Return
- retval:
integer()
Python prototype (for reference only):
getAppertureSize() -> retval
@spec getDefaultName(Keyword.t()) :: any() | {:error, String.t()}
@spec getDefaultName(t()) :: binary() | {:error, String.t()}
getDefaultName
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.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 getHighThreshold(Keyword.t()) :: any() | {:error, String.t()}
@spec getHighThreshold(t()) :: number() | {:error, String.t()}
getHighThreshold
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
Return
- retval:
double
Python prototype (for reference only):
getHighThreshold() -> retval
@spec getL2Gradient(Keyword.t()) :: any() | {:error, String.t()}
@spec getL2Gradient(t()) :: boolean() | {:error, String.t()}
getL2Gradient
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
Return
- retval:
bool
Python prototype (for reference only):
getL2Gradient() -> retval
@spec getLowThreshold(Keyword.t()) :: any() | {:error, String.t()}
@spec getLowThreshold(t()) :: number() | {:error, String.t()}
getLowThreshold
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
Return
- retval:
double
Python prototype (for reference only):
getLowThreshold() -> retval
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}
Reads algorithm parameters from a file storage
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
- func:
Evision.FileNode
Python prototype (for reference only):
read(fn) -> None
save
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.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
setAppertureSize
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
- apperture_size:
integer()
Python prototype (for reference only):
setAppertureSize(apperture_size) -> None
setHighThreshold
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
- high_thresh:
double
Python prototype (for reference only):
setHighThreshold(high_thresh) -> None
setL2Gradient
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
- l2gradient:
bool
Python prototype (for reference only):
setL2Gradient(L2gradient) -> None
setLowThreshold
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.t()
- low_thresh:
double
Python prototype (for reference only):
setLowThreshold(low_thresh) -> None
@spec write(t(), Evision.FileStorage.t()) :: t() | {:error, String.t()}
Stores algorithm parameters in a file storage
Positional Arguments
- self:
Evision.CUDA.CannyEdgeDetector.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.CannyEdgeDetector.t()
- fs:
Evision.FileStorage
- name:
String
Has overloading in C++
Python prototype (for reference only):
write(fs, name) -> None