View Source Evision.CUDA.CannyEdgeDetector (Evision v0.1.37)

Summary

Types

t()

Type that represents an CUDA.CannyEdgeDetector struct.

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

Stores algorithm parameters in a file storage

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

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

    First derivative of image in the vertical direction. Support only CV_32S type.

  • dy: Evision.Mat.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.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.t().

    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
Link to this function

detect(self, dx, dy, opts)

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

Variant 1:

detect

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

  • dx: Evision.Mat.t().

    First derivative of image in the vertical direction. Support only CV_32S type.

  • dy: Evision.Mat.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.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(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(t()) :: integer() | {:error, String.t()}

getAppertureSize

Positional Arguments
  • self: Evision.CUDA.CannyEdgeDetector.t()
Return
  • retval: int

Python prototype (for reference only):

getAppertureSize() -> retval
@spec getDefaultName(t()) :: binary() | {:error, String.t()}

getDefaultName

Positional Arguments
  • self: Evision.CUDA.CannyEdgeDetector.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 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(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(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()
  • 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.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
Link to this function

setAppertureSize(self, apperture_size)

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

setAppertureSize

Positional Arguments
  • self: Evision.CUDA.CannyEdgeDetector.t()
  • apperture_size: int

Python prototype (for reference only):

setAppertureSize(apperture_size) -> None
Link to this function

setHighThreshold(self, high_thresh)

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

setHighThreshold

Positional Arguments
  • self: Evision.CUDA.CannyEdgeDetector.t()
  • high_thresh: double

Python prototype (for reference only):

setHighThreshold(high_thresh) -> None
Link to this function

setL2Gradient(self, l2gradient)

View Source
@spec setL2Gradient(t(), boolean()) :: t() | {:error, String.t()}

setL2Gradient

Positional Arguments
  • self: Evision.CUDA.CannyEdgeDetector.t()
  • l2gradient: bool

Python prototype (for reference only):

setL2Gradient(L2gradient) -> None
Link to this function

setLowThreshold(self, low_thresh)

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

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.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.CannyEdgeDetector.t()
  • fs: Evision.FileStorage.t()
  • name: String

Has overloading in C++

Python prototype (for reference only):

write(fs, name) -> None