MeshLib
 
Loading...
Searching...
No Matches
MRScalarConvert.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVoxelsFwd.h"
4
5namespace MR
6{
7
9enum class ScalarType
10{
11 UInt8,
12 Int8,
13 UInt16,
14 Int16,
15 UInt32,
16 Int32,
17 UInt64,
18 Int64,
19 Float32,
20 Float64,
21 Float32_4,
22 Unknown,
23 Count
24};
25
30MRVOXELS_API std::function<float ( const char* )> getTypeConverter( ScalarType scalarType, uint64_t range, int64_t min );
31
32} // namespace MR
#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
Definition MRCameraOrientationPlugin.h:8
MRVOXELS_API std::function< float(const char *)> getTypeConverter(ScalarType scalarType, uint64_t range, int64_t min)
ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:10
@ Float32_4
the last value from float[4]