public class NoCacheScaleSpace<I extends ImageGray,D extends ImageGray> extends java.lang.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(java.lang.Class<I> inputType,
java.lang.Class<D> derivType)
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 void setScales(double... scales)
GaussianScaleSpacepublic double getScale(int level)
GaussianScaleSpacepublic void setImage(I input)
GaussianScaleSpacepublic void setActiveScale(int index)
GaussianScaleSpaceGaussianScaleSpace.setImage(ImageGray)
before this function.setActiveScale in interface GaussianScaleSpace<I extends ImageGray,D extends ImageGray>index - Index of active scalepublic double getCurrentScale()
GaussianScaleSpacegetCurrentScale in interface GaussianScaleSpace<I extends ImageGray,D extends ImageGray>public int getTotalScales()
GaussianScaleSpacegetTotalScales in interface GaussianScaleSpace<I extends ImageGray,D extends ImageGray>public I getScaledImage()
GaussianScaleSpacegetScaledImage in interface GaussianScaleSpace<I extends ImageGray,D extends ImageGray>public void setBorderType(BorderType type)
GaussianScaleSpacesetBorderType in interface GaussianScaleSpace<I extends ImageGray,D extends ImageGray>type - The BorderType.public BorderType getBorderType()
GaussianScaleSpacegetBorderType in interface GaussianScaleSpace<I extends ImageGray,D extends ImageGray>public D getDerivative(boolean... isX)
getDerivative in interface GaussianScaleSpace<I extends ImageGray,D extends ImageGray>isX - specifies which partial derivative is to be returned.