Volume Cartographer 2.27.0
StructureTensorParticleSim.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <cstddef>
6
7#include <opencv2/core.hpp>
8
12
14{
26{
27public:
32 ~StructureTensorParticleSim() override = default;
38
45
52 void setRKStepSize(double s) { rkStepSize_ = s; }
57 PointSet compute() override;
61 std::size_t progressIterations() const override;
62
63private:
67 double springConstantK_{-0.5};
69 double materialThickness_{100};
71 int radius_{5};
72
75
80 double rkStepSize_{0.5};
81
84
87
90
93};
94} // namespace volcart::segmentation
Base class for segmentation algorithms that propagate a collected chain of points.
A simple class for tracking a list of offset vectors ("forces")
Definition: ForceChain.hpp:24
A simple class for keeping track of a connected chain of Particle objects.
Structure Tensor Particle Simulation (STPS) segmentation.
PointSet compute() override
Compute the segmentation.
void setMaterialThickness(double m)
Set the estimated thickness of the substrate (in um)
std::size_t progressIterations() const override
void setRKStepSize(double s)
Set the Runge-Kutta step size.
void setPropagationScaleFactor(double g)
Set the propagation force scale factor.
ForceChain calc_spring_forces_(ParticleChain c)
StructureTensorParticleSim()=default
Default constructor.
Segmentation algorithms and utilities library