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

Link to this section Summary

Types

t()

Type that represents an Evision.Detail.ExposureCompensator struct.

Functions

Compensate exposure in the specified image.

createDefault

getMatGains

getUpdateGain

setUpdateGain

Link to this section Types

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

Type that represents an Evision.Detail.ExposureCompensator struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

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: int.

    Image index

  • corner: Point.

    Image top-left corner

  • mask: Evision.Mat.

    Image mask

Return

Python prototype (for reference only):

apply(index, corner, image, mask) -> image
@spec createDefault(integer()) :: t() | {:error, String.t()}

createDefault

Positional Arguments
  • type: int
Return

Python prototype (for reference only):

createDefault(type) -> retval
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()
]) ::
  :ok | {: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(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
@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(t(), [Evision.Mat.maybe_mat_in()]) :: :ok | {:error, String.t()}

setMatGains

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

Python prototype (for reference only):

setMatGains(arg1) -> None
@spec setUpdateGain(t(), boolean()) :: :ok | {:error, String.t()}

setUpdateGain

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

Python prototype (for reference only):

setUpdateGain(b) -> None