View Source Evision.PyRotationWarper (Evision v0.2.9)

Summary

Types

t()

Type that represents an PyRotationWarper struct.

Types

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

Type that represents an PyRotationWarper struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

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

buildMaps(self, src_size, k, r)

View Source
@spec buildMaps(
  t(),
  {number(), number()},
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in()
) ::
  {{number(), number(), number(), number()}, Evision.Mat.t(), Evision.Mat.t()}
  | {:error, String.t()}

Builds the projection maps according to the given camera data.

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

  • src_size: Size.

    Source image size

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

Return
  • retval: Rect

  • xmap: Evision.Mat.t().

    Projection map for the x axis

  • ymap: Evision.Mat.t().

    Projection map for the y axis

@return Projected image minimum bounding box

Python prototype (for reference only):

buildMaps(src_size, K, R[, xmap[, ymap]]) -> retval, xmap, ymap
Link to this function

buildMaps(self, src_size, k, r, opts)

View Source
@spec buildMaps(
  t(),
  {number(), number()},
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  [{atom(), term()}, ...] | nil
) ::
  {{number(), number(), number(), number()}, Evision.Mat.t(), Evision.Mat.t()}
  | {:error, String.t()}

Builds the projection maps according to the given camera data.

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

  • src_size: Size.

    Source image size

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

Return
  • retval: Rect

  • xmap: Evision.Mat.t().

    Projection map for the x axis

  • ymap: Evision.Mat.t().

    Projection map for the y axis

@return Projected image minimum bounding box

Python prototype (for reference only):

buildMaps(src_size, K, R[, xmap[, ymap]]) -> retval, xmap, ymap
@spec getScale(Keyword.t()) :: any() | {:error, String.t()}
@spec getScale(t()) :: number() | {:error, String.t()}

getScale

Positional Arguments
  • self: Evision.PyRotationWarper.t()
Return
  • retval: float

Python prototype (for reference only):

getScale() -> retval
@spec pyRotationWarper() :: t() | {:error, String.t()}

PyRotationWarper

Return
  • self: Evision.PyRotationWarper.t()

Python prototype (for reference only):

PyRotationWarper() -> <PyRotationWarper object>
Link to this function

pyRotationWarper(named_args)

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

pyRotationWarper(type, scale)

View Source
@spec pyRotationWarper(binary(), number()) :: t() | {:error, String.t()}

PyRotationWarper

Positional Arguments
Return
  • self: Evision.PyRotationWarper.t()

Python prototype (for reference only):

PyRotationWarper(type, scale) -> <PyRotationWarper object>
@spec setScale(Keyword.t()) :: any() | {:error, String.t()}
@spec setScale(t(), number()) :: t() | {:error, String.t()}

setScale

Positional Arguments
  • self: Evision.PyRotationWarper.t()
  • arg1: float

Python prototype (for reference only):

setScale(arg1) -> None
@spec warp(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

warp(self, src, k, r, interp_mode, border_mode)

View Source

Projects the image.

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

  • src: Evision.Mat.

    Source image

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

  • interp_mode: integer().

    Interpolation mode

  • border_mode: integer().

    Border extrapolation mode

Return
  • retval: Point

  • dst: Evision.Mat.t().

    Projected image

@return Project image top-left corner

Python prototype (for reference only):

warp(src, K, R, interp_mode, border_mode[, dst]) -> retval, dst
Link to this function

warp(self, src, k, r, interp_mode, border_mode, opts)

View Source
@spec warp(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  integer(),
  integer(),
  [{atom(), term()}, ...] | nil
) :: {{number(), number()}, Evision.Mat.t()} | {:error, String.t()}

Projects the image.

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

  • src: Evision.Mat.

    Source image

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

  • interp_mode: integer().

    Interpolation mode

  • border_mode: integer().

    Border extrapolation mode

Return
  • retval: Point

  • dst: Evision.Mat.t().

    Projected image

@return Project image top-left corner

Python prototype (for reference only):

warp(src, K, R, interp_mode, border_mode[, dst]) -> retval, dst
Link to this function

warpBackward(named_args)

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

warpBackward(self, src, k, r, interp_mode, border_mode, dst_size)

View Source

Projects the image backward.

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

  • src: Evision.Mat.

    Projected image

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

  • interp_mode: integer().

    Interpolation mode

  • border_mode: integer().

    Border extrapolation mode

  • dst_size: Size.

    Backward-projected image size

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

    Backward-projected image

Python prototype (for reference only):

warpBackward(src, K, R, interp_mode, border_mode, dst_size[, dst]) -> dst
Link to this function

warpBackward(self, src, k, r, interp_mode, border_mode, dst_size, opts)

View Source
@spec warpBackward(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  integer(),
  integer(),
  {number(), number()},
  [{atom(), term()}, ...] | nil
) :: Evision.Mat.t() | {:error, String.t()}

Projects the image backward.

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

  • src: Evision.Mat.

    Projected image

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

  • interp_mode: integer().

    Interpolation mode

  • border_mode: integer().

    Border extrapolation mode

  • dst_size: Size.

    Backward-projected image size

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

    Backward-projected image

Python prototype (for reference only):

warpBackward(src, K, R, interp_mode, border_mode, dst_size[, dst]) -> dst
@spec warpPoint(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

warpPoint(self, pt, k, r)

View Source
@spec warpPoint(
  t(),
  {number(), number()},
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in()
) ::
  {number(), number()} | {:error, String.t()}

Projects the image point.

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

  • pt: Point2f.

    Source point

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

Return
  • retval: Point2f

@return Projected point

Python prototype (for reference only):

warpPoint(pt, K, R) -> retval
Link to this function

warpPointBackward(named_args)

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

warpPointBackward(self, pt, k, r)

View Source
@spec warpPointBackward(
  t(),
  {number(), number()},
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in()
) :: {number(), number()} | {:error, String.t()}

warpPointBackward

Positional Arguments
Return
  • retval: Point2f

Python prototype (for reference only):

warpPointBackward(pt, K, R) -> retval
@spec warpRoi(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

warpRoi(self, src_size, k, r)

View Source
@spec warpRoi(
  t(),
  {number(), number()},
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in()
) ::
  {number(), number(), number(), number()} | {:error, String.t()}

warpRoi

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

  • src_size: Size.

    Source image bounding box

  • k: Evision.Mat.

    Camera intrinsic parameters

  • r: Evision.Mat.

    Camera rotation matrix

Return
  • retval: Rect

@return Projected image minimum bounding box

Python prototype (for reference only):

warpRoi(src_size, K, R) -> retval