MeshLib C Docs
Loading...
Searching...
No Matches
MRRaster.h
Go to the documentation of this file.
1#pragma once
2
4#include <MRCMesh/MRVector3.h>
5#include <MRCMisc/common.h>
6#include <MRCMisc/exports.h>
7
8#include <stdbool.h>
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15typedef struct MR_AffineXf3f MR_AffineXf3f; // Defined in `#include <MRCMesh/MRAffineXf.h>`.
16typedef struct MR_expected_MR_Image_std_string MR_expected_MR_Image_std_string; // Defined in `#include <MRCMisc/expected_MR_Image_std_string.h>`.
17typedef struct MR_expected_void_std_string MR_expected_void_std_string; // Defined in `#include <MRCMisc/expected_void_std_string.h>`.
18typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
19typedef struct MR_std_vector_float MR_std_vector_float; // Defined in `#include <MRCMisc/std_vector_float.h>`.
20typedef struct MR_std_vector_unsigned_char MR_std_vector_unsigned_char; // Defined in `#include <MRCMisc/std_vector_unsigned_char.h>`.
21
22
27
31typedef struct MR_Raster MR_Raster;
32
37
45
52
59
66
73
80
87
95
102
110
114
119
126
130
134
140
143
146
154
159
164
169
175
182
188
196
204
212
216
221
229
232MRC_API const MR_Raster *MR_Raster_OffsetPtr(const MR_Raster *ptr, ptrdiff_t i);
233
237
242
245
248
255
264
272
280
288
296
303
310
317
321
326
333
337
341
346
349
352
359
367
375
383
390
397
404
408
413
420
424
428
433
436
439
446
447#ifdef __cplusplus
448} // extern "C"
449#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_std_vector_unsigned_char MR_std_vector_unsigned_char
Definition MRBase64.h:12
struct MR_expected_void_std_string MR_expected_void_std_string
Definition MRCtm.h:27
struct MR_expected_MR_Image_std_string MR_expected_MR_Image_std_string
Definition MRJpeg.h:13
struct MR_std_vector_float MR_std_vector_float
Definition MRPdf.h:27
MRC_API MR_RasterInfo * MR_RasterInfo_AssignFromAnother(MR_RasterInfo *_this, const MR_RasterInfo *_other)
MRC_API void MR_RasterSaveSettings_DestroyArray(const MR_RasterSaveSettings *_this)
Destroys a heap-allocated array of MR_RasterSaveSettings. Does nothing if the pointer is null.
MRC_API const MR_std_function_bool_from_float * MR_RasterLoadSettings_Get_progress(const MR_RasterLoadSettings *_this)
MRC_API const MR_ScalarType * MR_RasterInfo_Get_type(const MR_RasterInfo *_this)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_AssignFromAnother(MR_RasterSaveSettings *_this, MR_PassBy _other_pass_by, MR_RasterSaveSettings *_other)
MRC_API MR_RasterInfo * MR_RasterInfo_ConstructFrom(MR_Vector3i dims, MR_ScalarType type, int channels)
MRC_API void MR_RasterInfo_Destroy(const MR_RasterInfo *_this)
Destroys a heap-allocated instance of MR_RasterInfo. Does nothing if the pointer is null.
MRC_API MR_expected_MR_Image_std_string * MR_convertRasterToImage(const MR_Raster *raster)
MRC_API MR_ScalarType * MR_RasterInfo_GetMutable_type(MR_RasterInfo *_this)
MRC_API void MR_Raster_Set_info(MR_Raster *_this, const MR_RasterInfo *value)
MRC_API MR_RasterInfo * MR_RasterInfo_DefaultConstruct(void)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_RasterSaveSettings *_other)
MRC_API MR_RasterInfo * MR_RasterInfo_DefaultConstructArray(size_t num_elems)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_ConstructFrom(const MR_AffineXf3f *xf, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
MRC_API void MR_RasterInfo_Set_type(MR_RasterInfo *_this, MR_ScalarType value)
MRC_API MR_RasterInfo * MR_Raster_GetMutable_info(MR_Raster *_this)
MRC_API MR_Raster * MR_Raster_DefaultConstructArray(size_t num_elems)
MRC_API const MR_std_function_bool_from_float * MR_RasterSaveSettings_Get_progress(const MR_RasterSaveSettings *_this)
MRC_API bool MR_equal_MR_RasterInfo(const MR_RasterInfo *_this, const MR_RasterInfo *_1)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_DefaultConstructArray(size_t num_elems)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_ConstructFrom(MR_AffineXf3f *xf, MR_PassBy progress_pass_by, MR_std_function_bool_from_float *progress)
MRC_API const MR_AffineXf3f *const * MR_RasterSaveSettings_Get_xf(const MR_RasterSaveSettings *_this)
MRC_API MR_Vector3i * MR_RasterInfo_GetMutable_dims(MR_RasterInfo *_this)
MRC_API MR_std_function_bool_from_float * MR_RasterLoadSettings_GetMutable_progress(MR_RasterLoadSettings *_this)
MRC_API void MR_RasterSaveSettings_Set_xf(MR_RasterSaveSettings *_this, const MR_AffineXf3f *value)
MRC_API const MR_RasterSaveSettings * MR_RasterSaveSettings_OffsetPtr(const MR_RasterSaveSettings *ptr, ptrdiff_t i)
MRC_API MR_RasterInfo * MR_RasterInfo_ConstructFromAnother(const MR_RasterInfo *_other)
MRC_API void MR_Raster_DestroyArray(const MR_Raster *_this)
Destroys a heap-allocated array of MR_Raster. Does nothing if the pointer is null.
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_DefaultConstructArray(size_t num_elems)
MRC_API MR_AffineXf3f ** MR_RasterLoadSettings_GetMutable_xf(MR_RasterLoadSettings *_this)
MRC_API void MR_RasterSaveSettings_Set_progress(MR_RasterSaveSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API void MR_RasterLoadSettings_Destroy(const MR_RasterLoadSettings *_this)
Destroys a heap-allocated instance of MR_RasterLoadSettings. Does nothing if the pointer is null.
MRC_API MR_Raster * MR_Raster_ConstructFrom(const MR_RasterInfo *info, MR_PassBy data_pass_by, MR_std_vector_unsigned_char *data)
MRC_API int * MR_RasterInfo_GetMutable_channels(MR_RasterInfo *_this)
MRC_API void MR_Raster_Set_data(MR_Raster *_this, MR_PassBy value_pass_by, MR_std_vector_unsigned_char *value)
MRC_API const MR_RasterLoadSettings * MR_RasterLoadSettings_OffsetPtr(const MR_RasterLoadSettings *ptr, ptrdiff_t i)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_DefaultConstruct(void)
MRC_API void MR_Raster_Destroy(const MR_Raster *_this)
Destroys a heap-allocated instance of MR_Raster. Does nothing if the pointer is null.
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_OffsetMutablePtr(MR_RasterSaveSettings *ptr, ptrdiff_t i)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_DefaultConstruct(void)
MRC_API MR_Raster * MR_Raster_OffsetMutablePtr(MR_Raster *ptr, ptrdiff_t i)
MRC_API MR_std_vector_unsigned_char * MR_Raster_GetMutable_data(MR_Raster *_this)
MRC_API void MR_RasterSaveSettings_Destroy(const MR_RasterSaveSettings *_this)
Destroys a heap-allocated instance of MR_RasterSaveSettings. Does nothing if the pointer is null.
MRC_API MR_Raster * MR_Raster_AssignFromAnother(MR_Raster *_this, MR_PassBy _other_pass_by, MR_Raster *_other)
MRC_API MR_Raster * MR_Raster_ConstructFromAnother(MR_PassBy _other_pass_by, MR_Raster *_other)
MRC_API size_t MR_RasterInfo_dataSize(const MR_RasterInfo *_this)
MRC_API MR_Raster * MR_Raster_DefaultConstruct(void)
MRC_API const MR_RasterInfo * MR_Raster_Get_info(const MR_Raster *_this)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_AssignFromAnother(MR_RasterLoadSettings *_this, MR_PassBy _other_pass_by, MR_RasterLoadSettings *_other)
MRC_API const int * MR_RasterInfo_Get_channels(const MR_RasterInfo *_this)
MRC_API MR_expected_void_std_string * MR_convertRasterToFloats(const MR_Raster *raster, MR_std_vector_float *dst)
MRC_API const MR_Vector3i * MR_RasterInfo_Get_dims(const MR_RasterInfo *_this)
MRC_API MR_AffineXf3f *const * MR_RasterLoadSettings_Get_xf(const MR_RasterLoadSettings *_this)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_OffsetMutablePtr(MR_RasterLoadSettings *ptr, ptrdiff_t i)
MRC_API const MR_std_vector_unsigned_char * MR_Raster_Get_data(const MR_Raster *_this)
MRC_API void MR_RasterLoadSettings_Set_xf(MR_RasterLoadSettings *_this, MR_AffineXf3f *value)
struct MR_RasterInfo MR_RasterInfo
Definition MRRaster.h:26
MRC_API void MR_RasterLoadSettings_Set_progress(MR_RasterLoadSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API const MR_RasterInfo * MR_RasterInfo_OffsetPtr(const MR_RasterInfo *ptr, ptrdiff_t i)
MRC_API bool MR_not_equal_MR_RasterInfo(const MR_RasterInfo *_this, const MR_RasterInfo *_1)
MRC_API MR_RasterInfo * MR_RasterInfo_OffsetMutablePtr(MR_RasterInfo *ptr, ptrdiff_t i)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_ConstructFromAnother(MR_PassBy _other_pass_by, MR_RasterLoadSettings *_other)
MRC_API const MR_AffineXf3f ** MR_RasterSaveSettings_GetMutable_xf(MR_RasterSaveSettings *_this)
MRC_API MR_std_function_bool_from_float * MR_RasterSaveSettings_GetMutable_progress(MR_RasterSaveSettings *_this)
MRC_API void MR_RasterInfo_Set_dims(MR_RasterInfo *_this, MR_Vector3i value)
MRC_API const MR_Raster * MR_Raster_OffsetPtr(const MR_Raster *ptr, ptrdiff_t i)
MRC_API void MR_RasterLoadSettings_DestroyArray(const MR_RasterLoadSettings *_this)
Destroys a heap-allocated array of MR_RasterLoadSettings. Does nothing if the pointer is null.
MRC_API void MR_RasterInfo_Set_channels(MR_RasterInfo *_this, int value)
MRC_API void MR_RasterInfo_DestroyArray(const MR_RasterInfo *_this)
Destroys a heap-allocated array of MR_RasterInfo. Does nothing if the pointer is null.
MR_ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:17
struct MR_RasterSaveSettings MR_RasterSaveSettings
Definition MRTiff.h:19
struct MR_Raster MR_Raster
Definition MRTiff.h:17
struct MR_RasterLoadSettings MR_RasterLoadSettings
Definition MRTiff.h:18
MR_PassBy
Definition common.h:13
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRAffineXf.h:39
Generated from class MR::Vector3i.
Definition MRVector3.h:63