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

Link to this section Summary

cv.cuda

Positional Arguments
  • dtop: int
  • dbottom: int
  • dleft: int
  • dright: int

Python prototype (for reference):

Positional Arguments
  • m: GpuMat
Keyword Arguments
  • type: int.

Python prototype (for reference):

Positional Arguments
  • m: GpuMat
Keyword Arguments
  • type: int.

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Positional Arguments
  • x: int

Python prototype (for reference):

Positional Arguments

Python prototype (for reference):

Positional Arguments
  • startcol: int
  • endcol: int

Python prototype (for reference):

Positional Arguments
  • rtype: int
Return

Python prototype (for reference):

Variant 1:

Positional Arguments
  • rtype: int
  • alpha: double
Keyword Arguments
  • beta: double.
Return

Python prototype (for reference):

Variant 1:

Positional Arguments
  • rtype: int
  • alpha: double
  • stream: Stream
Return

Python prototype (for reference):

Variant 1:

Positional Arguments
  • rtype: int
  • alpha: double
  • beta: double
  • stream: Stream
Return

Python prototype (for reference):

Positional Arguments
  • rtype: int
  • alpha: double
  • beta: double
  • stream: Stream
Return

Python prototype (for reference):

##### Return

Positional Arguments
Return

Python prototype (for reference):

Variant 1:

Positional Arguments
Return

Python prototype (for reference):

Positional Arguments
Return

Python prototype (for reference):

Positional Arguments
  • size: Size
  • type: int

Python prototype (for reference):

Positional Arguments
  • rows: int
  • cols: int
  • type: int

Python prototype (for reference):

##### Keyword Arguments

Variant 1:

Positional Arguments
Keyword Arguments
  • allocator: GpuMat_Allocator*.

Python prototype (for reference):

Variant 1:

Positional Arguments
  • m: GpuMat
  • roi: Rect

Python prototype (for reference):

Variant 1:

Positional Arguments

Python prototype (for reference):

Variant 1:

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

Python prototype (for reference):

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

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Performs data download from GpuMat (Blocking call)

Performs data download from GpuMat (Non-Blocking call)

Performs data download from GpuMat (Non-Blocking call)

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Positional Arguments
  • wholeSize: Size
  • ofs: Point

Python prototype (for reference):

Python prototype (for reference):

Positional Arguments
  • cn: int
Keyword Arguments
  • rows: int.

Python prototype (for reference):

Positional Arguments
  • cn: int
Keyword Arguments
  • rows: int.

Python prototype (for reference):

Positional Arguments
  • y: int

Python prototype (for reference):

Positional Arguments

Python prototype (for reference):

Positional Arguments
  • startrow: int
  • endrow: int

Python prototype (for reference):

Positional Arguments
  • allocator: GpuMat_Allocator*

Python prototype (for reference):

Positional Arguments
  • s: Scalar

Python prototype (for reference):

Positional Arguments

Python prototype (for reference):

Positional Arguments

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Positional Arguments
  • mat: GpuMat

Python prototype (for reference):

Python prototype (for reference):

Python prototype (for reference):

Performs data upload to GpuMat (Blocking call)

Performs data upload to GpuMat (Non-Blocking call)

Functions

Raising version of assignTo/2.

Raising version of assignTo/3.

Raising version of channels/1.

Raising version of clone/1.

Raising version of col/2.

Raising version of colRange/2.

Raising version of convertTo/2.

Raising version of copyTo/1.

Raising version of copyTo/2.

Raising version of create/3.

Raising version of cuda_GpuMat/0.

Raising version of cuda_GpuMat/1.

Raising version of cuda_GpuMat/2.

Raising version of cudaPtr/1.

Raising version of depth/1.

Raising version of download/1.

Raising version of download/2.

Raising version of elemSize1/1.

Raising version of elemSize/1.

Raising version of empty/1.

Raising version of get_step/1.

Raising version of isContinuous/1.

Raising version of release/1.

Raising version of reshape/2.

Raising version of reshape/3.

Raising version of row/2.

Raising version of rowRange/2.

Raising version of setTo/2.

Raising version of setTo/3.

Raising version of size/1.

Raising version of step1/1.

Raising version of swap/2.

Raising version of type/1.

Raising version of upload/2.

Raising version of upload/3.

Link to this section cv.cuda

Link to this function

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

View Source
Positional Arguments
  • dtop: int
  • dbottom: int
  • dleft: int
  • dright: int

Python prototype (for reference):

adjustROI(dtop, dbottom, dleft, dright) -> retval
Positional Arguments
  • m: GpuMat
Keyword Arguments
  • type: int.

Python prototype (for reference):

assignTo(m[, type]) -> None
Positional Arguments
  • m: GpuMat
Keyword Arguments
  • type: int.

Python prototype (for reference):

assignTo(m[, type]) -> None

Python prototype (for reference):

channels() -> retval

Python prototype (for reference):

clone() -> retval
Positional Arguments
  • x: int

Python prototype (for reference):

col(x) -> retval
Positional Arguments

Python prototype (for reference):

colRange(r) -> retval
Link to this function

colRange(self, startcol, endcol)

View Source
Positional Arguments
  • startcol: int
  • endcol: int

Python prototype (for reference):

colRange(startcol, endcol) -> retval
Positional Arguments
  • rtype: int
Return

Python prototype (for reference):

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

convertTo(self, rtype, opts)

View Source

Variant 1:

Positional Arguments
  • rtype: int
  • alpha: double
Keyword Arguments
  • beta: double.
Return

Python prototype (for reference):

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

Variant 2:

Positional Arguments
Return

Python prototype (for reference):

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

Variant 3:

Positional Arguments
  • rtype: int
Return

Python prototype (for reference):

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

convertTo(self, rtype, alpha, opts)

View Source

Variant 1:

Positional Arguments
  • rtype: int
  • alpha: double
  • stream: Stream
Return

Python prototype (for reference):

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

Variant 2:

Positional Arguments
  • rtype: int
  • alpha: double
Keyword Arguments
  • beta: double.
Return

Python prototype (for reference):

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

Variant 3:

Positional Arguments
Return

Python prototype (for reference):

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

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

View Source

Variant 1:

Positional Arguments
  • rtype: int
  • alpha: double
  • beta: double
  • stream: Stream
Return

Python prototype (for reference):

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

Variant 2:

Positional Arguments
  • rtype: int
  • alpha: double
  • stream: Stream
Return

Python prototype (for reference):

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

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

View Source
Positional Arguments
  • rtype: int
  • alpha: double
  • beta: double
  • stream: Stream
Return

Python prototype (for reference):

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

##### Return

Python prototype (for reference):

copyTo([, dst]) -> dst
Positional Arguments
Return

Python prototype (for reference):

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

copyTo(self, mask, opts)

View Source

Variant 1:

Positional Arguments
Return

Python prototype (for reference):

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

Variant 2:

Positional Arguments
Return

Python prototype (for reference):

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

copyTo(self, mask, stream, opts)

View Source
Positional Arguments
Return

Python prototype (for reference):

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

create(self, size, type)

View Source
Positional Arguments
  • size: Size
  • type: int

Python prototype (for reference):

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

create(self, rows, cols, type)

View Source
Positional Arguments
  • rows: int
  • cols: int
  • type: int

Python prototype (for reference):

create(rows, cols, type) -> None

##### Keyword Arguments

  • allocator: GpuMat_Allocator*.

Python prototype (for reference):

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

Variant 1:

Positional Arguments
Keyword Arguments
  • allocator: GpuMat_Allocator*.

Python prototype (for reference):

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

Variant 2:

##### Keyword Arguments

  • allocator: GpuMat_Allocator*.

Python prototype (for reference):

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

Variant 1:

Positional Arguments
  • m: GpuMat
  • roi: Rect

Python prototype (for reference):

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

Variant 2:

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

Python prototype (for reference):

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

Variant 3:

Positional Arguments
Keyword Arguments
  • allocator: GpuMat_Allocator*.

Python prototype (for reference):

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

cuda_GpuMat(size, type, opts)

View Source

Variant 1:

Positional Arguments

Python prototype (for reference):

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

Variant 2:

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

Python prototype (for reference):

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

Variant 3:

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

Python prototype (for reference):

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

Variant 4:

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

Python prototype (for reference):

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

cuda_GpuMat(size, type, s, opts)

View Source

Variant 1:

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

Python prototype (for reference):

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

Variant 2:

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

Python prototype (for reference):

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

Variant 3:

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

Python prototype (for reference):

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

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

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

Python prototype (for reference):

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

Python prototype (for reference):

cudaPtr() -> retval

Python prototype (for reference):

defaultAllocator() -> retval

Python prototype (for reference):

depth() -> retval

Performs data download from GpuMat (Blocking call)

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):

download([, dst]) -> dst

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):

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

download(self, stream, opts)

View Source

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):

download(stream[, dst]) -> dst

Python prototype (for reference):

elemSize1() -> retval

Python prototype (for reference):

elemSize() -> retval

Python prototype (for reference):

empty() -> retval

Python prototype (for reference):

isContinuous() -> retval
Link to this function

locateROI(self, wholeSize, ofs)

View Source
Positional Arguments
  • wholeSize: Size
  • ofs: Point

Python prototype (for reference):

locateROI(wholeSize, ofs) -> None

Python prototype (for reference):

release() -> None
Positional Arguments
  • cn: int
Keyword Arguments
  • rows: int.

Python prototype (for reference):

reshape(cn[, rows]) -> retval
Positional Arguments
  • cn: int
Keyword Arguments
  • rows: int.

Python prototype (for reference):

reshape(cn[, rows]) -> retval
Positional Arguments
  • y: int

Python prototype (for reference):

row(y) -> retval
Positional Arguments

Python prototype (for reference):

rowRange(r) -> retval
Link to this function

rowRange(self, startrow, endrow)

View Source
Positional Arguments
  • startrow: int
  • endrow: int

Python prototype (for reference):

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

setDefaultAllocator(allocator)

View Source
Positional Arguments
  • allocator: GpuMat_Allocator*

Python prototype (for reference):

setDefaultAllocator(allocator) -> None
Positional Arguments
  • s: Scalar

Python prototype (for reference):

setTo(s) -> retval
Positional Arguments

Python prototype (for reference):

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

setTo(self, s, mask, stream)

View Source
Positional Arguments

Python prototype (for reference):

setTo(s, mask, stream) -> retval

Python prototype (for reference):

size() -> retval

Python prototype (for reference):

step1() -> retval
Positional Arguments
  • mat: GpuMat

Python prototype (for reference):

swap(mat) -> None

Python prototype (for reference):

type() -> retval
Link to this function

updateContinuityFlag(self)

View Source

Python prototype (for reference):

updateContinuityFlag() -> None

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):

upload(arr) -> None
Link to this function

upload(self, arr, stream)

View Source

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):

upload(arr, stream) -> None

Link to this section Functions

Link to this function

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

View Source

Raising version of adjustROI/5.

Raising version of assignTo/2.

Link to this function

assignTo!(self, m, opts)

View Source

Raising version of assignTo/3.

Raising version of channels/1.

Raising version of clone/1.

Raising version of col/2.

Raising version of colRange/2.

Link to this function

colRange!(self, startcol, endcol)

View Source

Raising version of colRange/3.

Raising version of convertTo/2.

Link to this function

convertTo!(self, rtype, alpha)

View Source

Raising version of convertTo/3.

Link to this function

convertTo!(self, rtype, alpha, stream)

View Source

Raising version of convertTo/4.

Link to this function

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

View Source

Raising version of convertTo/5.

Link to this function

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

View Source

Raising version of convertTo/6.

Raising version of copyTo/1.

Raising version of copyTo/2.

Link to this function

copyTo!(self, mask, stream)

View Source

Raising version of copyTo/3.

Link to this function

copyTo!(self, mask, stream, opts)

View Source

Raising version of copyTo/4.

Link to this function

create!(self, size, type)

View Source

Raising version of create/3.

Link to this function

create!(self, rows, cols, type)

View Source

Raising version of create/4.

Raising version of cuda_GpuMat/0.

Raising version of cuda_GpuMat/1.

Raising version of cuda_GpuMat/2.

Link to this function

cuda_GpuMat!(m, rowRange, colRange)

View Source

Raising version of cuda_GpuMat/3.

Link to this function

cuda_GpuMat!(rows, cols, type, s)

View Source

Raising version of cuda_GpuMat/4.

Link to this function

cuda_GpuMat!(rows, cols, type, s, opts)

View Source

Raising version of cuda_GpuMat/5.

Raising version of cudaPtr/1.

Raising version of defaultAllocator/0.

Raising version of depth/1.

Raising version of download/1.

Raising version of download/2.

Link to this function

download!(self, stream, opts)

View Source

Raising version of download/3.

Raising version of elemSize1/1.

Raising version of elemSize/1.

Raising version of empty/1.

Raising version of get_step/1.

Raising version of isContinuous/1.

Link to this function

locateROI!(self, wholeSize, ofs)

View Source

Raising version of locateROI/3.

Raising version of release/1.

Raising version of reshape/2.

Link to this function

reshape!(self, cn, opts)

View Source

Raising version of reshape/3.

Raising version of row/2.

Raising version of rowRange/2.

Link to this function

rowRange!(self, startrow, endrow)

View Source

Raising version of rowRange/3.

Link to this function

setDefaultAllocator!(allocator)

View Source

Raising version of setDefaultAllocator/1.

Raising version of setTo/2.

Raising version of setTo/3.

Link to this function

setTo!(self, s, mask, stream)

View Source

Raising version of setTo/4.

Raising version of size/1.

Raising version of step1/1.

Raising version of swap/2.

Raising version of type/1.

Link to this function

updateContinuityFlag!(self)

View Source

Raising version of updateContinuityFlag/1.

Raising version of upload/2.

Link to this function

upload!(self, arr, stream)

View Source

Raising version of upload/3.