View Source Evision.Detail.ExposureCompensator (Evision v0.1.20)
Link to this section Summary
Types
Type that represents an Evision.Detail.ExposureCompensator
struct.
Functions
Compensate exposure in the specified image.
createDefault
getMatGains
getMatGains
getUpdateGain
setMatGains
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
@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
image:
Evision.Mat
.Image to process
Python prototype (for reference only):
apply(index, corner, image, mask) -> image
createDefault
Positional Arguments
- type:
int
Return
Python prototype (for reference only):
createDefault(type) -> retval
@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
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
setUpdateGain
Positional Arguments
- self:
Evision.Detail.ExposureCompensator.t()
- b:
bool
Python prototype (for reference only):
setUpdateGain(b) -> None