Class MultiscaleFeatures.MultiscaleResultsBuilder
- Enclosing class:
MultiscaleFeatures
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Helper map implementation that provides access toMultiscaleFeatures.Hessian
if needed. -
Constructor Summary
ConstructorDescriptionDefault constructor.Constructor prepared to calculate specified features. -
Method Summary
Modifier and TypeMethodDescriptionCalculate results as a list of maps connecting features and Mats for all slices of a z-stack.Calculate results for a map of features and Mats for one slice of a z-stack.Calculate results for a single Mat.gaussianSmoothed
(boolean calculate) Calculate the Gaussian-smoothed image.gradientMagnitude
(boolean calculate) Calculate the gradient magnitude.hessianDeterminant
(boolean calculate) Calculate the determinant of the Hessian matrix per pixel.hessianEigenvalues
(boolean calculate) Calculate the eigenvalues of the Hessian matrix per pixel.laplacianOfGaussian
(boolean calculate) Calculate the Laplacian of Gaussian image.paddingXY
(int padding) Specify the number of pixels that the input image is padded (left, right, above, below).pixelCalibration
(PixelCalibration cal, double downsampleXY) Set the pixel calibration, with optional x,y scaling.retainHessian
(boolean retain) Optionally retain the Hessian matrix per pixel.sigmaX
(double sigma) Set all Gaussian sigma values for the horizontal filter.sigmaXY
(double sigma) Set all Gaussian sigma values (x, y) to the same value.sigmaY
(double sigma) Set all Gaussian sigma values for the vertical filter.sigmaZ
(double sigma) Set all Gaussian sigma values for the z-dimension filter.structureTensorEigenvalues
(boolean calculate) Calculate the eigenvalues of the structure tensor (not yet implemented!).weightedStdDev
(boolean calculate) Calculate a Gaussian-weighted standard deviation.
-
Constructor Details
-
MultiscaleResultsBuilder
public MultiscaleResultsBuilder()Default constructor. -
MultiscaleResultsBuilder
Constructor prepared to calculate specified features.- Parameters:
features
-
-
-
Method Details
-
gaussianSmoothed
Calculate the Gaussian-smoothed image.- Parameters:
calculate
-- Returns:
-
paddingXY
Specify the number of pixels that the input image is padded (left, right, above, below). This padding will be stripped prior to outputting the results. Default is 0.- Parameters:
padding
-- Returns:
-
weightedStdDev
Calculate a Gaussian-weighted standard deviation.- Parameters:
calculate
-- Returns:
-
gradientMagnitude
Calculate the gradient magnitude.- Parameters:
calculate
-- Returns:
-
structureTensorEigenvalues
Calculate the eigenvalues of the structure tensor (not yet implemented!).- Parameters:
calculate
-- Returns:
-
laplacianOfGaussian
Calculate the Laplacian of Gaussian image.- Parameters:
calculate
-- Returns:
-
hessianEigenvalues
Calculate the eigenvalues of the Hessian matrix per pixel.- Parameters:
calculate
-- Returns:
-
retainHessian
Optionally retain the Hessian matrix per pixel. This provides an opportunity to request eigenvectors, and/or to sort eigenvalues by absolute value.- Parameters:
retain
-- Returns:
-
hessianDeterminant
Calculate the determinant of the Hessian matrix per pixel.- Parameters:
calculate
-- Returns:
-
pixelCalibration
public MultiscaleFeatures.MultiscaleResultsBuilder pixelCalibration(PixelCalibration cal, double downsampleXY) Set the pixel calibration, with optional x,y scaling.If available, this will convert the units in which Gaussian sigma values are applied. This helps apply an isotropic filtering more easily, by specifying a single sigma value and supplying the pixel calibration so that any differences in pixel dimensions is automatically adjusted for.
DownsampleXY may be further used to scale the pixel units, meaning that even when working with a downsampled image it is possible to pass the original
PixelCalibration
object and specify the level of downsampling (rather than need to create a new scaledPixelCalibration
).- Parameters:
cal
-downsampleXY
-- Returns:
- See Also:
-
sigmaXY
Set all Gaussian sigma values (x, y) to the same value.Note that this value is in pixels by default, or may be microns is supported by setting the pixel calibration.
- Parameters:
sigma
-- Returns:
- See Also:
-
sigmaX
Set all Gaussian sigma values for the horizontal filter.Note that this value is in pixels by default, or may be microns is supported by setting the pixel calibration.
- Parameters:
sigma
-- Returns:
- See Also:
-
sigmaY
Set all Gaussian sigma values for the vertical filter.Note that this value is in pixels by default, or may be microns is supported by setting the pixel calibration.
- Parameters:
sigma
-- Returns:
- See Also:
-
sigmaZ
Set all Gaussian sigma values for the z-dimension filter.Note that this value is in pixels by default, or may be microns is supported by setting the pixel calibration.
- Parameters:
sigma
-- Returns:
- See Also:
-
build
Calculate results for a single Mat.- Parameters:
mat
-- Returns:
-
build
Calculate results for a map of features and Mats for one slice of a z-stack.- Parameters:
mats
- a list of mats, one for each slice of the z-stackind
- the index of the slice to use- Returns:
-
build
Calculate results as a list of maps connecting features and Mats for all slices of a z-stack.- Parameters:
mats
-- Returns:
-