Volume Cartographer 2.27.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ThicknessTexture.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <memory>
6
9
10namespace volcart::texturing
11{
12
27{
28public:
30 using Pointer = std::shared_ptr<ThicknessTexture>;
31
33 static auto New() -> Pointer;
34
36 ThicknessTexture() = default;
38 ~ThicknessTexture() override = default;
44 auto operator=(const ThicknessTexture&) -> ThicknessTexture& = default;
47
57 void setSamplingInterval(double i);
58
60 [[nodiscard]] auto samplingInterval() const -> double;
61
68 void setNormalizeOutput(bool b);
69
71 [[nodiscard]] auto normalizeOutput() const -> bool;
72
75
77 [[nodiscard]] auto volumetricMask() const -> VolumetricMask::Pointer;
78
80 auto compute() -> Texture override;
81
82private:
86 double interval_{1.0};
88 bool normalize_{true};
89};
90} // namespace volcart::texturing
Stores per-voxel mask information for a volume.
std::shared_ptr< TexturingAlgorithm > Pointer
Generate a Texture using the thickness of the segmented layer.
auto normalizeOutput() const -> bool
auto operator=(const ThicknessTexture &) -> ThicknessTexture &=default
void setVolumetricMask(const VolumetricMask::Pointer &m)
Set the VolumetricMask.
static auto New() -> Pointer
void setNormalizeOutput(bool b)
Normalize the output image.
ThicknessTexture(ThicknessTexture &)=default
auto operator=(ThicknessTexture &&) -> ThicknessTexture &=default
ThicknessTexture(ThicknessTexture &&)=default
auto samplingInterval() const -> double
std::shared_ptr< ThicknessTexture > Pointer
auto volumetricMask() const -> VolumetricMask::Pointer
Get the VolumetricMask.
auto compute() -> Texture override
Compute the result.
void setSamplingInterval(double i)
Set the sampling interval.
Texturing and parameterization algorithms and utilities library.