Package sc.fiji.snt.io
Record Class SpimDataUtils.ChannelData
java.lang.Object
java.lang.Record
sc.fiji.snt.io.SpimDataUtils.ChannelData
- Record Components:
img- the (lazy) full-resolution image of the channelspacing- voxel size at full resolution{sx, sy, sz}(1if unknown)unit- spatial unit, ornullif unknownname- channel namenChannels- number of channels in the dataset
- Enclosing class:
SpimDataUtils
public static record SpimDataUtils.ChannelData(net.imglib2.RandomAccessibleInterval<?> img, double[] spacing, String unit, String name, int nChannels)
extends Record
A single channel of a dataset at its highest resolution, as returned by
SpimDataUtils.openChannel(java.lang.String, int, int).-
Constructor Summary
ConstructorsConstructorDescriptionChannelData(net.imglib2.RandomAccessibleInterval<?> img, double[] spacing, String unit, String name, int nChannels) Creates an instance of aChannelDatarecord 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.net.imglib2.RandomAccessibleInterval<?> img()Returns the value of theimgrecord component.name()Returns the value of thenamerecord component.intReturns the value of thenChannelsrecord component.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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
img
public net.imglib2.RandomAccessibleInterval<?> img()Returns the value of theimgrecord component.- Returns:
- the value of the
imgrecord component
-
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
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
nChannels
public int nChannels()Returns the value of thenChannelsrecord component.- Returns:
- the value of the
nChannelsrecord component
-