IMAGE
- type of underlying image.public class GaussianPyramidOptions<IMAGE extends Image<?,IMAGE> & SinglebandImageProcessor.Processable<Float,FImage,IMAGE>> extends PyramidOptions<GaussianOctave<IMAGE>,IMAGE>
Modifier and Type | Field and Description |
---|---|
protected int |
borderPixels
Number of pixels of border for processors to ignore.
|
protected boolean |
doubleInitialImage
Should the starting image of the pyramid be stretched to twice its size?
|
protected int |
extraScaleSteps
The number of extra scale steps taken beyond scales.
|
protected float |
initialSigma
Assumed initial scale of the first image in each octave.
|
protected int |
scales
The number of scales in this octave minus extraScaleSteps.
|
keepOctaves, octaveProcessor, pyramidProcessor
Constructor and Description |
---|
GaussianPyramidOptions()
Default constructor.
|
GaussianPyramidOptions(GaussianPyramidOptions<?> options)
Construct the pyramid options by copying the non-processor options from
the given options object.
|
Modifier and Type | Method and Description |
---|---|
SinglebandImageProcessor<Float,FImage> |
createGaussianBlur(float sigma)
Create a
SinglebandImageProcessor that performs a Gaussian
blurring with a standard deviation given by sigma. |
int |
getBorderPixels()
Get the number of pixels used for a border that processors shouldn't
touch.
|
int |
getExtraScaleSteps()
Get the number of extra scale steps taken beyond scales.
|
float |
getInitialSigma()
Get the assumed initial scale of the first image in each octave.
|
int |
getScales()
Get the number of scales in this octave minus extraScaleSteps.
|
boolean |
isDoubleInitialImage()
Should the starting image of the pyramid be stretched to twice its size?
|
void |
setBorderPixels(int borderPixels)
Set the number of pixels used for a border that processors shouldn't
touch.
|
void |
setDoubleInitialImage(boolean doubleInitialImage)
Set whether starting image of the pyramid be stretched to twice its size?
|
void |
setExtraScaleSteps(int extraScaleSteps)
Set the number of extra scale steps taken beyond scales.
|
void |
setInitialSigma(float initialSigma)
Set the assumed initial scale of the first image in each octave.
|
void |
setScales(int scales)
Set the number of scales in this octave minus extraScaleSteps.
|
getOctaveProcessor, getPyramidProcessor, isKeepOctaves, setKeepOctaves, setOctaveProcessor, setPyramidProcessor
protected int borderPixels
protected boolean doubleInitialImage
protected int extraScaleSteps
protected float initialSigma
protected int scales
public GaussianPyramidOptions()
public GaussianPyramidOptions(GaussianPyramidOptions<?> options)
options
- options to copy frompublic int getBorderPixels()
public int getExtraScaleSteps()
getScales()
public float getInitialSigma()
public int getScales()
public boolean isDoubleInitialImage()
public void setBorderPixels(int borderPixels)
borderPixels
- number of pixels to leave as borderpublic void setDoubleInitialImage(boolean doubleInitialImage)
doubleInitialImage
- the doubleInitialImage to setpublic void setExtraScaleSteps(int extraScaleSteps)
extraScaleSteps
- the extraScaleSteps to setsetScales(int)
public void setInitialSigma(float initialSigma)
initialSigma
- the initialSigma to setpublic void setScales(int scales)
scales
- the scales to setpublic SinglebandImageProcessor<Float,FImage> createGaussianBlur(float sigma)
SinglebandImageProcessor
that performs a Gaussian
blurring with a standard deviation given by sigma. This method is used by
the GaussianOctave
and GaussianPyramid
to create filters
for performing the blurring. By overriding in subclasses, you can control
the exact filter implementation (i.e. for speed).sigma
- the gaussian standard deviation