template<ChannelCount CC, ChannelType CT>
class cvcore::Tensor< DHWC, CC, CT >
4D DHWC tensors.
- Template Parameters
-
| CC | channel count. |
| CT | channel type. |
Definition at line 952 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, std::size_t depth, 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 depth, 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, std::size_t depth, 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 depth, 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 depth, 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 depth, std::size_t channelCount, std::size_t rowPitch, DataType *dataPtr, B isCPU=true) |
| |
| std::size_t | getWidth () const |
| | Get the width of the 4D tensor. More...
|
| |
| std::size_t | getHeight () const |
| | Get the height of the 4D tensor. More...
|
| |
| std::size_t | getDepth () const |
| | Get the depth of the 4D tensor. More...
|
| |
| std::size_t | getChannelCount () const |
| | Get the channel count of the 4D tensor. More...
|
| |
| std::size_t | getStride (TensorDimension dim) const |
| | Get the stride of the 4D 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 4D tensor. More...
|
| |
| const DataType * | getData () const |
| | Get the const raw data pointer to the 4D 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...
|
| |