analysis.h file
Functions for assorted analysis functions. See Analysis.
Classes
-
struct dip::
SubpixelLocationResult - Contains the result of the function
dip::SubpixelLocation
.
Aliases
-
using dip::
SubpixelLocationArray = std::vector<SubpixelLocationResult> - Contains the result of the functions
dip::SubpixelMaxima
anddip::SubpixelMinima
.
Functions
-
auto dip::
Find(dip::Image const& in, dip::Image const& mask = {}) -> dip::CoordinateArray - Finds the coordinates for all non-zero pixels in the scalar image
in
, optionally constrained to the pixels selected bymask
. -
auto dip::
SubpixelLocation(dip::Image const& in, dip::UnsignedArray const& position, dip::String const& polarity = S::MAXIMUM, dip::String const& method = S::PARABOLIC_SEPARABLE) -> dip::SubpixelLocationResult - Gets coordinates of a local extremum with sub-pixel precision
-
auto dip::
SubpixelMaxima(dip::Image const& in, dip::Image const& mask = {}, dip::String const& method = S::PARABOLIC_SEPARABLE) -> dip::SubpixelLocationArray - Gets coordinates of local maxima with sub-pixel precision
-
auto dip::
SubpixelMinima(dip::Image const& in, dip::Image const& mask = {}, dip::String const& method = S::PARABOLIC_SEPARABLE) -> dip::SubpixelLocationArray - Gets coordinates of local minima with sub-pixel precision
-
auto dip::
MeanShift(dip::Image const& meanShiftVectorResult, dip::FloatArray const& start, dip::dfloat epsilon = 1e-3) -> dip::FloatArray - Finds the coordinates of a local maximum close to
start
-
auto dip::
MeanShift(dip::Image const& meanShiftVectorResult, dip::FloatCoordinateArray const& startArray, dip::dfloat epsilon = 1e-3) -> dip::FloatCoordinateArray - Finds the coordinates of local a maximum close to each point in
startArray
. -
void dip::
GaussianMixtureModel(dip::Image const& in, dip::Image& out, dip::uint dimension = 2, dip::uint numberOfGaussians = 2, dip::uint maxIter = 20, dip::StringSet const& flags = {}) - Determines the parameters for a Gaussian Mixture Model for every line in the image.
-
void dip::
CrossCorrelationFT(dip::Image const& in1, dip::Image const& in2, dip::Image& out, dip::String const& in1Representation = S::SPATIAL, dip::String const& in2Representation = S::SPATIAL, dip::String const& outRepresentation = S::SPATIAL, dip::String const& normalize = S::NORMALIZE) - Calculates the cross-correlation between two images of equal size.
-
void dip::
AutoCorrelationFT(dip::Image const& in, dip::Image& out, dip::String const& inRepresentation = S::SPATIAL, dip::String const& outRepresentation = S::SPATIAL) - Computes the auto-correlation function.
-
auto dip::
FindShift(dip::Image const& in1, dip::Image const& in2, dip::String const& method = S::MTS, dip::dfloat parameter = 0, dip::UnsignedArray maxShift = {}) -> dip::FloatArray - Estimates the (sub-pixel) global shift between
in1
andin2
. -
auto dip::
FourierMellinMatch2D(dip::Image const& in1, dip::Image const& in2, dip::Image& out, dip::String const& interpolationMethod = S::LINEAR, dip::String const& correlationMethod = S::PHASE) -> dip::FloatArray - Finds the scaling, translation and rotation between two 2D images using the Fourier Mellin transform
-
void dip::
StructureTensor(dip::Image const& in, dip::Image const& mask, dip::Image& out, dip::FloatArray const& gradientSigmas = {1.0}, dip::FloatArray const& tensorSigmas = {5.0}, dip::String const& method = S::BEST, dip::StringArray const& boundaryCondition = {}, dip::dfloat truncation = 3) - Computes the structure tensor.
-
void dip::
StructureTensorAnalysis2D(dip::Image const& in, dip::Image* l1 = nullptr, dip::Image* l2 = nullptr, dip::Image* orientation = nullptr, dip::Image* energy = nullptr, dip::Image* anisotropy1 = nullptr, dip::Image* anisotropy2 = nullptr, dip::Image* curvature = nullptr) - Computes useful image parameters from the 2D structure tensor.
-
void dip::
StructureTensorAnalysis3D(dip::Image const& in, dip::Image* l1 = nullptr, dip::Image* phi1 = nullptr, dip::Image* theta1 = nullptr, dip::Image* l2 = nullptr, dip::Image* phi2 = nullptr, dip::Image* theta2 = nullptr, dip::Image* l3 = nullptr, dip::Image* phi3 = nullptr, dip::Image* theta3 = nullptr, dip::Image* energy = nullptr, dip::Image* cylindrical = nullptr, dip::Image* planar = nullptr) - Computes useful image parameters from the 3D structure tensor.
-
void dip::
StructureTensorAnalysis(dip::Image const& in, dip::ImageRefArray& out, dip::StringArray const& outputs) - Interface to
dip::StructureTensorAnalysis2D
anddip::StructureTensorAnalysis3D
. -
auto dip::
StructureAnalysis(dip::Image const& in, dip::Image const& mask, std::vector<dfloat> const& scales = {}, dip::String const& feature = "energy", dip::FloatArray const& gradientSigmas = {1.0}, dip::String const& method = S::BEST, dip::StringArray const& boundaryCondition = {}, dip::dfloat truncation = 3) -> dip::Distribution - Analyzes the local structure of the image at multiple scales.
-
void dip::
MonogenicSignal(dip::Image const& in, dip::Image& out, dip::FloatArray const& wavelengths = {3.0,24.0}, dip::dfloat bandwidth = 0.41, dip::String const& inRepresentation = S::SPATIAL, dip::String const& outRepresentation = S::SPATIAL) - Computes the monogenic signal, a multi-dimensional generalization of the analytic signal.
-
void dip::
MonogenicSignalAnalysis(dip::Image const& in, dip::ImageRefArray& out, dip::StringArray const& outputs, dip::dfloat noiseThreshold = 0.2, dip::dfloat frequencySpreadThreshold = 0.5, dip::dfloat sigmoidParameter = 10, dip::dfloat deviationGain = 1.5, dip::String const& polarity = S::BOTH) - Computes useful image parameters from the monogenic signal.
-
void dip::
OrientationSpace(dip::Image const& in, dip::Image& out, dip::uint order = 8, dip::dfloat radCenter = 0.1, dip::dfloat radSigma = 0.8, dip::uint orientations = 0) - Creates an orientation space for a 2D image
-
auto dip::
PairCorrelation(dip::Image const& object, dip::Image const& mask, dip::Random& random, dip::uint probes = 1000000, dip::uint length = 100, dip::String const& sampling = S::RANDOM, dip::StringSet const& options = {}) -> dip::Distribution - Estimates the pair correlation function of the different phases in
object
. -
auto dip::
PairCorrelation(dip::Image const& object, dip::Image const& mask, dip::uint probes = 1000000, dip::uint length = 100, dip::String const& sampling = S::RANDOM, dip::StringSet const& options = {}) -> dip::Distribution - like above, using a default-initialized
dip::Random
object. -
auto dip::
ProbabilisticPairCorrelation(dip::Image const& phases, dip::Image const& mask, dip::Random& random, dip::uint probes = 1000000, dip::uint length = 100, dip::String const& sampling = S::RANDOM, dip::StringSet const& options = {}) -> dip::Distribution - Estimates the probabilistic pair correlation function of the different phases in
phases
. -
auto dip::
ProbabilisticPairCorrelation(dip::Image const& object, dip::Image const& mask, dip::uint probes = 1000000, dip::uint length = 100, dip::String const& sampling = S::RANDOM, dip::StringSet const& options = {}) -> dip::Distribution - like above, using a default-initialized
dip::Random
object. -
auto dip::
Semivariogram(dip::Image const& in, dip::Image const& mask, dip::Random& random, dip::uint probes = 1000000, dip::uint length = 100, dip::String const& sampling = S::RANDOM) -> dip::Distribution - Estimates the expected value of half the square difference between field values at a distance
d
. -
auto dip::
Semivariogram(dip::Image const& object, dip::Image const& mask, dip::uint probes = 1000000, dip::uint length = 100, dip::String const& sampling = S::RANDOM) -> dip::Distribution - like above, using a default-initialized
dip::Random
object. -
auto dip::
ChordLength(dip::Image const& object, dip::Image const& mask, dip::Random& random, dip::uint probes = 100000, dip::uint length = 100, dip::String const& sampling = S::RANDOM) -> dip::Distribution - Estimates the chord length distribution of the different phases in
object
. -
auto dip::
ChordLength(dip::Image const& object, dip::Image const& mask, dip::uint probes = 100000, dip::uint length = 100, dip::String const& sampling = S::RANDOM) -> dip::Distribution - like above, using a default-initialized
dip::Random
object. -
auto dip::
DistanceDistribution(dip::Image const& object, dip::Image const& region, dip::uint length = 100) -> dip::Distribution - Computes the distribution of distances to the background of
region
for the different phases inobject
. -
auto dip::
Granulometry(dip::Image const& in, dip::Image const& mask, std::vector<dfloat> const& scales = {}, dip::String const& type = "isotropic", dip::String const& polarity = S::OPENING, dip::StringSet const& options = {}) -> dip::Distribution - Computes the granulometric function for an image
-
auto dip::
FractalDimension(dip::Image const& in, dip::dfloat eta = 0.5) -> dip::dfloat - Estimates the fractal dimension of the binary image
in
the sliding box method.