mpi.cbg.fly
Class Point

java.lang.Object
  extended by mpi.cbg.fly.Point

public class Point
extends java.lang.Object

a generic n-dimensional point location keeps local coordinates final, application of a model changes the world coordinates of the point License: GPL This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License 2 as published by the Free Software Foundation. This program 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 this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. NOTE: The SIFT-method is protected by U.S. Patent 6,711,293: "Method and apparatus for identifying scale invariant features in an image and use of same for locating an object in an image" by the University of British Columbia. That is, for commercial applications the permission of the author is required.

Version:
0.1b
Author:
Stephan Saalfeld

Constructor Summary
Point(float[] l)
          Constructor sets this.l to the given float[] reference
 
Method Summary
 void apply(Model model)
          apply a model to the point transfers the local coordinates to new world coordinates
static float distance(Point p1, Point p2)
          estimate the Euclidean distance of two points in the world
 float[] getL()
           
 float[] getW()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point

public Point(float[] l)
Constructor sets this.l to the given float[] reference

Parameters:
l - reference to the local coordinates of the point
Method Detail

getW

public final float[] getW()

getL

public final float[] getL()

apply

public final void apply(Model model)
apply a model to the point transfers the local coordinates to new world coordinates


distance

public static final float distance(Point p1,
                                   Point p2)
estimate the Euclidean distance of two points in the world

Parameters:
p1 -
p2 -
Returns:
Euclidean distance