template class NCVMatrixAlloc

NCVMatrixAlloc

#include <NCV.hpp>

template <class T>
class NCVMatrixAlloc: public NCVMatrix
{
public:
    // construction

    NCVMatrixAlloc(
        INCVMemAllocator& allocator_,
        Ncv32u width_,
        Ncv32u height_,
        Ncv32u pitch_ = 0
        );

    // methods

    Ncv32u
    getAllocatorsAlignment() const;

    NCVMemSegment
    getSegment() const;

    NcvBool
    isMemAllocated() const;
};

Inherited Members

public:
    // methods

    T&
    at(
        Ncv32u x,
        Ncv32u y
        ) const;

    void
    clear();

    NCVStatus
    copy2D(
        NCVMatrix<T>& dst,
        NcvSize32u roi,
        cudaStream_t cuStream
        ) const;

    NCVStatus
    copySolid(
        NCVMatrix<T>& dst,
        cudaStream_t cuStream,
        size_t howMuch = 0
        ) const;

    Ncv32u
    height() const;

    NCVMemoryType
    memType() const;

    Ncv32u
    pitch() const;

    T*
    ptr() const;

    NcvSize32u
    size() const;

    Ncv32u
    stride() const;

    Ncv32u
    width() const;

protected:
    // fields

    Ncv32u _height;
    NCVMemoryType _memtype;
    Ncv32u _pitch;
    T* _ptr;
    Ncv32u _width;