public class NoCacheScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand> extends Object implements GaussianScaleSpace<I,D>
Implementation of GaussianScaleSpace that focuses on one scale space at a time.
When the scale space is changed the scaled image is recomputed and previously computed derivatives
are marked as stale. Then the derivatives are recomputed as needed.
| Constructor and Description |
|---|
NoCacheScaleSpace(ImageGenerator<I> inputGen,
ImageGenerator<D> derivGen)
Declares internal data structures.
|
| Modifier and Type | Method and Description |
|---|---|
BorderType |
getBorderType()
Returns how image borders are processed.
|
double |
getCurrentScale()
Returns the value of the current active scale.
|
D |
getDerivative(boolean... isX)
Computes derivative images using previously computed lower level derivatives.
|
double |
getScale(int level)
Returns the scale for the specified layer in the pyramid.
|
I |
getScaledImage()
Returns the scaled image at the active scale.
|
int |
getTotalScales()
Returns number of scaled images inside of this scale space.
|
void |
setActiveScale(int index)
Sets the active scale.
|
void |
setBorderType(BorderType type)
Change how image borders are handled.
|
void |
setImage(I input)
Specifies the original un-scaled image.
|
void |
setScales(double... scales)
Sets the scales/blur magnitudes for which the scale-space should be computed over.
|
public NoCacheScaleSpace(ImageGenerator<I> inputGen, ImageGenerator<D> derivGen)
inputGen - Used to create image of the same type as the input.derivGen - Used to create derivative images.public void setScales(double... scales)
GaussianScaleSpacesetScales in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>scales - All the scales. These are absolute and not relative to the previous level.public double getScale(int level)
GaussianScaleSpacegetScale in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>public void setImage(I input)
GaussianScaleSpacesetImage in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>input - Original image.public void setActiveScale(int index)
GaussianScaleSpaceGaussianScaleSpace.setImage(boofcv.struct.image.ImageSingleBand)
before this function.setActiveScale in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>index - Index of active scalepublic double getCurrentScale()
GaussianScaleSpacegetCurrentScale in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>public int getTotalScales()
GaussianScaleSpacegetTotalScales in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>public I getScaledImage()
GaussianScaleSpacegetScaledImage in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>public void setBorderType(BorderType type)
GaussianScaleSpacesetBorderType in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>type - The BorderType.public BorderType getBorderType()
GaussianScaleSpacegetBorderType in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>public D getDerivative(boolean... isX)
getDerivative in interface GaussianScaleSpace<I extends ImageSingleBand,D extends ImageSingleBand>isX - specifies which partial derivative is to be returned.Copyright © 2013. All Rights Reserved.