template<ChannelCount CC, ChannelType CT>
class cvcore::Tensor< HWC, CC, CT >
3D HWC tensors.
- Template Parameters
-
CC | channel count. |
CT | channel type. |
Definition at line 797 of file Tensor.h.
|
| Tensor ()=default |
|
template<ChannelCount T = CC, typename B = bool, typename std::enable_if< T !=CX &&std::is_same< B, bool >::value >::type * = nullptr> |
| Tensor (std::size_t width, std::size_t height, B isCPU=true) |
|
template<ChannelCount T = CC, typename B = bool, typename std::enable_if< T==CX &&std::is_same< B, bool >::value >::type * = nullptr> |
| Tensor (std::size_t width, std::size_t height, std::size_t channelCount, B isCPU=true) |
|
template<ChannelCount T = CC, typename B = bool, typename std::enable_if< T !=CX &&std::is_same< B, bool >::value >::type * = nullptr> |
| Tensor (std::size_t width, std::size_t height, DataType *dataPtr, B isCPU=true) |
|
template<ChannelCount T = CC, typename B = bool, typename std::enable_if< T !=CX &&std::is_same< B, bool >::value >::type * = nullptr> |
| Tensor (std::size_t width, std::size_t height, std::size_t rowPitch, DataType *dataPtr, B isCPU=true) |
|
template<ChannelCount T = CC, typename B = bool, typename std::enable_if< T==CX &&std::is_same< B, bool >::value >::type * = nullptr> |
| Tensor (std::size_t width, std::size_t height, std::size_t channelCount, DataType *dataPtr, B isCPU=true) |
|
template<ChannelCount T = CC, typename B = bool, typename std::enable_if< T==CX &&std::is_same< B, bool >::value >::type * = nullptr> |
| Tensor (std::size_t width, std::size_t height, std::size_t channelCount, std::size_t rowPitch, DataType *dataPtr, B isCPU=true) |
|
std::size_t | getWidth () const |
| Get the width of the 3D tensor. More...
|
|
std::size_t | getHeight () const |
| Get the height of the 3D tensor. More...
|
|
std::size_t | getChannelCount () const |
| Get the channel count of the 3D tensor. More...
|
|
std::size_t | getStride (TensorDimension dim) const |
| Get the stride of the 3D tensor. More...
|
|
std::size_t | getStride (int dimIdx) const |
| Expose base getStride() function. More...
|
|
std::size_t | getStride (int dimIdx) const |
| Get the stride of given dimension. More...
|
|
DataType * | getData () |
| Get the raw data pointer to the 3D tensor. More...
|
|
const DataType * | getData () const |
| Get the const raw data pointer to the 3D tensor. More...
|
|
void * | getData () const |
| Get the raw data pointer to the Tensor. More...
|
|
int | getDimCount () const |
| Get the dimension count of TensorBase. More...
|
|
std::size_t | getSize (int dimIdx) const |
| Get the size of given dimension. More...
|
|
ChannelType | getType () const |
| Get the ChannelType of the Tensor. More...
|
|
std::size_t | getDataSize () const |
| Get the total size of the Tensor in bytes. More...
|
|
bool | isCPU () const |
| Get the flag whether the Tensor is allocated in CPU or GPU. More...
|
|
bool | isOwning () const |
| Get the flag whether the Tensor owns the data. More...
|
|
template<ChannelCount CC, ChannelType CT>
template<ChannelCount T = CC, typename B = bool, typename std::enable_if< T==CX &&std::is_same< B, bool >::value >::type * = nullptr>
cvcore::Tensor< HWC, CC, CT >::Tensor |
( |
std::size_t |
width, |
|
|
std::size_t |
height, |
|
|
std::size_t |
channelCount, |
|
|
std::size_t |
rowPitch, |
|
|
DataType * |
dataPtr, |
|
|
B |
isCPU = true |
|
) |
| |
|
inline |