View Source Evision.AlignMTB (Evision v0.2.7)

Summary

Types

t()

Type that represents an 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.

getExcludeRange

Short version of process, that doesn't take extra arguments.

Helper function, that shift Mat filling new regions with zeros.

Helper function, that shift Mat filling new regions with zeros.

Types

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

Type that represents an AlignMTB struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

calculateShift(named_args)

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

calculateShift(self, img0, img1)

View Source
@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
Return
  • retval: Point

Python prototype (for reference only):

calculateShift(img0, img1) -> retval
Link to this function

computeBitmaps(named_args)

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

computeBitmaps(self, img)

View Source
@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
Return
  • tb: Evision.Mat.t().

    median threshold bitmap

  • eb: Evision.Mat.t().

    exclude bitmap

Python prototype (for reference only):

computeBitmaps(img[, tb[, eb]]) -> tb, eb
Link to this function

computeBitmaps(self, img, opts)

View Source
@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
Return
  • tb: Evision.Mat.t().

    median threshold bitmap

  • eb: Evision.Mat.t().

    exclude bitmap

Python prototype (for reference only):

computeBitmaps(img[, tb[, eb]]) -> tb, eb
@spec getCut(Keyword.t()) :: any() | {:error, String.t()}
@spec getCut(t()) :: boolean() | {:error, String.t()}

getCut

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

Python prototype (for reference only):

getCut() -> retval
Link to this function

getExcludeRange(named_args)

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

getExcludeRange

Positional Arguments
  • self: Evision.AlignMTB.t()
Return
  • retval: integer()

Python prototype (for reference only):

getExcludeRange() -> retval
@spec getMaxBits(Keyword.t()) :: any() | {:error, String.t()}
@spec getMaxBits(t()) :: integer() | {:error, String.t()}

getMaxBits

Positional Arguments
  • self: Evision.AlignMTB.t()
Return
  • retval: integer()

Python prototype (for reference only):

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

Short version of process, that doesn't take extra arguments.

Positional Arguments
  • self: Evision.AlignMTB.t()

  • src: [Evision.Mat].

    vector of input images

  • dst: [Evision.Mat].

    vector of aligned images

Python prototype (for reference only):

process(src, dst) -> None
Link to this function

process(self, src, dst, times, response)

View Source

process

Positional Arguments

Python prototype (for reference only):

process(src, dst, times, response) -> None
@spec setCut(Keyword.t()) :: any() | {:error, String.t()}
@spec setCut(t(), boolean()) :: t() | {:error, String.t()}

setCut

Positional Arguments
  • self: Evision.AlignMTB.t()
  • value: bool

Python prototype (for reference only):

setCut(value) -> None
Link to this function

setExcludeRange(named_args)

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

setExcludeRange(self, exclude_range)

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

setExcludeRange

Positional Arguments
  • self: Evision.AlignMTB.t()
  • exclude_range: integer()

Python prototype (for reference only):

setExcludeRange(exclude_range) -> None
@spec setMaxBits(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setMaxBits(self, max_bits)

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

setMaxBits

Positional Arguments
  • self: Evision.AlignMTB.t()
  • max_bits: integer()

Python prototype (for reference only):

setMaxBits(max_bits) -> None
@spec shiftMat(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

shiftMat(self, src, shift)

View Source
@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
  • self: Evision.AlignMTB.t()

  • src: Evision.Mat.

    input image

  • shift: Point.

    shift value

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

    result image

Python prototype (for reference only):

shiftMat(src, shift[, dst]) -> dst
Link to this function

shiftMat(self, src, shift, opts)

View Source
@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
  • self: Evision.AlignMTB.t()

  • src: Evision.Mat.

    input image

  • shift: Point.

    shift value

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

    result image

Python prototype (for reference only):

shiftMat(src, shift[, dst]) -> dst