mpi.cbg.fly
Class SIFT

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

public class SIFT
extends java.lang.Object


Constructor Summary
SIFT()
           
 
Method Summary
static java.util.Vector<PointMatch> createMatches(java.util.List<Feature> fs1, java.util.List<Feature> fs2, float max_sd, Model model, float max_id)
          identify corresponding features using spatial constraints
static int fdbins()
           
static void fdbins(int fb)
           
static int fdsize()
           
static java.util.Vector<Feature> getFeatures(FloatArray2D fa)
           
static java.util.Vector<Feature> getFeatures(java.awt.Image imp)
           
static java.util.Vector<Feature> getFeatures(int w, int h, int[] pixels)
           
static float initial_sigma()
           
static int max_size()
           
static int min_size()
           
static void set_fdsize(int fs)
           
static void set_initial_sigma(float is)
           
static void set_max_size(int ms)
           
static void set_min_size(int ms)
           
static void set_steps(int s)
           
static int steps()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIFT

public SIFT()
Method Detail

steps

public static int steps()

set_steps

public static void set_steps(int s)

initial_sigma

public static float initial_sigma()

set_initial_sigma

public static void set_initial_sigma(float is)

fdsize

public static int fdsize()

set_fdsize

public static void set_fdsize(int fs)

fdbins

public static int fdbins()

fdbins

public static void fdbins(int fb)

min_size

public static int min_size()

set_min_size

public static void set_min_size(int ms)

max_size

public static int max_size()

set_max_size

public static void set_max_size(int ms)

getFeatures

public static java.util.Vector<Feature> getFeatures(int w,
                                                    int h,
                                                    int[] pixels)
Parameters:
w - width of the picture
h - height of the picture
pixels[] - tab of pixels rgb color (ex: red 0xff0000)
Returns:
vector of features of the picture

getFeatures

public static java.util.Vector<Feature> getFeatures(java.awt.Image imp)
Parameters:
imp - picture
Returns:
vector of features of the picture

getFeatures

public static java.util.Vector<Feature> getFeatures(FloatArray2D fa)

createMatches

public static java.util.Vector<PointMatch> createMatches(java.util.List<Feature> fs1,
                                                         java.util.List<Feature> fs2,
                                                         float max_sd,
                                                         Model model,
                                                         float max_id)
identify corresponding features using spatial constraints

Parameters:
fs1 - feature collection from set 1 sorted by decreasing size
fs2 - feature collection from set 2 sorted by decreasing size
max_sd - maximal difference in size (ratio max/min)
model - transformation model to be applied to fs2
max_id - maximal distance in image space ($\sqrt{x^2+y^2}$)
Returns:
matches TODO implement the spatial constraints