Class MultiscaleFeatures.MultiscaleResultsBuilder
- Enclosing class:
- MultiscaleFeatures
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classHelper map implementation that provides access toMultiscaleFeatures.Hessianif needed.
- 
Constructor SummaryConstructorsConstructorDescriptionDefault constructor.Constructor prepared to calculate specified features.
- 
Method SummaryModifier 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- 
MultiscaleResultsBuilderpublic MultiscaleResultsBuilder()Default constructor.
- 
MultiscaleResultsBuilderConstructor prepared to calculate specified features.- Parameters:
- features-
 
 
- 
- 
Method Details- 
gaussianSmoothedCalculate the Gaussian-smoothed image.- Parameters:
- calculate-
- Returns:
 
- 
paddingXYSpecify 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:
 
- 
weightedStdDevCalculate a Gaussian-weighted standard deviation.- Parameters:
- calculate-
- Returns:
 
- 
gradientMagnitudeCalculate the gradient magnitude.- Parameters:
- calculate-
- Returns:
 
- 
structureTensorEigenvaluesCalculate the eigenvalues of the structure tensor (not yet implemented!).- Parameters:
- calculate-
- Returns:
 
- 
laplacianOfGaussianCalculate the Laplacian of Gaussian image.- Parameters:
- calculate-
- Returns:
 
- 
hessianEigenvaluesCalculate the eigenvalues of the Hessian matrix per pixel.- Parameters:
- calculate-
- Returns:
 
- 
retainHessianOptionally retain the Hessian matrix per pixel. This provides an opportunity to request eigenvectors, and/or to sort eigenvalues by absolute value.- Parameters:
- retain-
- Returns:
 
- 
hessianDeterminantCalculate the determinant of the Hessian matrix per pixel.- Parameters:
- calculate-
- Returns:
 
- 
pixelCalibrationpublic 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 PixelCalibrationobject and specify the level of downsampling (rather than need to create a new scaledPixelCalibration).- Parameters:
- cal-
- downsampleXY-
- Returns:
- See Also:
 
- 
sigmaXYSet 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:
 
- 
sigmaXSet 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:
 
- 
sigmaYSet 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:
 
- 
sigmaZSet 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:
 
- 
buildCalculate results for a single Mat.- Parameters:
- mat-
- Returns:
 
- 
buildCalculate 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-stack
- ind- the index of the slice to use
- Returns:
 
- 
buildCalculate results as a list of maps connecting features and Mats for all slices of a z-stack.- Parameters:
- mats-
- Returns:
 
 
-