9 #ifndef ImageProcess_hpp 10 #define ImageProcess_hpp 50 float mean[4] = {0.0f, 0.0f, 0.0f, 0.0f};
51 float normal[4] = {1.0f, 1.0f, 1.0f, 1.0f};
78 const float* means =
nullptr,
const int meanCount = 0,
const float* normals =
nullptr,
79 const int normalCount = 0,
const Tensor* dstTensor =
nullptr);
90 void setMatrix(
const Matrix& matrix);
101 ErrorCode convert(
const uint8_t* source,
int iw,
int ih,
int stride,
Tensor* dest);
111 template <
typename T>
113 return createImageTensor(halide_type_of<T>(), w, h, bpp, p);
115 static Tensor* createImageTensor(
halide_type_t type,
int w,
int h,
int bpp,
void* p =
nullptr);
Filter
Definition: ImageProcess.hpp:27
Definition: ImageProcess.hpp:38
Definition: ImageProcess.hpp:21
Definition: ImageProcess.hpp:22
Definition: ImageProcess.hpp:24
Definition: ImageProcess.hpp:29
Wrap
Definition: ImageProcess.hpp:29
Definition: ImageProcess.hpp:29
static Tensor * createImageTensor(int w, int h, int bpp, void *p=nullptr)
create tensor with given data.
Definition: ImageProcess.hpp:112
Definition: ImageProcess.hpp:27
Definition: Tensor.hpp:25
Definition: ImageProcess.hpp:27
#define MNN_PUBLIC
Definition: MNNDefine.h:53
Definition: HalideRuntime.h:82
Definition: AutoTime.hpp:16
Definition: ImageProcess.hpp:20
Definition: ImageProcess.hpp:41
Definition: ImageProcess.hpp:29
Definition: ImageProcess.hpp:19
Definition: ImageProcess.hpp:23
ErrorCode
Definition: ErrorCode.hpp:13
ImageFormat
Definition: ImageProcess.hpp:18
Definition: ImageProcess.hpp:27
const Matrix & matrix() const
get affine transform matrix.
Definition: ImageProcess.hpp:87