47 static std::unique_ptr<MeshLib::Mesh>
convert(
51 std::string
const& array_name =
"Colour");
64 static std::unique_ptr<MeshLib::Mesh>
convert(
66 const double origin[3],
67 const double scalingFactor,
70 std::string
const& array_name =
"Colour");
82 static std::unique_ptr<MeshLib::Mesh>
convert(
83 const double*
const img,
87 std::string
const& array_name =
"Colour");
92 double const*
const img,
96 for (std::size_t k = 0; k < header.
n_depth; k++)
98 std::size_t
const layer_idx = (k * header.
n_rows * header.
n_cols);
99 for (std::size_t i = 0; i < header.
n_cols; i++)
101 std::size_t idx(i * header.
n_rows + layer_idx);
102 for (std::size_t j = 0; j < header.
n_rows; j++)
104 auto val(
static_cast<T
>(img[idx + j]));
105 prop_vec.push_back(val);
109 prop_vec.push_back(val);
Definition of mesh-related Enumerations.
Definition of the class Properties that implements a container of properties.
Definition of the GeoLib::Raster class.
Class Raster is used for managing raster data.
UseIntensityAs
Selection of possible interpretations for intensities.
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.