public class ScaleSpace<A extends Type<A>,B extends RealType<B>> extends Object implements OutputAlgorithm<B>, MultiThreaded, Benchmark
Constructor and Description |
---|
ScaleSpace(Image<A> image,
ImageFactory<B> processFactory,
Converter<A,B> converter,
double initialSigma) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
protected Image<B> |
computeScaleSpace(Image<B> image,
double[] sigma,
double norm,
ContainerFactory factory) |
protected Image<B> |
convert(Image<A> input,
ImageFactory<B> processFactory,
Converter<A,B> converter) |
String |
getErrorMessage() |
protected double[] |
getIncrementalSigmas(double[] sigma,
double imageSigma) |
int |
getMinImageSize() |
protected double |
getNormalizationFactor(int stepsPerOctave) |
int |
getNumThreads()
The number of threads used by the algorithm
|
ArrayList<DifferenceOfGaussianPeak<B>> |
getPeaks() |
long |
getProcessingTime() |
Image<B> |
getResult() |
protected double[] |
getSigmas(Image<?> img,
double initialSigma,
int minImageSize,
int stepsPerOctave) |
protected boolean |
normImageMinMax(Image<B> image) |
boolean |
process() |
void |
setMinImageSize(int minImageSize) |
void |
setNumThreads()
Sets the number of threads to the amount of processors available
|
void |
setNumThreads(int numThreads)
Sets the number of threads
|
protected Image<B> |
upSample(Image<A> input,
ImageFactory<B> processFactory,
Converter<A,B> converter)
Upsamples the image by a factor of 2.
|
public Image<B> getResult()
getResult
in interface OutputAlgorithm<B extends RealType<B>>
public ArrayList<DifferenceOfGaussianPeak<B>> getPeaks()
public void setMinImageSize(int minImageSize)
public int getMinImageSize()
protected Image<B> computeScaleSpace(Image<B> image, double[] sigma, double norm, ContainerFactory factory)
protected double getNormalizationFactor(int stepsPerOctave)
protected double[] getIncrementalSigmas(double[] sigma, double imageSigma)
protected double[] getSigmas(Image<?> img, double initialSigma, int minImageSize, int stepsPerOctave)
protected Image<B> convert(Image<A> input, ImageFactory<B> processFactory, Converter<A,B> converter)
protected Image<B> upSample(Image<A> input, ImageFactory<B> processFactory, Converter<A,B> converter)
input
- - The input imageprocessFactory
- - The upsampled image of size 2*size-1converter
- - How to convert between A and Bpublic boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public long getProcessingTime()
getProcessingTime
in interface Benchmark
public void setNumThreads()
MultiThreaded
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
MultiThreaded
setNumThreads
in interface MultiThreaded
numThreads
- - number of threads to usepublic int getNumThreads()
MultiThreaded
getNumThreads
in interface MultiThreaded
Copyright © 2015–2021 Fiji. All rights reserved.