Package sc.fiji.snt
Record Class SNT.MaterializedCrop
java.lang.Object
java.lang.Record
sc.fiji.snt.SNT.MaterializedCrop
- Record Components:
imp- the eagerly-copied, calibrated,taggedcrop, not yet installed as this session's canvasvoxelMin- the crop's minimum voxel index in the source's own (raw, world-origin-offset-free) grid, per axis - needed bySNT.installMaterializedCrop(MaterializedCrop), together withSNT.getWorldOriginOffset(), to position everyPathrelative to the crop's local gridchannel- the (1-based) channel the crop's pixel data was actually read from - i.e., this session's ownchannelat the timeSNT.buildMaterializedCrop(BoundingBox, boolean)ran. Recorded here becauseSNT.installMaterializedCrop(MaterializedCrop)callsSNT.initialize(ImagePlus)onimp, which resets this session'schannel/framefields to 1/1 (a materialized crop is always single-frame, and single-channel unless built by a script likeMaterialize_Multichannel_Region.groovy, seeSNT.getMaterializedCropChannel()/SNT.getMaterializedCropFrame()), so the crop's true source channel/frame would otherwise be lostframe- the (1-based) frame the crop's pixel data was actually read from - seechannel
- Enclosing class:
SNT
public static record SNT.MaterializedCrop(ij.ImagePlus imp, long[] voxelMin, int channel, int frame)
extends Record
The read-only, EDT-independent half of materializing a region, produced by
SNT.buildMaterializedCrop(BoundingBox) and consumed by
SNT.installMaterializedCrop(MaterializedCrop).-
Constructor Summary
ConstructorsConstructorDescriptionMaterializedCrop(ij.ImagePlus imp, long[] voxelMin, int channel, int frame) Creates an instance of aMaterializedCroprecord class. -
Method Summary
Modifier and TypeMethodDescriptionintchannel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.intframe()Returns the value of theframerecord component.final inthashCode()Returns a hash code value for this object.ij.ImagePlusimp()Returns the value of theimprecord component.final StringtoString()Returns a string representation of this record class.long[]voxelMin()Returns the value of thevoxelMinrecord component.
-
Constructor Details
-
MaterializedCrop
public MaterializedCrop(ij.ImagePlus imp, long[] voxelMin, int channel, int frame) Creates an instance of aMaterializedCroprecord class.
-
-
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 '=='. -
imp
public ij.ImagePlus imp()Returns the value of theimprecord component.- Returns:
- the value of the
imprecord component
-
voxelMin
public long[] voxelMin()Returns the value of thevoxelMinrecord component.- Returns:
- the value of the
voxelMinrecord component
-
channel
public int channel()Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
frame
public int frame()Returns the value of theframerecord component.- Returns:
- the value of the
framerecord component
-