Package sc.fiji.snt.util
Record Class ImgUtils.SliceResult<T extends net.imglib2.type.numeric.RealType<T>>
java.lang.Object
java.lang.Record
sc.fiji.snt.util.ImgUtils.SliceResult<T>
- Type Parameters:
T- pixel type- Record Components:
img- the extracted image slice with preserved metadatachannelIndex- the channel index that was extracted (0-based), or -1 if no channel axis existed or no channel was extractedtimeIndex- the time index that was extracted (0-based), or -1 if no time axis existed or no timepoint was extracted
- Enclosing class:
ImgUtils
public static record ImgUtils.SliceResult<T extends net.imglib2.type.numeric.RealType<T>>(net.imagej.ImgPlus<T extends net.imglib2.type.numeric.RealType<T>> img, int channelIndex, int timeIndex)
extends Record
Result of a channel/time slice extraction from an
ImgPlus.-
Constructor Summary
ConstructorsConstructorDescriptionSliceResult(net.imagej.ImgPlus<T> img, int channelIndex, int timeIndex) Creates an instance of aSliceResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechannelIndexrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.imagej.ImgPlus<T> img()Returns the value of theimgrecord component.intReturns the value of thetimeIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SliceResult
Creates an instance of aSliceResultrecord class.- Parameters:
img- the value for theimgrecord componentchannelIndex- the value for thechannelIndexrecord componenttimeIndex- the value for thetimeIndexrecord component
-
-
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
Returns the value of theimgrecord component.- Returns:
- the value of the
imgrecord component
-
channelIndex
public int channelIndex()Returns the value of thechannelIndexrecord component.- Returns:
- the value of the
channelIndexrecord component
-
timeIndex
public int timeIndex()Returns the value of thetimeIndexrecord component.- Returns:
- the value of the
timeIndexrecord component
-