View Source Evision.Tonemap (Evision v0.1.17)

Link to this section Summary

Types

t()

Type that represents an Evision.Tonemap struct.

Link to this section Types

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

Type that represents an Evision.Tonemap struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec getGamma(t()) :: number() | {:error, String.t()}

getGamma

Positional Arguments
  • self: Evision.Tonemap.t()
Return
  • retval: float

Python prototype (for reference only):

getGamma() -> retval
@spec process(t(), Evision.Mat.maybe_mat_in()) ::
  Evision.Mat.t() | {:error, String.t()}

Tonemaps image

Positional Arguments
  • self: Evision.Tonemap.t()

  • src: Evision.Mat.

    source image - CV_32FC3 Mat (float 32 bits 3 channels)

Return
  • dst: Evision.Mat.

    destination image - CV_32FC3 Mat with values in [0, 1] range

Python prototype (for reference only):

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

process(self, src, opts)

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

Tonemaps image

Positional Arguments
  • self: Evision.Tonemap.t()

  • src: Evision.Mat.

    source image - CV_32FC3 Mat (float 32 bits 3 channels)

Return
  • dst: Evision.Mat.

    destination image - CV_32FC3 Mat with values in [0, 1] range

Python prototype (for reference only):

process(src[, dst]) -> dst
@spec setGamma(t(), number()) :: :ok | {:error, String.t()}

setGamma

Positional Arguments
  • self: Evision.Tonemap.t()
  • gamma: float

Python prototype (for reference only):

setGamma(gamma) -> None