View Source Evision.Detail.ExposureCompensator (Evision v0.2.9)

Summary

Types

t()

Type that represents an Detail.ExposureCompensator struct.

Enumerator

Types

@type enum() :: integer()
@type t() :: %Evision.Detail.ExposureCompensator{ref: reference()}

Type that represents an Detail.ExposureCompensator struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

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

apply(self, index, corner, image, mask)

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

Compensate exposure in the specified image.

Positional Arguments
  • self: Evision.Detail.ExposureCompensator.t()

  • index: integer().

    Image index

  • corner: Point.

    Image top-left corner

  • mask: Evision.Mat.

    Image mask

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

    Image to process

Python prototype (for reference only):

apply(index, corner, image, mask) -> image
Link to this function

createDefault(named_args)

View Source
@spec createDefault(Keyword.t()) :: any() | {:error, String.t()}
@spec createDefault(integer()) :: t() | {:error, String.t()}

createDefault

Positional Arguments
  • type: integer()
Return
  • retval: Evision.Detail.ExposureCompensator.t()

Python prototype (for reference only):

createDefault(type) -> retval
@spec feed(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

feed(self, corners, images, masks)

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

feed

Positional Arguments
  • self: Evision.Detail.ExposureCompensator.t()

  • corners: [Point].

    Source image top-left corners

  • images: [Evision.Mat].

    Source images

  • masks: [Evision.Mat].

    Image masks to update (second value in pair specifies the value which should be used to detect where image is)

Python prototype (for reference only):

feed(corners, images, masks) -> None
@spec getMatGains(Keyword.t()) :: any() | {:error, String.t()}
@spec getMatGains(t()) :: [Evision.Mat.t()] | {:error, String.t()}

getMatGains

Positional Arguments
  • self: Evision.Detail.ExposureCompensator.t()
Return
  • arg1: [Evision.Mat].

Python prototype (for reference only):

getMatGains([, arg1]) -> arg1
@spec getMatGains(t(), [{atom(), term()}, ...] | nil) ::
  [Evision.Mat.t()] | {:error, String.t()}

getMatGains

Positional Arguments
  • self: Evision.Detail.ExposureCompensator.t()
Return
  • arg1: [Evision.Mat].

Python prototype (for reference only):

getMatGains([, arg1]) -> arg1
Link to this function

getUpdateGain(named_args)

View Source
@spec getUpdateGain(Keyword.t()) :: any() | {:error, String.t()}
@spec getUpdateGain(t()) :: boolean() | {:error, String.t()}

getUpdateGain

Positional Arguments
  • self: Evision.Detail.ExposureCompensator.t()
Return
  • retval: bool

Python prototype (for reference only):

getUpdateGain() -> retval
@spec setMatGains(Keyword.t()) :: any() | {:error, String.t()}
@spec setMatGains(t(), [Evision.Mat.maybe_mat_in()]) :: t() | {:error, String.t()}

setMatGains

Positional Arguments
  • self: Evision.Detail.ExposureCompensator.t()
  • arg1: [Evision.Mat]

Python prototype (for reference only):

setMatGains(arg1) -> None
Link to this function

setUpdateGain(named_args)

View Source
@spec setUpdateGain(Keyword.t()) :: any() | {:error, String.t()}
@spec setUpdateGain(t(), boolean()) :: t() | {:error, String.t()}

setUpdateGain

Positional Arguments
  • self: Evision.Detail.ExposureCompensator.t()
  • b: bool

Python prototype (for reference only):

setUpdateGain(b) -> None