public class SiftScaleSpace
extends java.lang.Object
Generates the pyramidal scale space as described in the SIFT [1] paper. This is, for the most part, is intended to be a faithful reproduction of the original work.
Known Deviations From Original SIFT:[1] Lowe, D. "Distinctive image features from scale-invariant keypoints". International Journal of Computer Vision, 60, 2 (2004), pp.91--110.
| Constructor and Description |
|---|
SiftScaleSpace(int firstOctave,
int lastOctave,
int numScales,
double sigma0)
Configures the scale-space
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
computeNextOctave()
Computes the next octave.
|
double |
computeSigmaScale(int scale)
Computes the effective amount of blur at the given scale in the current octave.
|
double |
computeSigmaScale(int octave,
int scale)
Returns the blur at the given octave and scale
|
int |
getCurrentOctave() |
boofcv.struct.image.GrayF32 |
getDifferenceOfGaussian(int dogIndex) |
boofcv.struct.image.GrayF32 |
getImageScale(int scaleIndex) |
int |
getNumScaleImages() |
int |
getNumScales() |
int |
getTotalOctaves() |
void |
initialize(boofcv.struct.image.GrayF32 input) |
double |
pixelScaleCurrentToInput()
Returns the size of a pixel in the current octave relative to the size of a pixel
in the input image
|
public SiftScaleSpace(int firstOctave,
int lastOctave,
int numScales,
double sigma0)
firstOctave - Initial octave. Negative numbers means it will scale up. Recommend 0 or -1.lastOctave - Last octave, inclusive. Recommend ????numScales - Number of scales in each octave. Recommend 3.sigma0 - Amount of blur at the first level in the image pyramid. Recommend 1.6public double computeSigmaScale(int scale)
public double computeSigmaScale(int octave,
int scale)
public void initialize(boofcv.struct.image.GrayF32 input)
input - Input image. No prior blur should be applied to this image. Not modified.public boolean computeNextOctave()
public boofcv.struct.image.GrayF32 getImageScale(int scaleIndex)
public boofcv.struct.image.GrayF32 getDifferenceOfGaussian(int dogIndex)
public int getNumScales()
public int getNumScaleImages()
public int getCurrentOctave()
public int getTotalOctaves()
public double pixelScaleCurrentToInput()