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

Summary

Types

t()

Type that represents an Detail.ExposureCompensator struct.

Functions

Compensate exposure in the specified image.

createDefault

getMatGains

getUpdateGain

setUpdateGain

Types

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

Type that represents an Detail.ExposureCompensator struct.

  • ref. reference()

    The underlying erlang resource variable.

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.t().

    Image mask

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

    Image to process

Python prototype (for reference only):

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

createDefault

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

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()
]) ::
  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(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()]) :: t() | {: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()) :: t() | {:error, String.t()}

setUpdateGain

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

Python prototype (for reference only):

setUpdateGain(b) -> None