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

plugins.nherve.toolbox.image.feature.SupportRegion Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2010, 2011 Institut Pasteur.
 * 
 * This file is part of NHerve Main Toolbox, which is an ICY plugin.
 * 
 * NHerve Main Toolbox is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * NHerve Main Toolbox is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with NHerve Main Toolbox. If not, see .
 */
package plugins.nherve.toolbox.image.feature;

import java.awt.geom.Rectangle2D;

import plugins.nherve.toolbox.image.feature.region.Pixel;


/**
 * The Interface SupportRegion.
 * 
 * @author Nicolas HERVE - [email protected]
 */
@SuppressWarnings("rawtypes")
public interface SupportRegion extends Iterable {
	
	/**
	 * Gets the center.
	 * 
	 * @return the center
	 */
	T getCenter();
	
	/**
	 * Contains.
	 * 
	 * @param x
	 *            the x
	 * @param y
	 *            the y
	 * @return true, if successful
	 */
	boolean contains(double x, double y);
	
	/**
	 * Gets the bounding box.
	 * 
	 * @return the bounding box
	 */
	Rectangle2D getBoundingBox();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy