OpenCV  4.8.0
Open Source Computer Vision
Public Member Functions | List of all members
cv::cudev::UniqueTexture< T, R > Class Template Reference

non-copyable smart CUDA texture object More...

#include <opencv2/cudev/ptr2d/texture.hpp>

Public Member Functions

__host__ UniqueTexture () noexcept
 
__host__ UniqueTexture (UniqueTexture &)=delete
 
__host__ UniqueTexture (UniqueTexture &&other) noexcept
 
__host__ UniqueTexture (const int rows, const int cols, T *data, const size_t step, const bool normalizedCoords=false, const cudaTextureFilterMode filterMode=cudaFilterModePoint, const cudaTextureAddressMode addressMode=cudaAddressModeClamp, const cudaTextureReadMode readMode=cudaReadModeElementType)
 
__host__ UniqueTexture (const size_t sizeInBytes, T *data, const bool normalizedCoords=false, const cudaTextureFilterMode filterMode=cudaFilterModePoint, const cudaTextureAddressMode addressMode=cudaAddressModeClamp, const cudaTextureReadMode readMode=cudaReadModeElementType)
 
__host__ ~UniqueTexture ()
 
__host__ cudaTextureObject_t get () const noexcept
 
__host__ operator bool () const noexcept
 
__host__ UniqueTextureoperator= (const UniqueTexture &)=delete
 
__host__ UniqueTextureoperator= (UniqueTexture &&other) noexcept
 

Detailed Description

template<class T, class R = T>
class cv::cudev::UniqueTexture< T, R >

non-copyable smart CUDA texture object

UniqueTexture is a smart non-sharable wrapper for a cudaTextureObject_t handle which ensures that the handle is destroyed after use.


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