Class cv::cudev::GpuMat_#

Collaboration diagram for cv::cudev::GpuMat_:

Public Member Functions#

Public Member Functions inherited from cv::cuda::GpuMat

Return

Name

Description

GpuMat(const GpuMat & m)

copy constructor

GpuMat(
    const GpuMat & m,
    Range rowRange,
    Range colRange )

creates a GpuMat header for a part of the bigger matrix

GpuMat(
    const GpuMat & m,
    Rect roi )

GpuMat(GpuMat::Allocator * allocator = GpuMat::defaultAllocator())

default constructor

GpuMat(
    InputArray arr,
    GpuMat::Allocator * allocator = GpuMat::defaultAllocator() )

builds GpuMat from host memory (Blocking call)

GpuMat(
    int rows,
    int cols,
    int type,
    GpuMat::Allocator * allocator = GpuMat::defaultAllocator() )

constructs GpuMat of the specified size and type

GpuMat(
    int rows,
    int cols,
    int type,
    Scalar s,
    GpuMat::Allocator * allocator = GpuMat::defaultAllocator() )

constructs GpuMat and fills it with the specified value _s

GpuMat(
    int rows,
    int cols,
    int type,
    void * data,
    size_t step = Mat::AUTO_STEP )

constructor for GpuMat headers pointing to user-allocated data

GpuMat(
    Size size,
    int type,
    GpuMat::Allocator * allocator = GpuMat::defaultAllocator() )

GpuMat(
    Size size,
    int type,
    Scalar s,
    GpuMat::Allocator * allocator = GpuMat::defaultAllocator() )

GpuMat(
    Size size,
    int type,
    void * data,
    size_t step = Mat::AUTO_STEP )

~GpuMat()

destructor - calls release()

GpuMat &

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

moves/resizes the current GpuMat ROI inside the parent GpuMat

void

assignTo(
    GpuMat & m,
    int type = -1 )

int

channels()

returns number of channels

GpuMat

clone()

returns deep copy of the GpuMat, i.e. the data is copied

GpuMat

col(int x)

returns a new GpuMat header for the specified column

GpuMat

colRange(
    int startcol,
    int endcol )

… for the specified column span

GpuMat

colRange(Range r)

void

convertTo(
    GpuMat & dst,
    int rtype )

bindings overload which converts GpuMat to another datatype (Blocking call)

void

convertTo(
    GpuMat & dst,
    int rtype,
    double alpha,
    double beta,
    Stream & stream )

bindings overload which converts GpuMat to another datatype with scaling (Non-Blocking call)

void

convertTo(
    GpuMat & dst,
    int rtype,
    Stream & stream )

bindings overload which converts GpuMat to another datatype (Non-Blocking call)

void

convertTo(
    OutputArray dst,
    int rtype )

converts GpuMat to another datatype (Blocking call)

void

convertTo(
    OutputArray dst,
    int rtype,
    double alpha,
    double beta,
    Stream & stream )

converts GpuMat to another datatype with scaling (Non-Blocking call)

void

convertTo(
    OutputArray dst,
    int rtype,
    double alpha,
    double beta = 0.0 )

converts GpuMat to another datatype with scaling (Blocking call)

void

convertTo(
    OutputArray dst,
    int rtype,
    double alpha,
    Stream & stream )

bindings overload which converts GpuMat to another datatype with scaling(Blocking call)

void

convertTo(
    OutputArray dst,
    int rtype,
    Stream & stream )

converts GpuMat to another datatype (Non-Blocking call)

void

copyTo(GpuMat & dst)

bindings overload which copies the GpuMat content to device memory (Blocking call)

void

copyTo(
    GpuMat & dst,
    GpuMat & mask )

bindings overload which copies those GpuMat elements to “m” that are marked with non-zero mask elements (Blocking call)

void

copyTo(
    GpuMat & dst,
    GpuMat & mask,
    Stream & stream )

bindings overload which copies those GpuMat elements to “m” that are marked with non-zero mask elements (Non-Blocking call)

void

copyTo(
    GpuMat & dst,
    Stream & stream )

bindings overload which copies the GpuMat content to device memory (Non-Blocking call)

void

copyTo(OutputArray dst)

copies the GpuMat content to device memory (Blocking call)

void

copyTo(
    OutputArray dst,
    InputArray mask )

copies those GpuMat elements to “m” that are marked with non-zero mask elements (Blocking call)

void

copyTo(
    OutputArray dst,
    InputArray mask,
    Stream & stream )

copies those GpuMat elements to “m” that are marked with non-zero mask elements (Non-Blocking call)

void

copyTo(
    OutputArray dst,
    Stream & stream )

copies the GpuMat content to device memory (Non-Blocking call)

void

create(
    int rows,
    int cols,
    int type )

allocates new GpuMat data unless the GpuMat already has specified size and type

void

create(
    Size size,
    int type )

void *

cudaPtr()

int

depth()

returns element type

void

download(OutputArray dst)

Performs data download from GpuMat (Blocking call)

void

download(
    OutputArray dst,
    Stream & stream )

Performs data download from GpuMat (Non-Blocking call)

size_t

elemSize()

returns element size in bytes

size_t

elemSize1()

returns the size of element channel in bytes

bool

empty()

returns true if GpuMat data is NULL

void

fit(
    int rows,
    int cols,
    int type )

allocates or reuses underlying storage to fit the requested 2D size and type (no-op if already compatible)

void

fit(
    Size size,
    int type )

bool

isContinuous()

void

locateROI(
    Size & wholeSize,
    Point & ofs )

locates GpuMat header within a parent GpuMat

operator PtrStep< _Tp >()

operator PtrStepSz< _Tp >()

GpuMat

operator()(
    Range rowRange,
    Range colRange )

extracts a rectangular sub-GpuMat (this is a generalized form of row, rowRange etc.)

GpuMat

operator()(Rect roi)

GpuMat &

operator=(const GpuMat & m)

assignment operators

uchar *

ptr(int y = 0)

returns pointer to y-th row

_Tp *

ptr(int y = 0)

template version of the above method

const uchar *

ptr(int y = 0)

const _Tp *

ptr(int y = 0)

void

release()

decreases reference counter, deallocate the data when reference counter reaches 0

GpuMat

reshape(
    int cn,
    int rows = 0 )

GpuMat

row(int y)

returns a new GpuMat header for the specified row

GpuMat

rowRange(
    int startrow,
    int endrow )

… for the specified row span

GpuMat

rowRange(Range r)

GpuMat &

setTo(Scalar s)

sets some of the GpuMat elements to s (Blocking call)

GpuMat &

setTo(
    Scalar s,
    InputArray mask )

sets some of the GpuMat elements to s, according to the mask (Blocking call)

GpuMat &

setTo(
    Scalar s,
    InputArray mask,
    Stream & stream )

sets some of the GpuMat elements to s, according to the mask (Non-Blocking call)

GpuMat &

setTo(
    Scalar s,
    Stream & stream )

sets some of the GpuMat elements to s (Non-Blocking call)

Size

size()

returns GpuMat size : width == number of columns, height == number of rows

size_t

step1()

returns step/elemSize1()

void

swap(GpuMat & mat)

swaps with other smart pointer

int

type()

returns element type

void

updateContinuityFlag()

internal use method: updates the continuity flag

void

upload(InputArray arr)

Performs data upload to GpuMat (Blocking call)

void

upload(
    InputArray arr,
    Stream & stream )

Performs data upload to GpuMat (Non-Blocking call)

Static Public Member Functions#

Static Public Member Functions inherited from cv::cuda::GpuMat

Return

Name

Description

static GpuMat::Allocator *

defaultAllocator()

default allocator

static GpuMat::Allocator *

getStdAllocator()

static void

setDefaultAllocator(GpuMat::Allocator * allocator)

Public Attributes#

Public Attributes inherited from cv::cuda::GpuMat

Return

Name

Description

Allocator *

allocator

allocator

int

cols

uchar *

data

pointer to the data

const uchar *

dataend

uchar *

datastart

helper fields used in locateROI and adjustROI

int

flags

int *

refcount

int

rows

the number of rows and columns

size_t

step

a distance between successive rows in bytes; includes the gap if any

Member Typedef Documentation#

value_type#

typedef T cv::cudev::GpuMat_::value_type

Constructor & Destructor Documentation#

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(Allocator * allocator = defaultAllocator())

default constructor

GpuMat_()#

template<class Body>
cv::cudev::GpuMat_::GpuMat_(const Expr< Body > & expr)

expression templates

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
const GpuMat & m,
Allocator * allocator = defaultAllocator() )

copy/conversion constructor. If m is of different type, it’s converted

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(const GpuMat_ & m)

copy constructor

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
const GpuMat_ & m,
Range arowRange,
Range acolRange )

selects a submatrix

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
const GpuMat_ & m,
Rect roi )

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
InputArray arr,
Allocator * allocator = defaultAllocator() )

builds GpuMat from host memory (Blocking call)

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
int arows,
int acols,
Allocator * allocator = defaultAllocator() )

constructs GpuMat of the specified size

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
int arows,
int acols,
Scalar val,
Allocator * allocator = defaultAllocator() )

constucts GpuMat and fills it with the specified value

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
int arows,
int acols,
T * adata,
size_t astep = Mat::AUTO_STEP )

constructs a matrix on top of user-allocated data. step is in bytes(!!!), regardless of the type

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
Size asize,
Allocator * allocator = defaultAllocator() )

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
Size asize,
Scalar val,
Allocator * allocator = defaultAllocator() )

GpuMat_()#

cv::cudev::GpuMat_::GpuMat_(
Size asize,
T * adata,
size_t astep = Mat::AUTO_STEP )

Member Function Documentation#

adjustROI()#

GpuMat_ & cv::cudev::GpuMat_::adjustROI(
int dtop,
int dbottom,
int dleft,
int dright )

assign()#

template<class Body>
GpuMat_ & cv::cudev::GpuMat_::assign(
const Expr< Body > & expr,
Stream & stream )

channels()#

int cv::cudev::GpuMat_::channels()

clone()#

GpuMat_ cv::cudev::GpuMat_::clone()

overridden forms of GpuMat::row() etc.

col()#

GpuMat_ cv::cudev::GpuMat_::col(int x)

colRange()#

GpuMat_ cv::cudev::GpuMat_::colRange(
int startcol,
int endcol )

colRange()#

GpuMat_ cv::cudev::GpuMat_::colRange(Range r)

create()#

void cv::cudev::GpuMat_::create(
int arows,
int acols )

allocates new GpuMat data unless the GpuMat already has specified size and type

create()#

void cv::cudev::GpuMat_::create(Size asize)

depth()#

int cv::cudev::GpuMat_::depth()

elemSize()#

size_t cv::cudev::GpuMat_::elemSize()

overridden forms of GpuMat::elemSize() etc.

elemSize1()#

size_t cv::cudev::GpuMat_::elemSize1()

operator()()#

GpuMat_ cv::cudev::GpuMat_::operator()(
Range rowRange,
Range colRange )

operator()()#

GpuMat_ cv::cudev::GpuMat_::operator()(Rect roi)

operator=()#

template<class Body>
GpuMat_ & cv::cudev::GpuMat_::operator=(const Expr< Body > & expr)

operator=()#

GpuMat_ & cv::cudev::GpuMat_::operator=(const GpuMat_ & m)

assignment operators

operator#

T * cv::cudev::GpuMat_::operator[](int y)

more convenient forms of row and element access operators

operator#

const T * cv::cudev::GpuMat_::operator[](int y)

row()#

GpuMat_ cv::cudev::GpuMat_::row(int y)

rowRange()#

GpuMat_ cv::cudev::GpuMat_::rowRange(
int startrow,
int endrow )

rowRange()#

GpuMat_ cv::cudev::GpuMat_::rowRange(Range r)

step1()#

size_t cv::cudev::GpuMat_::step1()

stepT()#

size_t cv::cudev::GpuMat_::stepT()

returns step()/sizeof(T)

swap()#

void cv::cudev::GpuMat_::swap(GpuMat_ & mat)

swaps with other smart pointer

type()#

int cv::cudev::GpuMat_::type()

upload()#

void cv::cudev::GpuMat_::upload(InputArray arr)

pefroms upload data to GpuMat (Blocking call)

upload()#

void cv::cudev::GpuMat_::upload(
InputArray arr,
Stream & stream )

pefroms upload data to GpuMat (Non-Blocking call)

Source file#

The documentation for this class was generated from the following file: