40 static std::unique_ptr<MeshLib::Mesh>
convert(
44 std::string
const& array_name =
"Colour");
57 static std::unique_ptr<MeshLib::Mesh>
convert(
59 const double origin[3],
60 const double scalingFactor,
63 std::string
const& array_name =
"Colour");
75 static std::unique_ptr<MeshLib::Mesh>
convert(
76 const double*
const img,
80 std::string
const& array_name =
"Colour");
85 double const*
const img,
89 for (std::size_t k = 0; k < header.
n_depth; k++)
91 std::size_t
const layer_idx = (k * header.
n_rows * header.
n_cols);
92 for (std::size_t i = 0; i < header.
n_cols; i++)
94 std::size_t idx(i * header.
n_rows + layer_idx);
95 for (std::size_t j = 0; j < header.
n_rows; j++)
97 auto val(
static_cast<T
>(img[idx + j]));
Class Raster is used for managing raster data.
constexpr void push_back(const PROP_VAL_TYPE &value)
UseIntensityAs
Selection of possible interpretations for intensities.
MeshElemType
Types of mesh elements supported by OpenGeoSys. Values are from VTKCellType enum.