48 static std::unique_ptr<MeshLib::Mesh>
convert(
52 std::string
const& array_name =
"Colour");
65 static std::unique_ptr<MeshLib::Mesh>
convert(
67 const double origin[3],
68 const double scalingFactor,
71 std::string
const& array_name =
"Colour");
83 static std::unique_ptr<MeshLib::Mesh>
convert(
84 const double*
const img,
88 std::string
const& array_name =
"Colour");
93 double const*
const img,
97 for (std::size_t k = 0; k < header.
n_depth; k++)
99 std::size_t
const layer_idx = (k * header.
n_rows * header.
n_cols);
100 for (std::size_t i = 0; i < header.
n_cols; i++)
102 std::size_t idx(i * header.
n_rows + layer_idx);
103 for (std::size_t j = 0; j < header.
n_rows; j++)
105 auto val(
static_cast<T
>(img[idx + j]));
106 prop_vec.push_back(val);
110 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.