measurement.h file
Functionality for quantification of objects. See Measurement.
Namespaces
- namespace dip::
Feature - Contains classes that implement the measurement features.
Classes
-
struct dip::
Feature:: Information - Information about a measurement feature
-
struct dip::
Feature:: ValueInformation - Information about a measurement value, one of the components of a feature
-
class dip::
Feature:: Base abstract - The pure virtual base class for all measurement features.
-
class dip::
Feature:: LineBased abstract - The pure virtual base class for all line-based measurement features.
-
class dip::
Feature:: ImageBased abstract - The pure virtual base class for all image-based measurement features.
-
class dip::
Feature:: ChainCodeBased abstract - The pure virtual base class for all chain-code–based measurement features.
-
class dip::
Feature:: PolygonBased abstract - The pure virtual base class for all polygon-based measurement features.
-
class dip::
Feature:: ConvexHullBased abstract - The pure virtual base class for all convex-hull–based measurement features.
-
class dip::
Feature:: Composite abstract - The pure virtual base class for all composite measurement features.
-
class dip::
Measurement - Contains measurement results, as obtained through
dip::MeasurementTool::Measure
. -
class dip::
MeasurementTool - Performs measurements on images.
Aliases
-
using dip::
Feature:: InformationArray = std::vector<Information> - Information about the known measurement features
-
using dip::
Feature:: ValueInformationArray = std::vector<ValueInformation> - Information about the values of a measurement feature, or all values of all measurement features
in a
dip::Measurement
object. -
using dip::
ObjectIdToIndexMap = tsl::robin_map<dip::uint, dip::uint> - Maps object IDs to object indices
Enums
-
enum class dip::
Feature:: Type: uint8{ LINE_BASED, IMAGE_BASED, CHAINCODE_BASED, POLYGON_BASED, CONVEXHULL_BASED, COMPOSITE } - The types of measurement features
Functions
-
void dip::
ObjectToMeasurement(dip::Image const& label, dip::Image& out, dip::Measurement::IteratorFeature const& featureValues) - Paints each object with the selected measurement feature values.
-
void dip::
MeasurementWriteCSV(dip::Measurement const& measurement, dip::String const& filename, dip::StringSet const& options = {}) - Writes a
dip::Measurement
structure to a CSV file. -
auto dip::
Minimum(dip::Measurement::IteratorFeature const& featureValues) -> dip::Measurement::ValueType - Returns the smallest feature value in the first column of
featureValues
. -
auto dip::
Maximum(dip::Measurement::IteratorFeature const& featureValues) -> dip::Measurement::ValueType - Returns the largest feature value in the first column of
featureValues
. -
auto dip::
Percentile(dip::Measurement::IteratorFeature const& featureValues, dip::dfloat percentile) -> dip::Measurement::ValueType - Returns the
percentile
feature value in the first column offeatureValues
. -
auto dip::
Median(dip::Measurement::IteratorFeature const& featureValues) -> dip::dfloat - Returns the median feature value in the first column of
featureValues
. -
auto dip::
Mean(dip::Measurement::IteratorFeature const& featureValues) -> dip::dfloat - Returns the mean feature value in the first column of
featureValues
. -
auto dip::
MaximumAndMinimum(dip::Measurement::IteratorFeature const& featureValues) -> dip::MinMaxAccumulator - Returns the maximum and minimum feature values in the first column of
featureValues
. -
auto dip::
Quartiles(dip::Measurement::IteratorFeature const& featu) -> dip::QuartilesResult - Computes the minimum, lower quartile (25th percentile), median (50th percentile), upper quartile (75th percentile), and maximum.
-
auto dip::
SampleStatistics(dip::Measurement::IteratorFeature const& featureValues) -> dip::StatisticsAccumulator - Returns the first four central moments of the feature values in the first column of
featureValues
. -
auto dip::
ObjectMinimum(dip::Measurement::IteratorFeature const& featureValues) -> dip::uint - Returns the object ID with the smallest feature value in the first column of
featureValues
. -
auto dip::
ObjectMaximum(dip::Measurement::IteratorFeature const& featureValues) -> dip::uint - Returns the object ID with the largest feature value in the first column of
featureValues
.
Operators
-
auto dip::
operator+(dip::Measurement const& lhs, dip::Measurement const& rhs) -> dip::Measurement - The
+
operator merges twodip::Measurement
objects. -
auto dip::
operator<<(std::ostream& os, dip::Measurement const& measurement) -> std::ostream& - You can output a
dip::Measurement
tostd::cout
or any other stream to produce a human-readable representation of the tabular data in it. -
auto dip::
operator==(dip::Measurement::IteratorFeature const& featureValues, dip::Measurement::ValueType value) -> dip::LabelMap - Selects objects where the first element of
featureValues
is equal tovalue
. -
auto dip::
operator!=(dip::Measurement::IteratorFeature const& featureValues, dip::Measurement::ValueType value) -> dip::LabelMap - Selects objects where the first element of
featureValues
is unequal tovalue
. -
auto dip::
operator>(dip::Measurement::IteratorFeature const& featureValues, dip::Measurement::ValueType value) -> dip::LabelMap - Selects objects where the first element of
featureValues
is greater thanvalue
. -
auto dip::
operator>=(dip::Measurement::IteratorFeature const& featureValues, dip::Measurement::ValueType value) -> dip::LabelMap - Selects objects where the first element of
featureValues
is not smaller thanvalue
. -
auto dip::
operator<(dip::Measurement::IteratorFeature const& featureValues, dip::Measurement::ValueType value) -> dip::LabelMap - Selects objects where the first element of
featureValues
is smaller thanvalue
. -
auto dip::
operator<=(dip::Measurement::IteratorFeature const& featureValues, dip::Measurement::ValueType value) -> dip::LabelMap - Selects objects where the first element of
featureValues
is not greater thanvalue
.