Class ModelPointDescriptor<P extends mpicbg.models.Point>
java.lang.Object
net.preibisch.mvrecon.process.pointcloud.pointdescriptor.AbstractPointDescriptor<P,ModelPointDescriptor<P>>
net.preibisch.mvrecon.process.pointcloud.pointdescriptor.ModelPointDescriptor<P>
public class ModelPointDescriptor<P extends mpicbg.models.Point>
extends AbstractPointDescriptor<P,ModelPointDescriptor<P>>
-
Field Summary
Fields inherited from class net.preibisch.mvrecon.process.pointcloud.pointdescriptor.AbstractPointDescriptor
index -
Constructor Summary
ConstructorsConstructorDescriptionModelPointDescriptor(P basisPoint, ArrayList<P> orderedNearestNeighboringPoints, TranslationInvariantModel<?> model, SimilarityMeasure similarityMeasure, Matcher matcher) Creates aModelPointDescriptorthat can perform matching using aModelFor the computational process it only modifies the world coordinates of its own descriptorPoints, thus providing the opportunity for multi-threading. -
Method Summary
Modifier and TypeMethodDescriptionfitMatches(ArrayList<mpicbg.models.PointMatch> matches) Computes a fit between this thesePointMatches, this method is called by theMatcherbooleanTells if the descriptormatching should reset the world coordinates after the matchingbooleanTells if the build up of the descriptor should use the world coordinates or rather the local coordinatesMethods inherited from class net.preibisch.mvrecon.process.pointcloud.pointdescriptor.AbstractPointDescriptor
descriptorDistance, getBasisPoint, getBestPointMatchSet, getDescriptorPoint, getId, getOrderedNearestNeighboringPoints, getSimilarityMeasure, numDimensions, numNeighbors, resetWorldCoordinates, setSimilarityMeasure, toString
-
Constructor Details
-
ModelPointDescriptor
public ModelPointDescriptor(P basisPoint, ArrayList<P> orderedNearestNeighboringPoints, TranslationInvariantModel<?> model, SimilarityMeasure similarityMeasure, Matcher matcher) throws NoSuitablePointsException Creates aModelPointDescriptorthat can perform matching using aModelFor the computational process it only modifies the world coordinates of its own descriptorPoints, thus providing the opportunity for multi-threading.- Parameters:
basisPoint- - the centerPointorderedNearestNeighboringPoints- - thePoints used to create theModelPointDescriptormodel- - theModelthat should be used for matching, it is cloned upon initializationsimilarityMeasure- - which similarity measurematcher- - which matcher to use- Throws:
NoSuitablePointsException- if the dimensionality of thePoints does not fit theModelor the amount ofPoints for theModelis too low
-
-
Method Details
-
fitMatches
Description copied from class:AbstractPointDescriptorComputes a fit between this thesePointMatches, this method is called by theMatcher- Specified by:
fitMatchesin classAbstractPointDescriptor<P extends mpicbg.models.Point,ModelPointDescriptor<P extends mpicbg.models.Point>> - Parameters:
matches- - ThePoints to match- Returns:
- - a transformation
-
resetWorldCoordinatesAfterMatching
public boolean resetWorldCoordinatesAfterMatching()Description copied from class:AbstractPointDescriptorTells if the descriptormatching should reset the world coordinates after the matching- Specified by:
resetWorldCoordinatesAfterMatchingin classAbstractPointDescriptor<P extends mpicbg.models.Point,ModelPointDescriptor<P extends mpicbg.models.Point>> - Returns:
- if reseting world coordinates
-
useWorldCoordinatesForDescriptorBuildUp
public boolean useWorldCoordinatesForDescriptorBuildUp()Description copied from class:AbstractPointDescriptorTells if the build up of the descriptor should use the world coordinates or rather the local coordinates- Specified by:
useWorldCoordinatesForDescriptorBuildUpin classAbstractPointDescriptor<P extends mpicbg.models.Point,ModelPointDescriptor<P extends mpicbg.models.Point>> - Returns:
- - true (world), false(local)
-