View Source Evision.CUDA.GpuMat (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.CUDA.GpuMat struct.

Functions

channels

clone

Variant 1:

convertTo

copyTo

Variant 1:

copyTo

Variant 1:

copyTo

cudaPtr

defaultAllocator

depth

Performs data download from GpuMat (Blocking call)

Variant 1:

Performs data download from GpuMat (Non-Blocking call)

Performs data download from GpuMat (Non-Blocking call)

elemSize1

elemSize

empty

GpuMat

Variant 1:

GpuMat

Variant 1:

GpuMat

Variant 1:

GpuMat

Variant 1:

GpuMat

isContinuous

release

setDefaultAllocator

Variant 1:

setTo

size

step1

type

updateContinuityFlag

Variant 1:

Performs data upload to GpuMat (Blocking call)

Variant 1:

Performs data upload to GpuMat (Non-Blocking call)

Link to this section Types

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

Type that represents an Evision.CUDA.GpuMat struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

adjustROI(self, dtop, dbottom, dleft, dright)

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

adjustROI

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • dtop: int
  • dbottom: int
  • dleft: int
  • dright: int
Return

Python prototype (for reference only):

adjustROI(dtop, dbottom, dleft, dright) -> retval
@spec assignTo(t(), t()) :: :ok | {:error, String.t()}

assignTo

Positional Arguments
Keyword Arguments
  • type: int.

Python prototype (for reference only):

assignTo(m[, type]) -> None
@spec assignTo(t(), t(), [{atom(), term()}, ...] | nil) :: :ok | {:error, String.t()}

assignTo

Positional Arguments
Keyword Arguments
  • type: int.

Python prototype (for reference only):

assignTo(m[, type]) -> None
@spec channels(t()) :: integer() | {:error, String.t()}

channels

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: int

Python prototype (for reference only):

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

clone

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return

Python prototype (for reference only):

clone() -> retval
@spec col(t(), integer()) :: t() | {:error, String.t()}

col

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • x: int
Return

Python prototype (for reference only):

col(x) -> retval
@spec colRange(t(), {integer(), integer()} | :all) :: t() | {:error, String.t()}

colRange

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • r: Range
Return

Python prototype (for reference only):

colRange(r) -> retval
Link to this function

colRange(self, startcol, endcol)

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

colRange

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • startcol: int
  • endcol: int
Return

Python prototype (for reference only):

colRange(startcol, endcol) -> retval
@spec convertTo(t(), integer()) :: Evision.Mat.t() | {:error, String.t()}

convertTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • rtype: int
Return

Python prototype (for reference only):

convertTo(rtype[, dst]) -> dst
Link to this function

convertTo(self, rtype, opts)

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

Variant 1:

convertTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • rtype: int
  • alpha: double
Keyword Arguments
  • beta: double.
Return

Python prototype (for reference only):

convertTo(rtype, alpha[, dst[, beta]]) -> dst

Variant 2:

convertTo

Positional Arguments
Return

Python prototype (for reference only):

convertTo(rtype, stream[, dst]) -> dst

Variant 3:

convertTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • rtype: int
Return

Python prototype (for reference only):

convertTo(rtype[, dst]) -> dst
Link to this function

convertTo(self, rtype, alpha, opts)

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

Variant 1:

convertTo

Positional Arguments
Return

Python prototype (for reference only):

convertTo(rtype, alpha, stream[, dst]) -> dst

Variant 2:

convertTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • rtype: int
  • alpha: double
Keyword Arguments
  • beta: double.
Return

Python prototype (for reference only):

convertTo(rtype, alpha[, dst[, beta]]) -> dst

Variant 3:

convertTo

Positional Arguments
Return

Python prototype (for reference only):

convertTo(rtype, stream[, dst]) -> dst
Link to this function

convertTo(self, rtype, alpha, stream, opts)

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

Variant 1:

convertTo

Positional Arguments
Return

Python prototype (for reference only):

convertTo(rtype, alpha, beta, stream[, dst]) -> dst

Variant 2:

convertTo

Positional Arguments
Return

Python prototype (for reference only):

convertTo(rtype, alpha, stream[, dst]) -> dst
Link to this function

convertTo(self, rtype, alpha, beta, stream, opts)

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

convertTo

Positional Arguments
Return

Python prototype (for reference only):

convertTo(rtype, alpha, beta, stream[, dst]) -> dst
@spec copyTo(t()) :: Evision.Mat.t() | {:error, String.t()}

copyTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return

Python prototype (for reference only):

copyTo([, dst]) -> dst
@spec copyTo(t(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | {:error, String.t()}
@spec copyTo(t(), Evision.Mat.maybe_mat_in()) ::
  Evision.Mat.t() | {:error, String.t()}
@spec copyTo(t(), t()) :: t() | {:error, String.t()}
@spec copyTo(t(), Evision.CUDA.Stream.t()) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask[, dst]) -> dst

Variant 2:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask[, dst]) -> dst

Variant 3:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(stream[, dst]) -> dst

Variant 4:

copyTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return

Python prototype (for reference only):

copyTo([, dst]) -> dst
Link to this function

copyTo(self, mask, opts)

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

Variant 1:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask, stream[, dst]) -> dst

Variant 2:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask, stream[, dst]) -> dst

Variant 3:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask[, dst]) -> dst

Variant 4:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask[, dst]) -> dst

Variant 5:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(stream[, dst]) -> dst
Link to this function

copyTo(self, mask, stream, opts)

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

Variant 1:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask, stream[, dst]) -> dst

Variant 2:

copyTo

Positional Arguments
Return

Python prototype (for reference only):

copyTo(mask, stream[, dst]) -> dst
Link to this function

create(self, size, type)

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

create

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • size: Size
  • type: int

Python prototype (for reference only):

create(size, type) -> None
Link to this function

create(self, rows, cols, type)

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

create

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • rows: int
  • cols: int
  • type: int

Python prototype (for reference only):

create(rows, cols, type) -> None
@spec cudaPtr(t()) :: :ok | {:error, String.t()}

cudaPtr

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: void*

Python prototype (for reference only):

cudaPtr() -> retval
@spec defaultAllocator() :: reference() | {:error, String.t()}

defaultAllocator

Return
  • retval: GpuMat::Allocator*

Python prototype (for reference only):

defaultAllocator() -> retval
@spec depth(t()) :: integer() | {:error, String.t()}

depth

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: int

Python prototype (for reference only):

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

Performs data download from GpuMat (Blocking call)

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return

This function copies data from device memory to host memory. As being a blocking call, it is guaranteed that the copy operation is finished when this function returns.

Python prototype (for reference only):

download([, dst]) -> dst
@spec download(t(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | {:error, String.t()}
@spec download(t(), Evision.CUDA.Stream.t()) :: Evision.Mat.t() | {:error, String.t()}

Variant 1:

Performs data download from GpuMat (Non-Blocking call)

Positional Arguments
Return

This function copies data from device memory to host memory. As being a non-blocking call, this function may return even if the copy operation is not finished. The copy operation may be overlapped with operations in other non-default streams if \p stream is not the default stream and \p dst is HostMem allocated with HostMem::PAGE_LOCKED option.

Python prototype (for reference only):

download(stream[, dst]) -> dst

Variant 2:

Performs data download from GpuMat (Blocking call)

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return

This function copies data from device memory to host memory. As being a blocking call, it is guaranteed that the copy operation is finished when this function returns.

Python prototype (for reference only):

download([, dst]) -> dst
Link to this function

download(self, stream, opts)

View Source
@spec download(t(), Evision.CUDA.Stream.t(), [{atom(), term()}, ...] | nil) ::
  Evision.Mat.t() | {:error, String.t()}

Performs data download from GpuMat (Non-Blocking call)

Positional Arguments
Return

This function copies data from device memory to host memory. As being a non-blocking call, this function may return even if the copy operation is not finished. The copy operation may be overlapped with operations in other non-default streams if \p stream is not the default stream and \p dst is HostMem allocated with HostMem::PAGE_LOCKED option.

Python prototype (for reference only):

download(stream[, dst]) -> dst
@spec elemSize1(t()) :: integer() | {:error, String.t()}

elemSize1

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: size_t

Python prototype (for reference only):

elemSize1() -> retval
@spec elemSize(t()) :: integer() | {:error, String.t()}

elemSize

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: size_t

Python prototype (for reference only):

elemSize() -> retval
@spec empty(t()) :: boolean() | {:error, String.t()}

empty

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

Python prototype (for reference only):

empty() -> retval
@spec get_step(t()) :: integer()
@spec gpuMat() :: t() | {:error, String.t()}

GpuMat

Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat([, allocator]) -> <cuda_GpuMat object>
@spec gpuMat([{atom(), term()}, ...] | nil) :: t() | {:error, String.t()}
@spec gpuMat(Evision.Mat.maybe_mat_in()) :: t() | {:error, String.t()}
@spec gpuMat(t()) :: t() | {:error, String.t()}
@spec gpuMat(t()) :: t() | {:error, String.t()}

Variant 1:

GpuMat

Positional Arguments
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(arr[, allocator]) -> <cuda_GpuMat object>

Variant 2:

GpuMat

Positional Arguments
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(arr[, allocator]) -> <cuda_GpuMat object>

Variant 3:

GpuMat

Positional Arguments
Return

Python prototype (for reference only):

GpuMat(m) -> <cuda_GpuMat object>

Variant 4:

GpuMat

Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat([, allocator]) -> <cuda_GpuMat object>
@spec gpuMat(Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) ::
  t() | {:error, String.t()}
@spec gpuMat(t(), [{atom(), term()}, ...] | nil) :: t() | {:error, String.t()}
@spec gpuMat(t(), {number(), number(), number(), number()}) ::
  t() | {:error, String.t()}
@spec gpuMat(
  {number(), number()},
  integer()
) :: t() | {:error, String.t()}

Variant 1:

GpuMat

Positional Arguments
Return

Python prototype (for reference only):

GpuMat(m, roi) -> <cuda_GpuMat object>

Variant 2:

GpuMat

Positional Arguments
  • size: Size
  • type: int
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(size, type[, allocator]) -> <cuda_GpuMat object>

Variant 3:

GpuMat

Positional Arguments
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(arr[, allocator]) -> <cuda_GpuMat object>

Variant 4:

GpuMat

Positional Arguments
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(arr[, allocator]) -> <cuda_GpuMat object>
Link to this function

gpuMat(size, type, opts)

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

Variant 1:

GpuMat

Positional Arguments
Return

Python prototype (for reference only):

GpuMat(m, rowRange, colRange) -> <cuda_GpuMat object>

Variant 2:

GpuMat

Positional Arguments
  • size: Size
  • type: int
  • s: Scalar
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(size, type, s[, allocator]) -> <cuda_GpuMat object>

Variant 3:

GpuMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(rows, cols, type[, allocator]) -> <cuda_GpuMat object>

Variant 4:

GpuMat

Positional Arguments
  • size: Size
  • type: int
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(size, type[, allocator]) -> <cuda_GpuMat object>
Link to this function

gpuMat(size, type, s, opts)

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

Variant 1:

GpuMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
  • s: Scalar
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(rows, cols, type, s[, allocator]) -> <cuda_GpuMat object>

Variant 2:

GpuMat

Positional Arguments
  • size: Size
  • type: int
  • s: Scalar
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(size, type, s[, allocator]) -> <cuda_GpuMat object>

Variant 3:

GpuMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(rows, cols, type[, allocator]) -> <cuda_GpuMat object>
Link to this function

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

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

GpuMat

Positional Arguments
  • rows: int
  • cols: int
  • type: int
  • s: Scalar
Keyword Arguments
  • allocator: GpuMat_Allocator*.
Return

Python prototype (for reference only):

GpuMat(rows, cols, type, s[, allocator]) -> <cuda_GpuMat object>
@spec isContinuous(t()) :: boolean() | {:error, String.t()}

isContinuous

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

Python prototype (for reference only):

isContinuous() -> retval
Link to this function

locateROI(self, wholeSize, ofs)

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

locateROI

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • wholeSize: Size
  • ofs: Point

Python prototype (for reference only):

locateROI(wholeSize, ofs) -> None
@spec release(t()) :: :ok | {:error, String.t()}

release

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()

Python prototype (for reference only):

release() -> None
@spec reshape(t(), integer()) :: t() | {:error, String.t()}

reshape

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • cn: int
Keyword Arguments
  • rows: int.
Return

Python prototype (for reference only):

reshape(cn[, rows]) -> retval
@spec reshape(t(), integer(), [{atom(), term()}, ...] | nil) ::
  t() | {:error, String.t()}

reshape

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • cn: int
Keyword Arguments
  • rows: int.
Return

Python prototype (for reference only):

reshape(cn[, rows]) -> retval
@spec row(t(), integer()) :: t() | {:error, String.t()}

row

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • y: int
Return

Python prototype (for reference only):

row(y) -> retval
@spec rowRange(t(), {integer(), integer()} | :all) :: t() | {:error, String.t()}

rowRange

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • r: Range
Return

Python prototype (for reference only):

rowRange(r) -> retval
Link to this function

rowRange(self, startrow, endrow)

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

rowRange

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • startrow: int
  • endrow: int
Return

Python prototype (for reference only):

rowRange(startrow, endrow) -> retval
Link to this function

setDefaultAllocator(allocator)

View Source
@spec setDefaultAllocator(reference()) :: :ok | {:error, String.t()}

setDefaultAllocator

Positional Arguments
  • allocator: GpuMat_Allocator*

Python prototype (for reference only):

setDefaultAllocator(allocator) -> None
@spec setTo(
  t(),
  {number()}
  | {number(), number()}
  | {number() | number() | number()}
  | {number(), number(), number(), number()}
) :: t() | {:error, String.t()}

setTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • s: Scalar
Return

Python prototype (for reference only):

setTo(s) -> retval
@spec setTo(
  t(),
  {number()}
  | {number(), number()}
  | {number() | number() | number()}
  | {number(), number(), number(), number()},
  Evision.Mat.maybe_mat_in()
) :: t() | {:error, String.t()}
@spec setTo(
  t(),
  {number()}
  | {number(), number()}
  | {number() | number() | number()}
  | {number(), number(), number(), number()},
  t()
) :: t() | {:error, String.t()}
@spec setTo(
  t(),
  {number()}
  | {number(), number()}
  | {number() | number() | number()}
  | {number(), number(), number(), number()},
  Evision.CUDA.Stream.t()
) :: t() | {:error, String.t()}

Variant 1:

setTo

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
  • s: Scalar
  • mask: Evision.Mat
Return

Python prototype (for reference only):

setTo(s, mask) -> retval

Variant 2:

setTo

Positional Arguments
Return

Python prototype (for reference only):

setTo(s, mask) -> retval

Variant 3:

setTo

Positional Arguments
Return

Python prototype (for reference only):

setTo(s, stream) -> retval
Link to this function

setTo(self, s, mask, stream)

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

Variant 1:

setTo

Positional Arguments
Return

Python prototype (for reference only):

setTo(s, mask, stream) -> retval

Variant 2:

setTo

Positional Arguments
Return

Python prototype (for reference only):

setTo(s, mask, stream) -> retval
@spec size(t()) :: {number(), number()} | {:error, String.t()}

size

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: Size

Python prototype (for reference only):

size() -> retval
@spec step1(t()) :: integer() | {:error, String.t()}

step1

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: size_t

Python prototype (for reference only):

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

swap

Positional Arguments

Python prototype (for reference only):

swap(mat) -> None
@spec type(t()) :: integer() | {:error, String.t()}

type

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()
Return
  • retval: int

Python prototype (for reference only):

type() -> retval
Link to this function

updateContinuityFlag(self)

View Source
@spec updateContinuityFlag(t()) :: :ok | {:error, String.t()}

updateContinuityFlag

Positional Arguments
  • self: Evision.CUDA.GpuMat.t()

Python prototype (for reference only):

updateContinuityFlag() -> None
@spec upload(t(), Evision.Mat.maybe_mat_in()) :: :ok | {:error, String.t()}
@spec upload(t(), t()) :: :ok | {:error, String.t()}

Variant 1:

Performs data upload to GpuMat (Blocking call)

Positional Arguments

This function copies data from host memory to device memory. As being a blocking call, it is guaranteed that the copy operation is finished when this function returns.

Python prototype (for reference only):

upload(arr) -> None

Variant 2:

Performs data upload to GpuMat (Blocking call)

Positional Arguments

This function copies data from host memory to device memory. As being a blocking call, it is guaranteed that the copy operation is finished when this function returns.

Python prototype (for reference only):

upload(arr) -> None
Link to this function

upload(self, arr, stream)

View Source
@spec upload(t(), Evision.Mat.maybe_mat_in(), Evision.CUDA.Stream.t()) ::
  :ok | {:error, String.t()}
@spec upload(t(), t(), Evision.CUDA.Stream.t()) :: :ok | {:error, String.t()}

Variant 1:

Performs data upload to GpuMat (Non-Blocking call)

Positional Arguments

This function copies data from host memory to device memory. As being a non-blocking call, this function may return even if the copy operation is not finished. The copy operation may be overlapped with operations in other non-default streams if \p stream is not the default stream and \p dst is HostMem allocated with HostMem::PAGE_LOCKED option.

Python prototype (for reference only):

upload(arr, stream) -> None

Variant 2:

Performs data upload to GpuMat (Non-Blocking call)

Positional Arguments

This function copies data from host memory to device memory. As being a non-blocking call, this function may return even if the copy operation is not finished. The copy operation may be overlapped with operations in other non-default streams if \p stream is not the default stream and \p dst is HostMem allocated with HostMem::PAGE_LOCKED option.

Python prototype (for reference only):

upload(arr, stream) -> None