Class LocalNormalization.SmoothingScale

java.lang.Object
qupath.opencv.tools.LocalNormalization.SmoothingScale
Enclosing class:
LocalNormalization

public static class LocalNormalization.SmoothingScale extends Object
2D or 3D Gaussian scale. See getSigmaZ(PixelCalibration) for the key distinctions.
  • Method Details

    • get2D

      public static LocalNormalization.SmoothingScale get2D(double sigma)
      Get a 2D Gaussian scale.
      Parameters:
      sigma - sigma value for x and y
      Returns:
    • get3DAnisotropic

      public static LocalNormalization.SmoothingScale get3DAnisotropic(double sigma)
      Get a 3D anisotropic Gaussian scale.
      Parameters:
      sigma - sigma value for x, y and z
      Returns:
    • get3DIsotropic

      public static LocalNormalization.SmoothingScale get3DIsotropic(double sigma)
      Get a 3D isotropic Gaussian scale.
      Parameters:
      sigma - sigma value for x, y and z
      Returns:
    • getSigma

      public double getSigma()
      Get the sigma value.
      Returns:
    • getSigmaZ

      public double getSigmaZ(PixelCalibration cal)
      Get the sigma value for the z dimension. This is interpreted depending upon the scale type:
      • if 2D, the result is 0
      • if 3D anisotropic, the result is equivalent to getSigma()
      • if 3D anisotropic, the result is equivalent to getSigma() scaled for isotropic according to the pixel calibration information
      Parameters:
      cal - pixel calibration; this is only relevant is the scale type is 3D isotropic.
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object