All Downloads are FREE. Search and download functionalities are using the official Maven repository.

boofcv.abst.feature.associate.AssociateThreeDescription Maven / Gradle / Ivy

Go to download

BoofCV is an open source Java library for real-time computer vision and robotics applications.

The newest version!
/*
 * Copyright (c) 2021, Peter Abeles. All Rights Reserved.
 *
 * This file is part of BoofCV (http://boofcv.org).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package boofcv.abst.feature.associate;

import boofcv.struct.feature.AssociatedTripleIndex;
import boofcv.struct.feature.MatchScoreType;
import org.ddogleg.struct.DogArray;
import org.ddogleg.struct.DogArray_I32;
import org.ddogleg.struct.FastAccess;

/**
 * 

* Common interface for associating features between three images. *

* * @author Peter Abeles */ public interface AssociateThreeDescription { /** * Must call first. It specifies the number of sets feature descriptors can belong inside of */ void initialize( int numberOfSets ); /** * Specify descriptors in image A * * @param features (Input) feature descriptors. Reference is saved. * @param sets (Input) Which sets the features belong to. Reference is saved. */ void setFeaturesA( FastAccess features, DogArray_I32 sets ); /** * Specify descriptors in image B * * @param features feature descriptors. Reference is saved. * @param sets (Input) Which sets the features belong to. Reference is saved. */ void setFeaturesC( FastAccess features, DogArray_I32 sets ); /** * Specify descriptors in image C * * @param features feature descriptors. Reference is saved. * @param sets (Input) Which sets the features belong to. Reference is saved. */ void setFeaturesB( FastAccess features, DogArray_I32 sets ); /** * Finds the best match for each item in the source list with an item in the destination list. */ void associate(); /** * List of associated features. Indexes refer to the index inside the input lists. * * @return List of associated features. */ DogArray getMatches(); /** * Associations are only considered if their score is less than or equal to the specified threshold. To remove * any threshold test set this value to Double.MAX_VALUE * * @param score The threshold. */ void setMaxScoreThreshold( double score ); /** * Specifies the type of score which is returned. * * @return Type of association score. */ MatchScoreType getScoreType(); /** * If true then each feature is associated at most one time */ boolean isEachFeatureAssociatedOnlyOnce(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy