Package sc.fiji.snt.util
Record Class ImgUtils.OmeZarrCalibration
java.lang.Object
java.lang.Record
sc.fiji.snt.util.ImgUtils.OmeZarrCalibration
- Record Components:
spacing- the level 0 voxel size along X, Y and Zunit- the OME-NGFF unit name of the spatial axes (e.g., "micrometer"), or null if not set
- Enclosing class:
ImgUtils
The spatial calibration stored in the metadata of an OME-Zarr
-
Constructor Summary
ConstructorsConstructorDescriptionOmeZarrCalibration(double[] spacing, String unit) Creates an instance of aOmeZarrCalibrationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]spacing()Returns the value of thespacingrecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
spacing
public double[] spacing()Returns the value of thespacingrecord component.- Returns:
- the value of the
spacingrecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-