Class InterestPointsN5.InterestPointData
java.lang.Object
net.preibisch.mvrecon.fiji.spimdata.interestpoints.InterestPointsN5.InterestPointData
- All Implemented Interfaces:
Serializable
- Enclosing class:
InterestPointsN5
Serializable data container for interest points and correspondences.
Enables Spark-compatible parallel saving by containing only primitive/serializable data.
Uses zero-copy references to internal arrays of InterestPointsN5.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInterestPointData(int timepointId, int setupId, String label, int[] ids, double[][] locations, ArrayList<CorrespondingInterestPoints> correspondences) -
Method Summary
Modifier and TypeMethodDescriptionfrom(mpicbg.spim.data.sequence.ViewId viewId, String label, InterestPointsN5 ips) Extract data from an InterestPointsN5 object by direct reference (zero-copy).booleanboolean
-
Field Details
-
timepointId
public final int timepointId -
setupId
public final int setupId -
label
-
ids
public final int[] ids -
locations
public final double[][] locations -
correspondences
-
-
Constructor Details
-
InterestPointData
public InterestPointData(int timepointId, int setupId, String label, int[] ids, double[][] locations, ArrayList<CorrespondingInterestPoints> correspondences)
-
-
Method Details
-
from
public static InterestPointsN5.InterestPointData from(mpicbg.spim.data.sequence.ViewId viewId, String label, InterestPointsN5 ips) Extract data from an InterestPointsN5 object by direct reference (zero-copy). Triggers lazy loading if data hasn't been loaded from disk yet.- Parameters:
viewId- The ViewIdlabel- Interest point labelips- InterestPointsN5 object to reference data from- Returns:
- InterestPointData referencing the internal arrays directly
-
hasInterestPoints
public boolean hasInterestPoints() -
hasCorrespondences
public boolean hasCorrespondences()
-