View Source Evision.Tonemap (Evision v0.1.12)

Link to this section Summary

Types

t()

Type that represents an Evision.Tonemap struct.

Functions

Return
  • retval: float

Python prototype (for reference):

Tonemaps image

Tonemaps image

Positional Arguments
  • gamma: float

Python prototype (for reference):

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()}
Return
  • retval: float

Python prototype (for reference):

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

Tonemaps image

Positional Arguments
  • 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):

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
  • 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):

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

Python prototype (for reference):

setGamma(gamma) -> None