public class AdjustInput extends Object
Constructor and Description |
---|
AdjustInput() |
Modifier and Type | Method and Description |
---|---|
static double |
addGaussianNoise(Image<FloatType> img,
Random rnd,
float sigma,
boolean onlyPositive)
Adds additive gaussian noise: i = i + gauss(x, sigma)
|
static double |
addGaussianNoiseAddMul(Image<FloatType> img,
Random rnd,
float sigma,
boolean onlyPositive)
Adds additive and multiplicative gaussian noise: i = i*gauss(x,sigma) + gauss(x, sigma)
|
static void |
adjustImage(Image<FloatType> image,
float minValue,
float targetAverage)
Adjusts an image so that the minimal intensity is minValue and the average is average
|
static double[] |
normAllImages(ArrayList<LRFFT> data) |
static void |
normImage(Image<FloatType> img)
Norms an image so that the sum over all pixels is 1.
|
static double |
sumImage(Image<FloatType> img) |
static void |
translate(Image<FloatType> img,
float[] vector) |
public static Random rnd
public static final void normImage(Image<FloatType> img)
img
- - the Image
to normalizepublic static double addGaussianNoise(Image<FloatType> img, Random rnd, float sigma, boolean onlyPositive)
public static double addGaussianNoiseAddMul(Image<FloatType> img, Random rnd, float sigma, boolean onlyPositive)
public static void adjustImage(Image<FloatType> image, float minValue, float targetAverage)
image
- - the image to normminValue
- - the minimal valuetargetAverage
- - the average that we want to haveCopyright © 2015–2021 Fiji. All rights reserved.