Blender
V3.3
|
#include "intern/image.h"
#include "intern/utildefines.h"
#include "libmv/tracking/track_region.h"
#include <png.h>
#include <cassert>
Go to the source code of this file.
Functions | |
void | libmv_floatImageDestroy (libmv_FloatImage *image) |
void | libmv_byteBufferToFloatImage (const unsigned char *buffer, int width, int height, int channels, FloatImage *image) |
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) |
static bool | savePNGImage (png_bytep *row_pointers, int width, int height, int depth, int color_type, const char *file_name) |
bool | libmv_saveImage (const FloatImage &image, const char *prefix, int x0, int y0) |
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) |
void libmv_byteBufferToFloatImage | ( | const unsigned char * | buffer, |
int | width, | ||
int | height, | ||
int | channels, | ||
FloatImage * | image | ||
) |
Definition at line 20 of file intern/libmv/intern/image.cc.
References Freestyle::a, buffer, channels(), height, image(), width, x, and y.
Referenced by libmv_detectFeaturesByte(), and libmv_samplePlanarPatchByte().
void libmv_floatBufferToFloatImage | ( | const float * | buffer, |
int | width, | ||
int | height, | ||
int | channels, | ||
FloatImage * | image | ||
) |
Definition at line 35 of file intern/libmv/intern/image.cc.
References Freestyle::a, buffer, channels(), height, image(), width, x, and y.
Referenced by libmv_detectFeaturesFloat(), libmv_samplePlanarPatchByte(), libmv_samplePlanarPatchFloat(), and libmv_trackRegion().
void libmv_floatImageDestroy | ( | libmv_FloatImage * | image | ) |
Definition at line 14 of file intern/libmv/intern/image.cc.
References image().
Referenced by accessor_get_ibuf().
void libmv_floatImageToByteBuffer | ( | const libmv::FloatImage & | image, |
unsigned char * | buffer | ||
) |
Definition at line 60 of file intern/libmv/intern/image.cc.
References Freestyle::a, buffer, image(), x, and y.
Referenced by libmv_samplePlanarPatchByte().
Definition at line 50 of file intern/libmv/intern/image.cc.
References Freestyle::a, buffer, image(), x, and y.
Referenced by libmv_samplePlanarPatchFloat().
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 | ||
) |
Definition at line 218 of file intern/libmv/intern/image.cc.
References channels(), height, image(), libmv_byteBufferToFloatImage(), libmv_floatBufferToFloatImage(), libmv_floatImageToByteBuffer(), mask(), NULL, libmv::SamplePlanarPatch(), and width.
Referenced by BKE_tracking_get_plane_imbuf(), and BKE_tracking_sample_pattern().
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 | ||
) |
Definition at line 183 of file intern/libmv/intern/image.cc.
References channels(), height, image(), libmv_floatBufferToFloatImage(), libmv_floatImageToFloatBuffer(), mask(), NULL, libmv::SamplePlanarPatch(), and width.
Referenced by BKE_tracking_get_plane_imbuf(), and BKE_tracking_sample_pattern().
bool libmv_saveImage | ( | const FloatImage & | image, |
const char * | prefix, | ||
int | x0, | ||
int | y0 | ||
) |
Definition at line 134 of file intern/libmv/intern/image.cc.
References image(), result, savePNGImage(), snprintf, x, and y.
Referenced by libmv_trackRegion().
|
static |
Definition at line 71 of file intern/libmv/intern/image.cc.
References height, NULL, and width.
Referenced by libmv_saveImage().