template class NCVMatrixReuse

NCVMatrixReuse

#include <NCV.hpp>

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

    NCVMatrixReuse(
        const NCVMemSegment& memSegment,
        Ncv32u alignment,
        Ncv32u width_,
        Ncv32u height_,
        Ncv32u pitch_ = 0,
        NcvBool bSkipPitchCheck = false
        );

    NCVMatrixReuse(
        const NCVMatrix<T>& mat,
        NcvRect32u roi
        );

    // methods

    NcvBool
    isMemReused() 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;