90 std::size_t
maxRadius_{std::numeric_limits<std::size_t>::max()};
std::shared_ptr< Volume > Pointer
std::shared_ptr< VolumetricMask > Pointer
Compute a VolumetricMask from a PointSet.
void setPointSet(const PointSet &ps)
Set the input PointSet.
void setLowThreshold(std::uint16_t t)
Set the low threshold for the bounded flood-fill operation.
std::size_t progressIterations() const override
Returns the maximum progress value.
void setMeasureVertical(bool b)
Set the direction in which the thickness of the page will be measured. If this value is false,...
void setMaxRadius(std::size_t radius)
Set the max radius that a single point can hav when measuring the width of the page.
VolumetricMask::Pointer compute()
Computes the segmentation.
VolumetricMask::Pointer getMask() const
Return the full, 3D mask.
void setEnableClosing(bool b)
If enabled, apply a morphological closing kernel to the mask.
VolumetricMask::Pointer mask_
void setClosingKernelSize(int s)
Set the kernel size used in the closing operation. Larger kernels close bigger gaps.
void setVolume(const Volume::Pointer &v)
Set the input Volume.
void setHighThreshold(std::uint16_t t)
Set the high threshold for the bounded flood-fill operation.
Segmentation algorithms and utilities library
Mixin type for classes which report their progress.