Blender V4.3
libmv/intern/image.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2011 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#ifndef LIBMV_IMAGE_H_
6#define LIBMV_IMAGE_H_
7
8#ifdef __cplusplus
9# include "libmv/image/image.h"
10void libmv_byteBufferToFloatImage(const unsigned char* buffer,
11 int width,
12 int height,
13 int channels,
14 libmv::FloatImage* image);
15
16void libmv_floatBufferToFloatImage(const float* buffer,
17 int width,
18 int height,
19 int channels,
20 libmv::FloatImage* image);
21
23 float* buffer);
24
26 unsigned char* buffer);
27
28bool libmv_saveImage(const libmv::FloatImage& image,
29 const char* prefix,
30 int x0,
31 int y0);
32#endif // __cplusplus
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
44
46
47void libmv_samplePlanarPatchFloat(const float* image,
48 int width,
49 int height,
50 int channels,
51 const double* xs,
52 const double* ys,
53 int num_samples_x,
54 int num_samples_y,
55 const float* mask,
56 float* patch,
57 double* warped_position_x,
58 double* warped_position_y);
59
60void libmv_samplePlanarPatchByte(const unsigned char* image,
61 int width,
62 int height,
63 int channels,
64 const double* xs,
65 const double* ys,
66 int num_samples_x,
67 int num_samples_y,
68 const float* mask,
69 unsigned char* patch,
70 double* warped_position_x,
71 double* warped_position_y);
72
73#ifdef __cplusplus
74}
75#endif
76
77#endif // LIBMV_IMAGE_H_
3D array (row, column, channel).
Definition array_nd.h:332
bool libmv_saveImage(const FloatImage &image, const char *prefix, int x0, int y0)
void libmv_floatBufferToFloatImage(const float *buffer, int width, int height, int channels, FloatImage *image)
void libmv_floatImageToFloatBuffer(const FloatImage &image, float *buffer)
void libmv_floatImageToByteBuffer(const libmv::FloatImage &image, unsigned char *buffer)
void libmv_byteBufferToFloatImage(const unsigned char *buffer, int width, int height, int channels, FloatImage *image)
void libmv_samplePlanarPatchFloat(const float *image, int width, int height, int channels, const double *xs, const double *ys, int num_samples_x, int num_samples_y, const float *mask, float *patch, double *warped_position_x, double *warped_position_y)
void libmv_samplePlanarPatchByte(const unsigned char *image, int width, int height, int channels, const double *xs, const double *ys, int num_samples_x, int num_samples_y, const float *mask, unsigned char *patch, double *warped_position_x, double *warped_position_y)
struct libmv_FloatImage libmv_FloatImage
void libmv_floatImageDestroy(libmv_FloatImage *image)