public interface VoxelStatistics
Modifier and Type | Method and Description |
---|---|
long |
countThreshold(RelationToThreshold relationToThreshold)
Counts the number of voxels that exist, relative to a threshold.
|
Histogram |
histogram()
A
Histogram of all voxel values. |
default double |
mean()
The mean of all voxel values.
|
double |
quantile(double quantile)
The voxel value corresponding to a particular quantile.
|
long |
size()
The total count.
|
default double |
stdDev()
The standard-deviation of all voxel values.
|
long |
sum()
The sum of all voxel values.
|
long |
sumOfSquares()
The sum of the square of all voxel values.
|
VoxelStatistics |
threshold(RelationToThreshold relationToThreshold)
Derives statistics only of the voxels that satisfy a condition, relative to a threshold.
|
default double |
variance()
The variance of all voxel values.
|
long size()
long sum()
long sumOfSquares()
VoxelStatistics threshold(RelationToThreshold relationToThreshold)
relationToThreshold
- the condition that must be satisfied for voxels to be included in
the statistics.VoxelStatistics
pertaining only to the voxels that satisfy the
condition.double quantile(double quantile) throws OperationFailedException
quantile
- the quantile, which should always be >= 0
and <= 1
.OperationFailedException
- if quantile
is out-of-range.UnsupportedOperationException
- if the operation is unsupported.Histogram histogram() throws OperationFailedException
Histogram
of all voxel values.OperationFailedException
- if a histogram cannot be created.long countThreshold(RelationToThreshold relationToThreshold)
This methods conveniently avoids overhead with assigning new memory when counting.
relationToThreshold
- defines the relation to a threshold e.g. above a number, or below
a number.relationToThreshold
.default double mean()
default double variance()
default double stdDev()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.