|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.rsl.konrad.utils.ImageUtil
public abstract class ImageUtil
Constructor Summary | |
---|---|
ImageUtil()
|
Method Summary | |
---|---|
static void |
addImagePlusValues(ij.ImagePlus image,
ij.ImagePlus image2)
Adds the pixel values of all pixels in the ImagePlus by the second Image |
static void |
addProcessors(ij.process.ImageProcessor left,
ij.process.ImageProcessor right)
Adds two image processors. |
static void |
addToImagePlusValues(ij.ImagePlus image,
double value)
Increases the pixel values of all pixels in the ImagePlus by addition of value |
static double[] |
computeMeanAndStandardDeviation(ij.process.ImageProcessor imp)
Normalizes an ImageProcessor to mean 0 and standard deviation 1 |
static ij.process.FloatProcessor |
divideImages(ij.ImagePlus nominator,
ij.ImagePlus denominator)
|
static ij.process.FloatProcessor |
divideImages(ij.ImagePlus nominator,
ij.ImagePlus denominator,
int n)
Divides two image processors in the two given ImagePlus. |
static ij.process.FloatProcessor |
divideImages(ij.process.ImageProcessor nominator,
ij.process.ImageProcessor denominator)
|
static float[] |
estimateConvolutionKernel(ij.process.FloatProcessor before,
ij.process.FloatProcessor after,
int kernelSize,
int number)
|
static java.util.ArrayList<ij.ImagePlus> |
getAvailableImagePlus()
|
static ij.ImagePlus[] |
getAvailableImagePlusAsArray()
|
static java.awt.image.IndexColorModel |
getDefaultColorModel()
|
static ij.ImagePlus |
getImagePlusFromString(java.lang.String name,
ij.ImagePlus[] images)
Returns the matching image given it's String representation |
static java.lang.String[] |
getStringArrayRepresentation(ij.ImagePlus[] images)
Creates a unigue String representation of an array of ImagePlus |
static double[] |
minAndMaxOfImageProcessor(ij.ImagePlus image)
returns the minimal and the maxiaml value of a given ImageProcessor |
static double[] |
minAndMaxOfImageProcessor(ij.process.ImageProcessor imp)
returns the minimal and the maxiaml value of a given ImageProcessor |
static double |
minOfImagePlusValues(ij.ImagePlus image)
Determines the minimal value of a given ImagePlus. |
static double |
minOfImageProcessor(ij.process.ImageProcessor imp)
returns the minimal value of a given ImageProcessor |
static void |
multiplyImagePlusValues(ij.ImagePlus image,
double value)
Multiplies the pixel values of all pixels in the ImagePlus by value |
static ij.process.FloatProcessor |
multiplyImages(ij.ImagePlus nominator,
ij.ImagePlus denominator,
int n)
|
static ij.process.FloatProcessor |
multiplyImages(ij.process.ImageProcessor nominator,
ij.process.ImageProcessor denominator)
|
static double[] |
normalizeImagePlus(ij.ImagePlus image)
Normalizes all pixel values of an ImagePlus to mean 0 and standard deviation 1. |
static double[] |
normalizeImagePlusCutOff(ij.ImagePlus image,
int numStandardDeviations)
Normalizes all pixel values of an ImagePlus to mean 0 and standard deviation 1. |
static double[] |
normalizeImagePlusMinMax(ij.ImagePlus image)
Normalizes all pixel values of an ImagePlus to minimum 0 and maximum 1. |
static double[] |
normalizeImageProcessor(ij.process.ImageProcessor imp)
Normalizes an ImageProcessor to mean 0 and standard deviation 1 |
static double[] |
normalizeImageProcessorCutOff(ij.process.ImageProcessor imp,
int numStandardDeviations)
Normalizes an ImageProcessor to mean 0 and standard deviation 1. |
static double[] |
normalizeImageProcessorMinMax(ij.process.ImageProcessor imp)
Normalizes an ImageProcessor to minimum 0 and maximum 1 |
static void |
subtractProcessors(ij.process.ImageProcessor left,
ij.process.ImageProcessor right)
Subtracts two image processors. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageUtil()
Method Detail |
---|
public static java.awt.image.IndexColorModel getDefaultColorModel()
public static float[] estimateConvolutionKernel(ij.process.FloatProcessor before, ij.process.FloatProcessor after, int kernelSize, int number)
public static java.util.ArrayList<ij.ImagePlus> getAvailableImagePlus()
public static ij.ImagePlus[] getAvailableImagePlusAsArray()
public static double minOfImagePlusValues(ij.ImagePlus image)
image
- the ImagePlus
public static double minOfImageProcessor(ij.process.ImageProcessor imp)
imp
- the ImageProcessor
public static double[] minAndMaxOfImageProcessor(ij.process.ImageProcessor imp)
imp
- the ImageProcessor
public static double[] minAndMaxOfImageProcessor(ij.ImagePlus image)
image
- the ImageProcessor
public static void addToImagePlusValues(ij.ImagePlus image, double value)
image
- the ImagePlusvalue
- the value to addpublic static void addImagePlusValues(ij.ImagePlus image, ij.ImagePlus image2)
image
- the ImagePlusimage2
- the values to add topublic static void multiplyImagePlusValues(ij.ImagePlus image, double value)
image
- the ImagePlusvalue
- the value to multiplypublic static double[] normalizeImagePlusCutOff(ij.ImagePlus image, int numStandardDeviations)
image
- the imagePlus
public static double[] normalizeImagePlus(ij.ImagePlus image)
image
- the imagePlus
public static double[] normalizeImagePlusMinMax(ij.ImagePlus image)
image
- the imagePlus
public static double[] normalizeImageProcessorMinMax(ij.process.ImageProcessor imp)
imp
- the image processor
public static double[] normalizeImageProcessor(ij.process.ImageProcessor imp)
imp
- the image processor
public static double[] normalizeImageProcessorCutOff(ij.process.ImageProcessor imp, int numStandardDeviations)
imp
- the image processornumStandardDeviations
- Number of standard deviations after which the values are cut off
public static double[] computeMeanAndStandardDeviation(ij.process.ImageProcessor imp)
imp
- the image processor
public static ij.process.FloatProcessor divideImages(ij.ImagePlus nominator, ij.ImagePlus denominator)
public static ij.process.FloatProcessor divideImages(ij.process.ImageProcessor nominator, ij.process.ImageProcessor denominator)
public static ij.process.FloatProcessor multiplyImages(ij.ImagePlus nominator, ij.ImagePlus denominator, int n)
public static ij.process.FloatProcessor multiplyImages(ij.process.ImageProcessor nominator, ij.process.ImageProcessor denominator)
public static ij.process.FloatProcessor divideImages(ij.ImagePlus nominator, ij.ImagePlus denominator, int n)
nominator
- the nominatordenominator
- the denominatorn
- the index of the stack (starts with 0).
public static void addProcessors(ij.process.ImageProcessor left, ij.process.ImageProcessor right)
left
- the first processorright
- the second processorpublic static void subtractProcessors(ij.process.ImageProcessor left, ij.process.ImageProcessor right)
left
- the first processorright
- the second processorpublic static java.lang.String[] getStringArrayRepresentation(ij.ImagePlus[] images)
images
-
public static ij.ImagePlus getImagePlusFromString(java.lang.String name, ij.ImagePlus[] images)
name
- the String representation of the imageimages
- the array of ImagePlus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |