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

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

getHighThreshold

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(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(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:

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

detect(self, image, opts)

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

detect(self, dx, dy, opts)

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

getAppertureSize(named_args)

View Source
@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
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.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
Link to this function

getHighThreshold(named_args)

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

getL2Gradient(named_args)

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

getLowThreshold(named_args)

View Source
@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(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.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(named_args)

View Source
@spec setAppertureSize(Keyword.t()) :: any() | {:error, String.t()}
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: integer()

Python prototype (for reference only):

setAppertureSize(apperture_size) -> None
Link to this function

setHighThreshold(named_args)

View Source
@spec setHighThreshold(Keyword.t()) :: any() | {:error, String.t()}
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(named_args)

View Source
@spec setL2Gradient(Keyword.t()) :: any() | {:error, String.t()}
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(named_args)

View Source
@spec setLowThreshold(Keyword.t()) :: any() | {:error, String.t()}
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(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