SIFT3D 2.0
SIFT descriptors extended to 3D
Loading...
Searching...
No Matches
imutil.h
Go to the documentation of this file.
1
6#ifndef __SIFT3D_IMUTIL_H__
7#define __SIFT3D_IMUTIL_H__
8
9#include <imtypes.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
19#define SIFT3D_UNSUPPORTED_FILE_TYPE 2
20
25#define SIFT3D_WRAPPER_NOT_COMPILED 3
26
27// Images
28
39SIFT3D_EXPORT sift3d_image*
40sift3d_make_image (const int nx, const int ny, const int nz, const int nc);
41
45SIFT3D_EXPORT void
46sift3d_free_image (sift3d_image*);
47
54SIFT3D_EXPORT sift3d_image*
55sift3d_read_image (const char *path);
56
64SIFT3D_EXPORT float*
65sift3d_image_data (const sift3d_image*);
66
67// Matrices
68
77SIFT3D_EXPORT sift3d_mat_rm*
79
83SIFT3D_EXPORT void
84sift3d_free_mat_rm (sift3d_mat_rm*);
85
92SIFT3D_EXPORT void*
93sift3d_mat_rm_data (sift3d_mat_rm*);
94
103SIFT3D_EXPORT void
104sift3d_mat_rm_dimensions (const sift3d_mat_rm*, int *num_cols, int *num_rows);
105
109SIFT3D_EXPORT sift3d_mat_type
110sift3d_mat_rm_type (const sift3d_mat_rm*);
111
112#ifdef __cplusplus
113}
114#endif
115
116#endif
Types and constants.
sift3d_mat_type
Definition imtypes.h:40
SIFT3D_EXPORT void sift3d_free_image(sift3d_image *)
Destroy an image.
SIFT3D_EXPORT sift3d_image * sift3d_make_image(const int nx, const int ny, const int nz, const int nc)
Make an image with specified dimensions.
SIFT3D_EXPORT float * sift3d_image_data(const sift3d_image *)
Get a pointer to the image's data.
SIFT3D_EXPORT sift3d_image * sift3d_read_image(const char *path)
Read an image from a file.
SIFT3D_EXPORT sift3d_mat_rm * sift3d_make_mat_rm()
Create a matrix.
SIFT3D_EXPORT void sift3d_free_mat_rm(sift3d_mat_rm *)
Destroy a matrix.
SIFT3D_EXPORT sift3d_mat_type sift3d_mat_rm_type(const sift3d_mat_rm *)
Get the type of elements in a matrix.
SIFT3D_EXPORT void * sift3d_mat_rm_data(sift3d_mat_rm *)
Get a pointer to the data array of a matrix.
SIFT3D_EXPORT void sift3d_mat_rm_dimensions(const sift3d_mat_rm *, int *num_cols, int *num_rows)
Get dimensions of a matrix.