mpi.cbg.fly
Class SIFT
java.lang.Object
mpi.cbg.fly.SIFT
public class SIFT
- extends java.lang.Object
|
Constructor Summary |
SIFT()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIFT
public SIFT()
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 pictureh - height of the picturepixels[] - 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 sizefs2 - feature collection from set 2 sorted by decreasing sizemax_sd - maximal difference in size (ratio max/min)model - transformation model to be applied to fs2max_id - maximal distance in image space ($\sqrt{x^2+y^2}$)
- Returns:
- matches
TODO implement the spatial constraints