View Source Evision.AlignMTB (Evision v0.1.12)
Link to this section Summary
Types
Type that represents an Evision.AlignMTB
struct.
Functions
Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.
Computes median threshold and exclude bitmaps of given image.
Computes median threshold and exclude bitmaps of given image.
Return
- retval:
bool
Python prototype (for reference):
Return
- retval:
int
Python prototype (for reference):
Return
- retval:
int
Python prototype (for reference):
Short version of process, that doesn't take extra arguments.
Positional Arguments
- src:
[Evision.Mat]
- dst:
[Evision.Mat]
- times:
Evision.Mat
- response:
Evision.Mat
Python prototype (for reference):
Positional Arguments
- value:
bool
Python prototype (for reference):
Positional Arguments
- exclude_range:
int
Python prototype (for reference):
Positional Arguments
- max_bits:
int
Python prototype (for reference):
Helper function, that shift Mat filling new regions with zeros.
Helper function, that shift Mat filling new regions with zeros.
Link to this section Types
@type t() :: %Evision.AlignMTB{ref: reference()}
Type that represents an Evision.AlignMTB
struct.
ref.
reference()
The underlying erlang resource variable.
Link to this section Functions
@spec calculateShift(t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) :: {number(), number()} | {:error, String.t()}
Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.
Positional Arguments
img0:
Evision.Mat
.first image
img1:
Evision.Mat
.second image
Return
- retval:
Point
Python prototype (for reference):
calculateShift(img0, img1) -> retval
@spec computeBitmaps(t(), Evision.Mat.maybe_mat_in()) :: {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}
Computes median threshold and exclude bitmaps of given image.
Positional Arguments
img:
Evision.Mat
.input image
Return
tb:
Evision.Mat
.median threshold bitmap
eb:
Evision.Mat
.exclude bitmap
Python prototype (for reference):
computeBitmaps(img[, tb[, eb]]) -> tb, eb
@spec computeBitmaps(t(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) :: {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}
Computes median threshold and exclude bitmaps of given image.
Positional Arguments
img:
Evision.Mat
.input image
Return
tb:
Evision.Mat
.median threshold bitmap
eb:
Evision.Mat
.exclude bitmap
Python prototype (for reference):
computeBitmaps(img[, tb[, eb]]) -> tb, eb
Return
- retval:
bool
Python prototype (for reference):
getCut() -> retval
Return
- retval:
int
Python prototype (for reference):
getExcludeRange() -> retval
Return
- retval:
int
Python prototype (for reference):
getMaxBits() -> retval
@spec process(t(), [Evision.Mat.maybe_mat_in()], [Evision.Mat.maybe_mat_in()]) :: :ok | {:error, String.t()}
Short version of process, that doesn't take extra arguments.
Positional Arguments
src:
[Evision.Mat]
.vector of input images
dst:
[Evision.Mat]
.vector of aligned images
Python prototype (for reference):
process(src, dst) -> None
@spec process( t(), [Evision.Mat.maybe_mat_in()], [Evision.Mat.maybe_mat_in()], Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in() ) :: :ok | {:error, String.t()}
Positional Arguments
- src:
[Evision.Mat]
- dst:
[Evision.Mat]
- times:
Evision.Mat
- response:
Evision.Mat
Python prototype (for reference):
process(src, dst, times, response) -> None
Positional Arguments
- value:
bool
Python prototype (for reference):
setCut(value) -> None
Positional Arguments
- exclude_range:
int
Python prototype (for reference):
setExcludeRange(exclude_range) -> None
Positional Arguments
- max_bits:
int
Python prototype (for reference):
setMaxBits(max_bits) -> None
@spec shiftMat(t(), Evision.Mat.maybe_mat_in(), {number(), number()}) :: Evision.Mat.t() | {:error, String.t()}
Helper function, that shift Mat filling new regions with zeros.
Positional Arguments
src:
Evision.Mat
.input image
shift:
Point
.shift value
Return
dst:
Evision.Mat
.result image
Python prototype (for reference):
shiftMat(src, shift[, dst]) -> dst
@spec shiftMat( t(), Evision.Mat.maybe_mat_in(), {number(), number()}, [{atom(), term()}, ...] | nil ) :: Evision.Mat.t() | {:error, String.t()}
Helper function, that shift Mat filling new regions with zeros.
Positional Arguments
src:
Evision.Mat
.input image
shift:
Point
.shift value
Return
dst:
Evision.Mat
.result image
Python prototype (for reference):
shiftMat(src, shift[, dst]) -> dst