template<ChannelCount CC, ChannelType CT>
class cvcore::Tensor< CHW, CC, CT >
3D CHW tensors.
- Template Parameters
-
| CC | channel count. |
| CT | channel type. |
Definition at line 877 of file Tensor.h.
|
| | Tensor ()=default |
| |
| template<ChannelCount T = CC, typename = typename std::enable_if<T != CX>::type> |
| | Tensor (std::size_t width, std::size_t height, bool isCPU=true) |
| |
| template<ChannelCount T = CC, typename = typename std::enable_if<T == CX>::type> |
| | Tensor (std::size_t width, std::size_t height, std::size_t channelCount, bool isCPU=true) |
| |
| template<ChannelCount T = CC, typename = typename std::enable_if<T != CX>::type> |
| | Tensor (std::size_t width, std::size_t height, DataType *dataPtr, bool 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 = typename std::enable_if<T == CX>::type> |
| | Tensor (std::size_t width, std::size_t height, std::size_t channelCount, DataType *dataPtr, bool 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>
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< CHW, 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 |