Volume Cartographer 2.27.0
|
Generate a Texture using the thickness of the segmented layer. More...
#include <vc/texturing/ThicknessTexture.hpp>
Public Types | |
using | Pointer = std::shared_ptr< ThicknessTexture > |
![]() | |
using | Pointer = std::shared_ptr< TexturingAlgorithm > |
using | Texture = std::vector< cv::Mat > |
Public Member Functions | |
ThicknessTexture ()=default | |
~ThicknessTexture () override=default | |
ThicknessTexture (ThicknessTexture &)=default | |
ThicknessTexture (ThicknessTexture &&)=default | |
auto | operator= (const ThicknessTexture &) -> ThicknessTexture &=default |
auto | operator= (ThicknessTexture &&) -> ThicknessTexture &=default |
void | setSamplingInterval (double i) |
Set the sampling interval. More... | |
auto | samplingInterval () const -> double |
void | setNormalizeOutput (bool b) |
Normalize the output image. More... | |
auto | normalizeOutput () const -> bool |
void | setVolumetricMask (const VolumetricMask::Pointer &m) |
Set the VolumetricMask. | |
auto | volumetricMask () const -> VolumetricMask::Pointer |
Get the VolumetricMask. | |
auto | compute () -> Texture override |
Compute the result. More... | |
![]() | |
virtual | ~TexturingAlgorithm ()=default |
void | setPerPixelMap (PerPixelMap::Pointer ppm) |
Set the input PerPixelMap. | |
void | setVolume (Volume::Pointer vol) |
Set the input Volume. | |
virtual auto | compute () -> Texture=0 |
Compute the Texture. More... | |
auto | getTexture () -> Texture |
Get the generated Texture. | |
auto | progressIterations () const -> std::size_t override |
Returns the maximum progress value. More... | |
virtual std::size_t | progressIterations () const =0 |
Static Public Member Functions | |
static auto | New () -> Pointer |
Private Attributes | |
VolumetricMask::Pointer | mask_ |
double | interval_ {1.0} |
bool | normalize_ {true} |
Additional Inherited Members | |
![]() | |
Signal | progressStarted |
Signal< std::size_t > | progressUpdated |
Signal | progressComplete |
![]() | |
TexturingAlgorithm ()=default | |
TexturingAlgorithm (TexturingAlgorithm &)=default | |
TexturingAlgorithm (TexturingAlgorithm &&)=default | |
auto | operator= (const TexturingAlgorithm &) -> TexturingAlgorithm &=default |
auto | operator= (TexturingAlgorithm &&) -> TexturingAlgorithm &=default |
![]() | |
PerPixelMap::Pointer | ppm_ |
Volume::Pointer | vol_ |
Texture | result_ |
Generate a Texture using the thickness of the segmented layer.
For each point, project bi-directionally along the surface normal until finding the first positive and negative points not in the mask. Thickness is the Euclidean distance between these two points. If setNormalizeOutput is true (default), the returned image will be normalized between [0, 1]. Otherwise, raw distances will be returned.
Returned image is single-channel, 32-bit floating point.
Definition at line 26 of file ThicknessTexture.hpp.
using volcart::texturing::ThicknessTexture::Pointer = std::shared_ptr<ThicknessTexture> |
Pointer type
Definition at line 30 of file ThicknessTexture.hpp.
|
default |
Default constructor
|
overridedefault |
Default destructor
|
default |
Default copy constructor
|
default |
Default move constructor
|
overridevirtual |
Compute the result.
Implements volcart::texturing::TexturingAlgorithm.
|
static |
Make shared pointer
auto volcart::texturing::ThicknessTexture::normalizeOutput | ( | ) | const -> bool |
If true (default), normalize the output image between [0, 1]. Otherwise, return the raw distance values.
|
default |
Default copy operator
|
default |
Default move operator
auto volcart::texturing::ThicknessTexture::samplingInterval | ( | ) | const -> double |
In Volume units, how frequently to check whether a sample is part of the VolumetricMask. In theory, smaller values return more accurate results at the expense of longer runtimes. However, the VolumetricMask does not support sub-voxel mask precision, so improvements will be minimal for interval values < 1.
void volcart::texturing::ThicknessTexture::setNormalizeOutput | ( | bool | b | ) |
Normalize the output image.
If true (default), normalize the output image between [0, 1]. Otherwise, return the raw distance values.
void volcart::texturing::ThicknessTexture::setSamplingInterval | ( | double | i | ) |
Set the sampling interval.
In Volume units, how frequently to check whether a sample is part of the VolumetricMask. In theory, smaller values return more accurate results at the expense of longer runtimes. However, the VolumetricMask does not support sub-voxel mask precision, so improvements will be minimal for interval values < 1.
|
private |
Sampling interval
Definition at line 86 of file ThicknessTexture.hpp.
|
private |
Volumetric mask
Definition at line 84 of file ThicknessTexture.hpp.
|
private |
Normalize output
Definition at line 88 of file ThicknessTexture.hpp.