134 std::size_t
maxRadius_{std::numeric_limits<std::size_t>::max()};
Basic signal class for implementing event callbacks.
Base class for segmentation algorithms that create a segmentation by growing from a set of seed point...
ThinnedFloodFillSegmentation.
void setSpurLengthThreshold(int length)
Set the max length of spurs that can be pruned.
void setClosingKernelSize(int s)
Set the kernel size used in the closing operation. Larger kernels close bigger gaps.
ThinnedFloodFillSegmentation(const ThinnedFloodFillSegmentation &)=default
void setDistanceTransformThreshold(float t)
Set the threshold for the distance transform pre-processing operation.
void setDumpVis(bool b)
Debug: Dumps visualizations of the mask and skeleton for each slice to disk.
void setMeasureVertical(bool b)
Set the direction in which the thickness of the page will be measured. If this value is false,...
void setFFHighThreshold(std::uint16_t t)
Set the high threshold for the bounded flood-fill operation.
~ThinnedFloodFillSegmentation() override=default
ThinnedFloodFillSegmentation & operator=(const ThinnedFloodFillSegmentation &)=default
Signal< VoxelMask > maskUpdated
ThinnedFloodFillSegmentation(ThinnedFloodFillSegmentation &&)=default
Signal< PointSet > pointsetUpdated
ThinnedFloodFillSegmentation()=default
Default constructor.
PointSet compute() override
Computes the segmentation.
VoxelMask getMask() const
Return the full, 3D mask.
void setFFLowThreshold(std::uint16_t t)
Set the low threshold for the bounded flood-fill operation.
void setMaxRadius(std::size_t radius)
Set the max radius that a single point can hav when measuring the width of the page.
ThinnedFloodFillSegmentation & operator=(ThinnedFloodFillSegmentation &&)=default
Segmentation algorithms and utilities library