MeshLib C Docs
Loading...
Searching...
No Matches
MRRaster.h File Reference
#include <MRCMesh/MRScalarConvert.h>
#include <MRCMesh/MRVector3.h>
#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Typedefs

typedef struct MR_RasterInfo MR_RasterInfo

Functions

MRC_API const MR_Vector3i * MR_RasterInfo_Get_dims (const MR_RasterInfo *_this)
MRC_API void MR_RasterInfo_Set_dims (MR_RasterInfo *_this, MR_Vector3i value)
MRC_API MR_Vector3i * MR_RasterInfo_GetMutable_dims (MR_RasterInfo *_this)
MRC_API const MR_ScalarType * MR_RasterInfo_Get_type (const MR_RasterInfo *_this)
MRC_API void MR_RasterInfo_Set_type (MR_RasterInfo *_this, MR_ScalarType value)
MRC_API MR_ScalarType * MR_RasterInfo_GetMutable_type (MR_RasterInfo *_this)
MRC_API const int * MR_RasterInfo_Get_channels (const MR_RasterInfo *_this)
MRC_API void MR_RasterInfo_Set_channels (MR_RasterInfo *_this, int value)
MRC_API int * MR_RasterInfo_GetMutable_channels (MR_RasterInfo *_this)
MRC_API MR_RasterInfo * MR_RasterInfo_DefaultConstruct (void)
MRC_API MR_RasterInfo * MR_RasterInfo_DefaultConstructArray (size_t num_elems)
MRC_API MR_RasterInfo * MR_RasterInfo_ConstructFrom (MR_Vector3i dims, MR_ScalarType type, int channels)
MRC_API const MR_RasterInfo * MR_RasterInfo_OffsetPtr (const MR_RasterInfo *ptr, ptrdiff_t i)
MRC_API MR_RasterInfo * MR_RasterInfo_OffsetMutablePtr (MR_RasterInfo *ptr, ptrdiff_t i)
MRC_API MR_RasterInfo * MR_RasterInfo_ConstructFromAnother (const MR_RasterInfo *_other)
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 void MR_RasterInfo_DestroyArray (const MR_RasterInfo *_this)
 Destroys a heap-allocated array of MR_RasterInfo. Does nothing if the pointer is null.
MRC_API MR_RasterInfo * MR_RasterInfo_AssignFromAnother (MR_RasterInfo *_this, const MR_RasterInfo *_other)
MRC_API size_t MR_RasterInfo_dataSize (const MR_RasterInfo *_this)
MRC_API bool MR_equal_MR_RasterInfo (const MR_RasterInfo *_this, const MR_RasterInfo *_1)
MRC_API bool MR_not_equal_MR_RasterInfo (const MR_RasterInfo *_this, const MR_RasterInfo *_1)
MRC_API const MR_RasterInfo * MR_Raster_Get_info (const MR_Raster *_this)
MRC_API void MR_Raster_Set_info (MR_Raster *_this, const MR_RasterInfo *value)
MRC_API MR_RasterInfo * MR_Raster_GetMutable_info (MR_Raster *_this)
MRC_API const MR_std_vector_unsigned_char * MR_Raster_Get_data (const MR_Raster *_this)
MRC_API void MR_Raster_Set_data (MR_Raster *_this, MR_PassBy value_pass_by, MR_std_vector_unsigned_char *value)
MRC_API MR_std_vector_unsigned_char * MR_Raster_GetMutable_data (MR_Raster *_this)
MRC_API MR_Raster * MR_Raster_DefaultConstruct (void)
MRC_API MR_Raster * MR_Raster_DefaultConstructArray (size_t num_elems)
MRC_API MR_Raster * MR_Raster_ConstructFrom (const MR_RasterInfo *info, MR_PassBy data_pass_by, MR_std_vector_unsigned_char *data)
MRC_API const MR_Raster * MR_Raster_OffsetPtr (const MR_Raster *ptr, ptrdiff_t i)
MRC_API MR_Raster * MR_Raster_OffsetMutablePtr (MR_Raster *ptr, ptrdiff_t i)
MRC_API MR_Raster * MR_Raster_ConstructFromAnother (MR_PassBy _other_pass_by, MR_Raster *_other)
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 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_Raster * MR_Raster_AssignFromAnother (MR_Raster *_this, MR_PassBy _other_pass_by, MR_Raster *_other)
MRC_API MR_expected_MR_Image_std_string * MR_convertRasterToImage (const MR_Raster *raster)
MRC_API MR_expected_void_std_string * MR_convertRasterToFloats (const MR_Raster *raster, MR_std_vector_float *dst)
MRC_API MR_AffineXf3f *const * MR_RasterLoadSettings_Get_xf (const MR_RasterLoadSettings *_this)
MRC_API void MR_RasterLoadSettings_Set_xf (MR_RasterLoadSettings *_this, MR_AffineXf3f *value)
MRC_API MR_AffineXf3f ** MR_RasterLoadSettings_GetMutable_xf (MR_RasterLoadSettings *_this)
MRC_API const MR_std_function_bool_from_float * MR_RasterLoadSettings_Get_progress (const MR_RasterLoadSettings *_this)
MRC_API void MR_RasterLoadSettings_Set_progress (MR_RasterLoadSettings *_this, MR_PassBy value_pass_by, MR_std_function_bool_from_float *value)
MRC_API MR_std_function_bool_from_float * MR_RasterLoadSettings_GetMutable_progress (MR_RasterLoadSettings *_this)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_DefaultConstruct (void)
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_RasterLoadSettings * MR_RasterLoadSettings_OffsetPtr (const MR_RasterLoadSettings *ptr, ptrdiff_t i)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_OffsetMutablePtr (MR_RasterLoadSettings *ptr, ptrdiff_t i)
MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_RasterLoadSettings *_other)
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 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 MR_RasterLoadSettings * MR_RasterLoadSettings_AssignFromAnother (MR_RasterLoadSettings *_this, MR_PassBy _other_pass_by, MR_RasterLoadSettings *_other)
MRC_API const MR_AffineXf3f *const * MR_RasterSaveSettings_Get_xf (const MR_RasterSaveSettings *_this)
MRC_API void MR_RasterSaveSettings_Set_xf (MR_RasterSaveSettings *_this, const MR_AffineXf3f *value)
MRC_API const MR_AffineXf3f ** MR_RasterSaveSettings_GetMutable_xf (MR_RasterSaveSettings *_this)
MRC_API const MR_std_function_bool_from_float * MR_RasterSaveSettings_Get_progress (const MR_RasterSaveSettings *_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 MR_std_function_bool_from_float * MR_RasterSaveSettings_GetMutable_progress (MR_RasterSaveSettings *_this)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_DefaultConstruct (void)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_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 const MR_RasterSaveSettings * MR_RasterSaveSettings_OffsetPtr (const MR_RasterSaveSettings *ptr, ptrdiff_t i)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_OffsetMutablePtr (MR_RasterSaveSettings *ptr, ptrdiff_t i)
MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_ConstructFromAnother (MR_PassBy _other_pass_by, MR_RasterSaveSettings *_other)
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 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 MR_RasterSaveSettings * MR_RasterSaveSettings_AssignFromAnother (MR_RasterSaveSettings *_this, MR_PassBy _other_pass_by, MR_RasterSaveSettings *_other)

Typedef Documentation

◆ MR_RasterInfo

typedef struct MR_RasterInfo MR_RasterInfo

everything about a raster except its values Generated from class MR::RasterInfo. Supported MR_PassBy modes: MR_PassBy_DefaultConstruct, MR_PassBy_Copy, MR_PassBy_Move (and MR_PassBy_DefaultArgument and MR_PassBy_NoObject if supported by the callee).

Function Documentation

◆ MR_convertRasterToFloats()

MRC_API MR_expected_void_std_string * MR_convertRasterToFloats ( const MR_Raster * raster,
MR_std_vector_float * dst )

converts the values of a raster to floats as above, dst is resized to dims.x * dims.y * dims.z values (memory is reallocated only if its capacity is too small) Generated from function MR::convertRasterToFloats. Parameter raster can not be null. It is a single object. Parameter dst can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_void_std_string_Destroy() to free it when you're done using it.

◆ MR_convertRasterToImage()

MRC_API MR_expected_MR_Image_std_string * MR_convertRasterToImage ( const MR_Raster * raster)

converts a raster with one layer to an image (the rows are reordered from bottom to top):

  • the values of one channel are scaled from the range of finite values to gray colors, NaN and infinite values become black;
  • three or more channels are RGB or RGBA colors (the channels after the fourth are ignored): integer values keep their high byte and are taken as unsigned ones, floating-point values are clamped to [0, 1], NaN becomes 0 Generated from function MR::convertRasterToImage. Parameter raster can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_expected_MR_Image_std_string_Destroy() to free it when you're done using it.

◆ MR_equal_MR_RasterInfo()

MRC_API bool MR_equal_MR_RasterInfo ( const MR_RasterInfo * _this,
const MR_RasterInfo * _1 )

Generated from method MR::RasterInfo::operator==. Parameter _this can not be null. It is a single object. Parameter _1 can not be null. It is a single object.

◆ MR_not_equal_MR_RasterInfo()

MRC_API bool MR_not_equal_MR_RasterInfo ( const MR_RasterInfo * _this,
const MR_RasterInfo * _1 )

Generated from method MR::RasterInfo::operator!=. Parameter _this can not be null. It is a single object. Parameter _1 can not be null. It is a single object.

◆ MR_Raster_AssignFromAnother()

MRC_API MR_Raster * MR_Raster_AssignFromAnother ( MR_Raster * _this,
MR_PassBy _other_pass_by,
MR_Raster * _other )

Generated from method MR::Raster::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.

◆ MR_Raster_ConstructFrom()

MRC_API MR_Raster * MR_Raster_ConstructFrom ( const MR_RasterInfo * info,
MR_PassBy data_pass_by,
MR_std_vector_unsigned_char * data )

Constructs MR::Raster elementwise. Parameter info can not be null. It is a single object. The reference to the parameter info might be preserved in the constructed object. The reference to the parameter data might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Raster_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.

◆ MR_Raster_ConstructFromAnother()

MRC_API MR_Raster * MR_Raster_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_Raster * _other )

Generated from constructor MR::Raster::Raster. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_Raster_Destroy() to free it when you're done using it.

◆ MR_Raster_DefaultConstruct()

MRC_API MR_Raster * MR_Raster_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_Raster_Destroy() to free it when you're done using it.

◆ MR_Raster_DefaultConstructArray()

MRC_API MR_Raster * MR_Raster_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_Raster_DestroyArray(). Use MR_Raster_OffsetMutablePtr() and MR_Raster_OffsetPtr() to access the array elements.

◆ MR_Raster_Destroy()

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.

◆ MR_Raster_DestroyArray()

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.

◆ MR_Raster_Get_data()

MRC_API const MR_std_vector_unsigned_char * MR_Raster_Get_data ( const MR_Raster * _this)

values of type info.type: the channels of a pixel go together, x changes first, then y (the rows go from top to bottom, unlike in Image), then z Returns a pointer to a member variable of class MR::Raster named data. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_Raster_Get_info()

MRC_API const MR_RasterInfo * MR_Raster_Get_info ( const MR_Raster * _this)

Returns a pointer to a member variable of class MR::Raster named info. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_Raster_GetMutable_data()

MRC_API MR_std_vector_unsigned_char * MR_Raster_GetMutable_data ( MR_Raster * _this)

values of type info.type: the channels of a pixel go together, x changes first, then y (the rows go from top to bottom, unlike in Image), then z Returns a mutable pointer to a member variable of class MR::Raster named data. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_Raster_GetMutable_info()

MRC_API MR_RasterInfo * MR_Raster_GetMutable_info ( MR_Raster * _this)

Returns a mutable pointer to a member variable of class MR::Raster named info. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_Raster_OffsetMutablePtr()

MRC_API MR_Raster * MR_Raster_OffsetMutablePtr ( MR_Raster * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_Raster_OffsetPtr()

MRC_API const MR_Raster * MR_Raster_OffsetPtr ( const MR_Raster * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_Raster_Set_data()

MRC_API void MR_Raster_Set_data ( MR_Raster * _this,
MR_PassBy value_pass_by,
MR_std_vector_unsigned_char * value )

values of type info.type: the channels of a pixel go together, x changes first, then y (the rows go from top to bottom, unlike in Image), then z Modifies a member variable of class MR::Raster named data. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element data. When this function is called, this object will drop object references it held previously in data.

◆ MR_Raster_Set_info()

MRC_API void MR_Raster_Set_info ( MR_Raster * _this,
const MR_RasterInfo * value )

Modifies a member variable of class MR::Raster named info. Parameter _this can not be null. It is a single object. Parameter value can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element info. When this function is called, this object will drop object references it held previously in info.

◆ MR_RasterInfo_AssignFromAnother()

MRC_API MR_RasterInfo * MR_RasterInfo_AssignFromAnother ( MR_RasterInfo * _this,
const MR_RasterInfo * _other )

Generated from method MR::RasterInfo::operator=. Parameter _this can not be null. It is a single object. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.

◆ MR_RasterInfo_ConstructFrom()

MRC_API MR_RasterInfo * MR_RasterInfo_ConstructFrom ( MR_Vector3i dims,
MR_ScalarType type,
int channels )

Constructs MR::RasterInfo elementwise. The reference to the parameter dims might be preserved in the constructed object. The reference to the parameter type might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterInfo_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.

◆ MR_RasterInfo_ConstructFromAnother()

MRC_API MR_RasterInfo * MR_RasterInfo_ConstructFromAnother ( const MR_RasterInfo * _other)

Generated from constructor MR::RasterInfo::RasterInfo. Parameter _other can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterInfo_Destroy() to free it when you're done using it.

◆ MR_RasterInfo_dataSize()

MRC_API size_t MR_RasterInfo_dataSize ( const MR_RasterInfo * _this)

returns the size of all values in bytes, or the largest size_t value if the size does not fit in size_t, which no data can have Generated from method MR::RasterInfo::dataSize. Parameter _this can not be null. It is a single object.

◆ MR_RasterInfo_DefaultConstruct()

MRC_API MR_RasterInfo * MR_RasterInfo_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterInfo_Destroy() to free it when you're done using it.

◆ MR_RasterInfo_DefaultConstructArray()

MRC_API MR_RasterInfo * MR_RasterInfo_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_RasterInfo_DestroyArray(). Use MR_RasterInfo_OffsetMutablePtr() and MR_RasterInfo_OffsetPtr() to access the array elements.

◆ MR_RasterInfo_Destroy()

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.

◆ MR_RasterInfo_DestroyArray()

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_RasterInfo_Get_channels()

MRC_API const int * MR_RasterInfo_Get_channels ( const MR_RasterInfo * _this)

number of values in each pixel, e.g. 1 for gray values, 3 for RGB colors, 4 for RGBA colors, or any number of bands; convertRasterToImage takes three or more channels as RGB(A) colors, so three or four gray bands look like colors there Returns a pointer to a member variable of class MR::RasterInfo named channels. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterInfo_Get_dims()

MRC_API const MR_Vector3i * MR_RasterInfo_Get_dims ( const MR_RasterInfo * _this)

number of pixels along each axis: x is the width, y is the height, z is the number of layers Returns a pointer to a member variable of class MR::RasterInfo named dims. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterInfo_Get_type()

MRC_API const MR_ScalarType * MR_RasterInfo_Get_type ( const MR_RasterInfo * _this)

type of all values Returns a pointer to a member variable of class MR::RasterInfo named type. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterInfo_GetMutable_channels()

MRC_API int * MR_RasterInfo_GetMutable_channels ( MR_RasterInfo * _this)

number of values in each pixel, e.g. 1 for gray values, 3 for RGB colors, 4 for RGBA colors, or any number of bands; convertRasterToImage takes three or more channels as RGB(A) colors, so three or four gray bands look like colors there Returns a mutable pointer to a member variable of class MR::RasterInfo named channels. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterInfo_GetMutable_dims()

MRC_API MR_Vector3i * MR_RasterInfo_GetMutable_dims ( MR_RasterInfo * _this)

number of pixels along each axis: x is the width, y is the height, z is the number of layers Returns a mutable pointer to a member variable of class MR::RasterInfo named dims. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterInfo_GetMutable_type()

MRC_API MR_ScalarType * MR_RasterInfo_GetMutable_type ( MR_RasterInfo * _this)

type of all values Returns a mutable pointer to a member variable of class MR::RasterInfo named type. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterInfo_OffsetMutablePtr()

MRC_API MR_RasterInfo * MR_RasterInfo_OffsetMutablePtr ( MR_RasterInfo * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_RasterInfo_OffsetPtr()

MRC_API const MR_RasterInfo * MR_RasterInfo_OffsetPtr ( const MR_RasterInfo * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_RasterInfo_Set_channels()

MRC_API void MR_RasterInfo_Set_channels ( MR_RasterInfo * _this,
int value )

number of values in each pixel, e.g. 1 for gray values, 3 for RGB colors, 4 for RGBA colors, or any number of bands; convertRasterToImage takes three or more channels as RGB(A) colors, so three or four gray bands look like colors there Modifies a member variable of class MR::RasterInfo named channels. Parameter _this can not be null. It is a single object. When this function is called, this object will drop object references it held previously in channels.

◆ MR_RasterInfo_Set_dims()

MRC_API void MR_RasterInfo_Set_dims ( MR_RasterInfo * _this,
MR_Vector3i value )

number of pixels along each axis: x is the width, y is the height, z is the number of layers Modifies a member variable of class MR::RasterInfo named dims. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element dims. When this function is called, this object will drop object references it held previously in dims.

◆ MR_RasterInfo_Set_type()

MRC_API void MR_RasterInfo_Set_type ( MR_RasterInfo * _this,
MR_ScalarType value )

type of all values Modifies a member variable of class MR::RasterInfo named type. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element type. When this function is called, this object will drop object references it held previously in type.

◆ MR_RasterLoadSettings_AssignFromAnother()

MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_AssignFromAnother ( MR_RasterLoadSettings * _this,
MR_PassBy _other_pass_by,
MR_RasterLoadSettings * _other )

Generated from method MR::RasterLoadSettings::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.

◆ MR_RasterLoadSettings_ConstructFrom()

MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_ConstructFrom ( MR_AffineXf3f * xf,
MR_PassBy progress_pass_by,
MR_std_function_bool_from_float * progress )

Constructs MR::RasterLoadSettings elementwise. The reference to the parameter xf might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterLoadSettings_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.

◆ MR_RasterLoadSettings_ConstructFromAnother()

MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_RasterLoadSettings * _other )

Generated from constructor MR::RasterLoadSettings::RasterLoadSettings. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterLoadSettings_Destroy() to free it when you're done using it.

◆ MR_RasterLoadSettings_DefaultConstruct()

MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterLoadSettings_Destroy() to free it when you're done using it.

◆ MR_RasterLoadSettings_DefaultConstructArray()

MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_RasterLoadSettings_DestroyArray(). Use MR_RasterLoadSettings_OffsetMutablePtr() and MR_RasterLoadSettings_OffsetPtr() to access the array elements.

◆ MR_RasterLoadSettings_Destroy()

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.

◆ MR_RasterLoadSettings_DestroyArray()

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.

◆ MR_RasterLoadSettings_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_RasterLoadSettings_Get_progress ( const MR_RasterLoadSettings * _this)

to report load progress and cancel loading if user desires Returns a pointer to a member variable of class MR::RasterLoadSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterLoadSettings_Get_xf()

MRC_API MR_AffineXf3f *const * MR_RasterLoadSettings_Get_xf ( const MR_RasterLoadSettings * _this)

optional output: transformation of (column, row, value) to world coordinates if the format stores it (e.g. GeoTIFF), otherwise the identity; (0, 0) is the corner of the first pixel, and (0.5, 0.5) is its center Returns a pointer to a member variable of class MR::RasterLoadSettings named xf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterLoadSettings_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_RasterLoadSettings_GetMutable_progress ( MR_RasterLoadSettings * _this)

to report load progress and cancel loading if user desires Returns a mutable pointer to a member variable of class MR::RasterLoadSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterLoadSettings_GetMutable_xf()

MRC_API MR_AffineXf3f ** MR_RasterLoadSettings_GetMutable_xf ( MR_RasterLoadSettings * _this)

optional output: transformation of (column, row, value) to world coordinates if the format stores it (e.g. GeoTIFF), otherwise the identity; (0, 0) is the corner of the first pixel, and (0.5, 0.5) is its center Returns a mutable pointer to a member variable of class MR::RasterLoadSettings named xf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterLoadSettings_OffsetMutablePtr()

MRC_API MR_RasterLoadSettings * MR_RasterLoadSettings_OffsetMutablePtr ( MR_RasterLoadSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_RasterLoadSettings_OffsetPtr()

MRC_API const MR_RasterLoadSettings * MR_RasterLoadSettings_OffsetPtr ( const MR_RasterLoadSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_RasterLoadSettings_Set_progress()

MRC_API void MR_RasterLoadSettings_Set_progress ( MR_RasterLoadSettings * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to report load progress and cancel loading if user desires Modifies a member variable of class MR::RasterLoadSettings named progress. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element progress. When this function is called, this object will drop object references it held previously in progress.

◆ MR_RasterLoadSettings_Set_xf()

MRC_API void MR_RasterLoadSettings_Set_xf ( MR_RasterLoadSettings * _this,
MR_AffineXf3f * value )

optional output: transformation of (column, row, value) to world coordinates if the format stores it (e.g. GeoTIFF), otherwise the identity; (0, 0) is the corner of the first pixel, and (0.5, 0.5) is its center Modifies a member variable of class MR::RasterLoadSettings named xf. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element xf. When this function is called, this object will drop object references it held previously in xf.

◆ MR_RasterSaveSettings_AssignFromAnother()

MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_AssignFromAnother ( MR_RasterSaveSettings * _this,
MR_PassBy _other_pass_by,
MR_RasterSaveSettings * _other )

Generated from method MR::RasterSaveSettings::operator=. Parameter _this can not be null. It is a single object. The reference to things referred to by the parameter _other (if any) might be preserved in this object. The returned pointer will never be null. It is non-owning, do NOT destroy it. When this function is called, this object will drop any object references it held previously.

◆ MR_RasterSaveSettings_ConstructFrom()

MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_ConstructFrom ( const MR_AffineXf3f * xf,
MR_PassBy progress_pass_by,
MR_std_function_bool_from_float * progress )

Constructs MR::RasterSaveSettings elementwise. The reference to the parameter xf might be preserved in the constructed object. The reference to the parameter progress might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterSaveSettings_Destroy() to free it when you're done using it. When this function is called, this object will drop any object references it held previously.

◆ MR_RasterSaveSettings_ConstructFromAnother()

MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_ConstructFromAnother ( MR_PassBy _other_pass_by,
MR_RasterSaveSettings * _other )

Generated from constructor MR::RasterSaveSettings::RasterSaveSettings. The reference to things referred to by the parameter _other (if any) might be preserved in the constructed object. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterSaveSettings_Destroy() to free it when you're done using it.

◆ MR_RasterSaveSettings_DefaultConstruct()

MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_DefaultConstruct ( void )

Constructs an empty (default-constructed) instance. Never returns null. Returns an instance allocated on the heap! Must call MR_RasterSaveSettings_Destroy() to free it when you're done using it.

◆ MR_RasterSaveSettings_DefaultConstructArray()

MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_DefaultConstructArray ( size_t num_elems)

Constructs an array of empty (default-constructed) instances, of the specified size. Will never return null. The array must be destroyed using MR_RasterSaveSettings_DestroyArray(). Use MR_RasterSaveSettings_OffsetMutablePtr() and MR_RasterSaveSettings_OffsetPtr() to access the array elements.

◆ MR_RasterSaveSettings_Destroy()

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.

◆ MR_RasterSaveSettings_DestroyArray()

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.

◆ MR_RasterSaveSettings_Get_progress()

MRC_API const MR_std_function_bool_from_float * MR_RasterSaveSettings_Get_progress ( const MR_RasterSaveSettings * _this)

to report save progress and cancel saving if user desires Returns a pointer to a member variable of class MR::RasterSaveSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterSaveSettings_Get_xf()

MRC_API const MR_AffineXf3f *const * MR_RasterSaveSettings_Get_xf ( const MR_RasterSaveSettings * _this)

optional transformation of (column, row, value) to world coordinates, saved if the format supports it (e.g. GeoTIFF); (0, 0) is the corner of the first pixel, and (0.5, 0.5) is its center Returns a pointer to a member variable of class MR::RasterSaveSettings named xf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterSaveSettings_GetMutable_progress()

MRC_API MR_std_function_bool_from_float * MR_RasterSaveSettings_GetMutable_progress ( MR_RasterSaveSettings * _this)

to report save progress and cancel saving if user desires Returns a mutable pointer to a member variable of class MR::RasterSaveSettings named progress. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterSaveSettings_GetMutable_xf()

MRC_API const MR_AffineXf3f ** MR_RasterSaveSettings_GetMutable_xf ( MR_RasterSaveSettings * _this)

optional transformation of (column, row, value) to world coordinates, saved if the format supports it (e.g. GeoTIFF); (0, 0) is the corner of the first pixel, and (0.5, 0.5) is its center Returns a mutable pointer to a member variable of class MR::RasterSaveSettings named xf. Parameter _this can not be null. It is a single object. The returned pointer will never be null. It is non-owning, do NOT destroy it. The reference to this object might be preserved as the return value.

◆ MR_RasterSaveSettings_OffsetMutablePtr()

MRC_API MR_RasterSaveSettings * MR_RasterSaveSettings_OffsetMutablePtr ( MR_RasterSaveSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_RasterSaveSettings_OffsetPtr()

MRC_API const MR_RasterSaveSettings * MR_RasterSaveSettings_OffsetPtr ( const MR_RasterSaveSettings * ptr,
ptrdiff_t i )

Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the pointer points to an array element. The reference to the parameter ptr might be preserved in the return value.

◆ MR_RasterSaveSettings_Set_progress()

MRC_API void MR_RasterSaveSettings_Set_progress ( MR_RasterSaveSettings * _this,
MR_PassBy value_pass_by,
MR_std_function_bool_from_float * value )

to report save progress and cancel saving if user desires Modifies a member variable of class MR::RasterSaveSettings named progress. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element progress. When this function is called, this object will drop object references it held previously in progress.

◆ MR_RasterSaveSettings_Set_xf()

MRC_API void MR_RasterSaveSettings_Set_xf ( MR_RasterSaveSettings * _this,
const MR_AffineXf3f * value )

optional transformation of (column, row, value) to world coordinates, saved if the format supports it (e.g. GeoTIFF); (0, 0) is the corner of the first pixel, and (0.5, 0.5) is its center Modifies a member variable of class MR::RasterSaveSettings named xf. Parameter _this can not be null. It is a single object. The reference to the parameter value might be preserved in this object in element xf. When this function is called, this object will drop object references it held previously in xf.