View Source Evision.XImgProc.RidgeDetectionFilter (Evision v0.2.9)

Summary

Types

t()

Type that represents an XImgProc.RidgeDetectionFilter struct.

Functions

Clears the algorithm state

Create pointer to the Ridge detection filter.

Create pointer to the Ridge detection filter.

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

Apply Ridge detection filter on input image.

Apply Ridge detection filter on input image.

Reads algorithm parameters from a file storage

Stores algorithm parameters in a file storage

Types

@type t() :: %Evision.XImgProc.RidgeDetectionFilter{ref: reference()}

Type that represents an XImgProc.RidgeDetectionFilter 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.XImgProc.RidgeDetectionFilter.t()

Python prototype (for reference only):

clear() -> None
@spec create() :: t() | {:error, String.t()}

Create pointer to the Ridge detection filter.

Keyword Arguments
  • ddepth: integer().

    Specifies output image depth. Defualt is CV_32FC1

  • dx: integer().

    Order of derivative x, default is 1

  • dy: integer().

    Order of derivative y, default is 1

  • ksize: integer().

    Sobel kernel size , default is 3

  • out_dtype: integer().

    Converted format for output, default is CV_8UC1

  • scale: double.

    Optional scale value for derivative values, default is 1

  • delta: double.

    Optional bias added to output, default is 0

  • borderType: integer().

    Pixel extrapolation method, default is BORDER_DEFAULT

Return
  • retval: RidgeDetectionFilter

@see Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

Python prototype (for reference only):

create([, ddepth[, dx[, dy[, ksize[, out_dtype[, scale[, delta[, borderType]]]]]]]]) -> retval
@spec create(Keyword.t()) :: any() | {:error, String.t()}
@spec create(
  [
    borderType: term(),
    ddepth: term(),
    delta: term(),
    dx: term(),
    dy: term(),
    ksize: term(),
    out_dtype: term(),
    scale: term()
  ]
  | nil
) :: t() | {:error, String.t()}

Create pointer to the Ridge detection filter.

Keyword Arguments
  • ddepth: integer().

    Specifies output image depth. Defualt is CV_32FC1

  • dx: integer().

    Order of derivative x, default is 1

  • dy: integer().

    Order of derivative y, default is 1

  • ksize: integer().

    Sobel kernel size , default is 3

  • out_dtype: integer().

    Converted format for output, default is CV_8UC1

  • scale: double.

    Optional scale value for derivative values, default is 1

  • delta: double.

    Optional bias added to output, default is 0

  • borderType: integer().

    Pixel extrapolation method, default is BORDER_DEFAULT

Return
  • retval: RidgeDetectionFilter

@see Sobel, threshold, getStructuringElement, morphologyEx.( for additional refinement)

Python prototype (for reference only):

create([, ddepth[, dx[, dy[, ksize[, out_dtype[, scale[, delta[, borderType]]]]]]]]) -> retval
@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.XImgProc.RidgeDetectionFilter.t()
Return
  • retval: bool

Python prototype (for reference only):

empty() -> 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.XImgProc.RidgeDetectionFilter.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

getRidgeFilteredImage(named_args)

View Source
@spec getRidgeFilteredImage(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

getRidgeFilteredImage(self, img)

View Source
@spec getRidgeFilteredImage(t(), Evision.Mat.maybe_mat_in()) ::
  Evision.Mat.t() | {:error, String.t()}

Apply Ridge detection filter on input image.

Positional Arguments
  • self: Evision.XImgProc.RidgeDetectionFilter.t()

  • img: Evision.Mat.

    InputArray as supported by Sobel. img can be 1-Channel or 3-Channels.

Return
  • out: Evision.Mat.t().

    OutputAray of structure as RidgeDetectionFilter::ddepth. Output image with ridges.

Python prototype (for reference only):

getRidgeFilteredImage(_img[, out]) -> out
Link to this function

getRidgeFilteredImage(self, img, opts)

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

Apply Ridge detection filter on input image.

Positional Arguments
  • self: Evision.XImgProc.RidgeDetectionFilter.t()

  • img: Evision.Mat.

    InputArray as supported by Sobel. img can be 1-Channel or 3-Channels.

Return
  • out: Evision.Mat.t().

    OutputAray of structure as RidgeDetectionFilter::ddepth. Output image with ridges.

Python prototype (for reference only):

getRidgeFilteredImage(_img[, out]) -> out
@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.XImgProc.RidgeDetectionFilter.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(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