View Source Evision.CCM (Evision v1.0.0-rc.0)

Summary

Types

t()

Type that represents an CCM struct.

Functions

Applies gamma correction to the input image.

Applies gamma correction to the input image.

Types

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

Type that represents an CCM struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

gammaCorrection(named_args)

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

gammaCorrection(src, gamma)

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

Applies gamma correction to the input image.

Positional Arguments
  • src: Evision.Mat.

    Input image.

  • gamma: double.

    Gamma correction greater than zero.

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

    Output image.

Python prototype (for reference only):

gammaCorrection(src, gamma[, dst]) -> dst
Link to this function

gammaCorrection(src, gamma, opts)

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

Applies gamma correction to the input image.

Positional Arguments
  • src: Evision.Mat.

    Input image.

  • gamma: double.

    Gamma correction greater than zero.

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

    Output image.

Python prototype (for reference only):

gammaCorrection(src, gamma[, dst]) -> dst