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

boofcv.abst.feature.describe.DescribePointRadiusAngle 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) 2022, 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.describe;

import boofcv.struct.feature.TupleDesc;
import boofcv.struct.image.ImageBase;
import boofcv.struct.image.ImageType;

/**
 * High level interface for describing the region around a point when given the pixel coordinate of the point,
 * the region's radius, and the regions orientation.
 *
 * @author Peter Abeles
 */
public interface DescribePointRadiusAngle, Desc extends TupleDesc>
		extends DescriptorInfo {
	/**
	 * Specified the image which is to be processed.
	 *
	 * @param image The image which contains the features.
	 */
	void setImage( T image );

	/**
	 * 

Extract a description of the local image at the given point, scale, and orientation.

* *

WARNING: Check the returned value to make sure a description was actually computed. Some implementations * might now allow features to extend outside the image border and will return false.

* * @param x Coordinate of the point. * @param y Coordinate of the point. * @param orientation Direction the feature is pointing at in radians. 0 = x-axis PI/2 = y-axis * @param radius Radius of the detected object in pixels. * @param description (output) Storage for extracted feature. Use {@link #createDescription} to create descriptor. * @return true if a descriptor can be computed or false if not. */ boolean process( double x, double y, double orientation, double radius, Desc description ); /** * If size information is used when computing the descriptor. * * @return true is the radius is used when computing the descriptor or false if not */ boolean isScalable(); /** * True if the descriptor uses orientation information. * * @return if orientation needs to be provided or not */ boolean isOriented(); /** * Description of the type of image it can process * * @return ImageDataType */ ImageType getImageType(); /** * Returns the width of the square (or approximation of) sample region at a scale of one. * When multiplied by the scale, pixels outside of the square region should not influence * the descriptor's value. * * @return width of descriptor at a scale of one */ double getCanonicalWidth(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy