View Source Evision.UMat (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.UMat struct.

Link to this section Types

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

Type that represents an Evision.UMat struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec context() :: :ok | {:error, String.t()}

context

Return
  • retval: void*

Python prototype (for reference only):

context() -> retval
@spec get(Evision.Mat.t()) :: Evision.Mat.t() | {:error, String.t()}

get

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

Python prototype (for reference only):

get() -> retval
@spec get_offset(Evision.Mat.maybe_mat_in()) :: integer()
Link to this function

handle(self, accessFlags)

View Source
@spec handle(Evision.Mat.t(), integer()) :: :ok | {:error, String.t()}

handle

Positional Arguments
  • self: Evision.UMat.t()
  • accessFlags: AccessFlag
Return
  • retval: void*

Python prototype (for reference only):

handle(accessFlags) -> retval
@spec isContinuous(Evision.Mat.t()) :: boolean() | {:error, String.t()}

isContinuous

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

Python prototype (for reference only):

isContinuous() -> retval
@spec isSubmatrix(Evision.Mat.t()) :: boolean() | {:error, String.t()}

isSubmatrix

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

Python prototype (for reference only):

isSubmatrix() -> retval
@spec queue() :: :ok | {:error, String.t()}

queue

Return
  • retval: void*

Python prototype (for reference only):

queue() -> retval
@spec set_offset(Evision.Mat.maybe_mat_in(), integer()) :: Evision.Mat.t()
@spec uMat() :: Evision.Mat.t() | {:error, String.t()}

UMat

Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat([, usageFlags]) -> <UMat object>
@spec uMat([{atom(), term()}, ...] | nil) :: Evision.Mat.t() | {:error, String.t()}
@spec uMat(Evision.Mat.maybe_mat_in()) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

UMat

Positional Arguments
Return

Python prototype (for reference only):

UMat(m) -> <UMat object>

Variant 2:

UMat

Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat([, usageFlags]) -> <UMat object>
@spec uMat(Evision.Mat.maybe_mat_in(), [{integer(), integer()} | :all]) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(Evision.Mat.maybe_mat_in(), {number(), number(), number(), number()}) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(Evision.Mat.maybe_mat_in(), {integer(), integer()} | :all) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(
  {number(), number()},
  integer()
) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

UMat

Positional Arguments
Return

Python prototype (for reference only):

UMat(m, ranges) -> <UMat object>

Variant 2:

UMat

Positional Arguments
Return

Python prototype (for reference only):

UMat(m, roi) -> <UMat object>

Variant 3:

UMat

Positional Arguments
Keyword Arguments
Return

Python prototype (for reference only):

UMat(m, rowRange[, colRange]) -> <UMat object>

Variant 4:

UMat

Positional Arguments
  • size: Size
  • type: int
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(size, type[, usageFlags]) -> <UMat object>
@spec uMat(
  Evision.Mat.maybe_mat_in(),
  {integer(), integer()} | :all,
  [{atom(), term()}, ...] | nil
) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat({number(), number()}, integer(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | {:error, String.t()}
@spec uMat(
  {number(), number()},
  integer(),
  {number()}
  | {number(), number()}
  | {number() | number() | number()}
  | {number(), number(), number(), number()}
) :: Evision.Mat.t() | {:error, String.t()}
@spec uMat(integer(), integer(), integer()) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

UMat

Positional Arguments
  • size: Size
  • type: int
  • s: Scalar
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(size, type, s[, usageFlags]) -> <UMat object>

Variant 2:

UMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(rows, cols, type[, usageFlags]) -> <UMat object>

Variant 3:

UMat

Positional Arguments
Keyword Arguments
Return

Python prototype (for reference only):

UMat(m, rowRange[, colRange]) -> <UMat object>

Variant 4:

UMat

Positional Arguments
  • size: Size
  • type: int
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(size, type[, usageFlags]) -> <UMat object>
Link to this function

uMat(size, type, s, opts)

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

Variant 1:

UMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
  • s: Scalar
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(rows, cols, type, s[, usageFlags]) -> <UMat object>

Variant 2:

UMat

Positional Arguments
  • size: Size
  • type: int
  • s: Scalar
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(size, type, s[, usageFlags]) -> <UMat object>

Variant 3:

UMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(rows, cols, type[, usageFlags]) -> <UMat object>
Link to this function

uMat(rows, cols, type, s, opts)

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

UMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
  • s: Scalar
Keyword Arguments
  • usageFlags: UMatUsageFlags.
Return

Python prototype (for reference only):

UMat(rows, cols, type, s[, usageFlags]) -> <UMat object>