NPL
Neurological Programs and Libraries
|
#include "npltypes.h"
#include "zlib.h"
#include <cstddef>
#include <cmath>
#include <initializer_list>
#include <vector>
#include <cstdint>
#include <complex>
#include <cassert>
#include <memory>
Go to the source code of this file.
Classes | |
class | npl::NDArray |
Pure virtual interface to interact with an ND array. More... | |
class | npl::NDArrayStore< D, T > |
Basic storage unity for ND array. Creates a big chunk of memory. More... | |
Namespaces | |
npl | |
Enumerations | |
enum | npl::PixelT { npl::UNKNOWN_TYPE =0, npl::UINT8 =2, npl::INT16 =4, npl::INT32 =8, npl::FLOAT32 =16, npl::COMPLEX64 =32, npl::CFLOAT =32, npl::FLOAT64 =64, npl::RGB24 =128, npl::INT8 =256, npl::UINT16 =512, npl::UINT32 =768, npl::INT64 =1024, npl::UINT64 =1280, npl::FLOAT128 =1536, npl::CDOUBLE =1792, npl::COMPLEX128 =1792, npl::CQUAD =2048, npl::COMPLEX256 =2048, npl::RGBA32 =2304 } |
Functions | |
ptr< NDArray > | npl::createNDArray (size_t ndim, const size_t *size, PixelT ptype) |
Creates a new NDArray with dimensions set by ndim, and size set by size. Output pixel type is decided by ptype variable. More... | |
ptr< NDArray > | npl::createNDArray (const std::vector< size_t > &dim, PixelT ptype) |
Creates a new NDArray with dimensions set by ndim, and size set by size. Output pixel type is decided by ptype variable. More... | |
ptr< NDArray > | npl::createNDArray (size_t ndim, const size_t *size, PixelT ptype, void *ptr, std::function< void(void *)> deleter) |
Creates a new NDArray with dimensions set by ndim, and size set by size. Output pixel type is decided by ptype variable. More... | |
ptr< NDArray > | npl::createNDArray (const std::vector< size_t > &dim, PixelT ptype, void *ptr, std::function< void(void *)> deleter) |
Creates a new NDArray with dimensions set by ndim, and size set by size. Output pixel type is decided by ptype variable. More... | |
void | npl::copyROI (ptr< const NDArray > in, const int64_t *inROIL, const size_t *inROIZ, ptr< NDArray > out, const int64_t *oROIL, const size_t *oROIZ, PixelT newtype) |
Copy an roi from one image to another image. ROI's must be the same size. More... | |
std::ostream & | npl::operator<< (std::ostream &out, const NDArray &img) |
Writes out information about an MRImage. More... | |
std::string | npl::pixelTtoString (PixelT type) |
Returns a string that is a descrption of the pixel type. More... | |
PixelT | npl::stringToPixelT (std::string type) |
Returns a pixeltype as described by the string. More... | |
Variables | |
const size_t | npl::MAXDIM = 10 |
Defines the maximum supported dimension by image, used for stack-allocations. More... | |