|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjview.JImageSuite
public class JImageSuite
Manipulating buffered images with different filters. Static classes.
| Nested Class Summary | |
|---|---|
static class |
JImageSuite.Blur
Class that combines parameters for a blurring operation. |
static class |
JImageSuite.Clouds
This class allows test on a cloud image. |
static interface |
JImageSuite.Convolving
Indicates image manipulation based on convolve operations. |
static class |
JImageSuite.Gauss
Class that produces a truncated gaussian for image detection. |
static class |
JImageSuite.Sharpen
Class that combines parameters necessarry for a sharpness operation. |
| Constructor Summary | |
|---|---|
JImageSuite()
|
|
| Method Summary | |
|---|---|
static BufferedImage |
brighten(BufferedImage src,
double b)
Brightens or darkens the image by applying an offset that shifts the pixel value supplied to the left or right. |
static BufferedImage |
brighten(BufferedImage src,
float[] mode,
double bright,
boolean insitu,
RenderingHints hints)
Brightens or darkens the image by applying an offset that shifts the pixel value supplied to the left or right. |
static BufferedImage |
brighten(BufferedImage src,
float m1,
double bright)
Brightens or darkens the image by applying an offset that shifts the pixel value supplied to the left or right. |
static BufferedImage |
brighten(BufferedImage src,
float m1,
double bright,
boolean insitu)
Brightens or darkens the image by applying an offset that shifts the pixel value supplied to the left or right. |
static BufferedImage |
brighten(BufferedImage src,
float m1,
double bright,
boolean insitu,
RenderingHints hints)
Brightens or darkens the image by applying an offset that shifts the pixel value supplied to the left or right. |
private static LookupTable |
cloudLookupTable(int gray)
|
static BufferedImage |
clouds(BufferedImage earth,
int gray,
RenderingHints hints)
From an image showing clouds we construct an image with an alpha channel thus that the lands are black and fully translucent, while white colors above the specified threshold are rendered fully opaque in original color. |
static BufferedImage |
colorize(BufferedImage fim,
LookupTable lut)
Colorizes the image. |
static BufferedImage |
colorize(BufferedImage fim,
LookupTable lut,
RenderingHints hints)
Colorizes the image. |
static BufferedImage |
convolve(BufferedImage src,
JImageSuite.Convolving op)
Uses a convolving instance to create a convolved buffered image. |
static BufferedImage |
convolve(BufferedImage src,
JImageSuite.Convolving op,
int edgeop,
RenderingHints hints)
Uses a convolving instance to create a convolved buffered image. |
static BufferedImage |
darken(BufferedImage src,
int[] threshold,
boolean insitu,
RenderingHints hints)
Constructs an easy look-up table that blackens the sky by setting all pixels below a certain threashold exponentially tozero and leaving all other untouched. |
static BufferedImage |
flatten(BufferedImage src,
double contrast)
Does flattening of an image. |
static BufferedImage |
flatten(BufferedImage src,
double contrast,
JHistogram hist)
Does flattening of an image. |
static BufferedImage |
flatten(BufferedImage src,
double contrast,
JHistogram[] hist)
Does flattening of an image. |
static BufferedImage |
flatten(BufferedImage src,
double contrast,
JHistogram[] hist,
boolean insitu)
Does flattening of an image. |
static BufferedImage |
flatten(BufferedImage src,
double contrast,
JHistogram[] hist,
boolean insitu,
RenderingHints hints)
Does flattening of an image. |
static BufferedImage |
flip(BufferedImage src,
boolean xflip,
boolean yflip)
Does flipping of an image. |
private static double |
getScaleFactor(double range,
double fwhm,
double c)
We calculate a scaling factor for the given contrast, which must be in the range of -1 to +1. |
private static BufferedImage |
imageOp(BufferedImage src,
boolean insitu,
BufferedImageOp op)
Operation on the source image. |
static BufferedImage |
invert(BufferedImage src)
Inverts a buffered image. |
static BufferedImage |
invert(BufferedImage src,
boolean insitu)
Inverts a buffered image. |
static BufferedImage |
invert(BufferedImage src,
boolean insitu,
RenderingHints hints)
Inverts a buffered image. |
static BufferedImage |
optimalContrast(BufferedImage src,
double[] median,
double[] min,
double[] max,
boolean insitu,
RenderingHints hints)
Tries to construct an optimal look-up table for image enhancement. |
static BufferedImage |
rescale(BufferedImage src,
double bright,
double contrast)
Rescales the image in the sense that the image gets brighter according to the brightness parameter, zero meaning no change and +/-1 meaning maximum/minimum brightness. |
static BufferedImage |
rescale(BufferedImage src,
double bright,
double contrast,
boolean insitu,
RenderingHints hints)
Rescales the image in the sense that the image gets brighter according to the brightness parameter, zero meaning no change and +/-1 meaning maximum/minimum brightness. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JImageSuite()
| Method Detail |
|---|
public static BufferedImage convolve(BufferedImage src,
JImageSuite.Convolving op,
int edgeop,
RenderingHints hints)
public static BufferedImage convolve(BufferedImage src,
JImageSuite.Convolving op)
public static BufferedImage invert(BufferedImage src,
boolean insitu,
RenderingHints hints)
public static BufferedImage invert(BufferedImage src,
boolean insitu)
public static BufferedImage invert(BufferedImage src)
public static BufferedImage colorize(BufferedImage fim,
LookupTable lut)
public static BufferedImage colorize(BufferedImage fim,
LookupTable lut,
RenderingHints hints)
public static final BufferedImage brighten(BufferedImage src,
double b)
public static final BufferedImage brighten(BufferedImage src,
float m1,
double bright,
boolean insitu)
public static final BufferedImage brighten(BufferedImage src,
float m1,
double bright)
public static final BufferedImage brighten(BufferedImage src,
float m1,
double bright,
boolean insitu,
RenderingHints hints)
public static final BufferedImage brighten(BufferedImage src,
float[] mode,
double bright,
boolean insitu,
RenderingHints hints)
public static final BufferedImage clouds(BufferedImage earth,
int gray,
RenderingHints hints)
private static LookupTable cloudLookupTable(int gray)
private static double getScaleFactor(double range,
double fwhm,
double c)
public static final BufferedImage flatten(BufferedImage src,
double contrast)
public static final BufferedImage flatten(BufferedImage src,
double contrast,
JHistogram hist)
public static final BufferedImage flatten(BufferedImage src,
double contrast,
JHistogram[] hist)
public static final BufferedImage flatten(BufferedImage src,
double contrast,
JHistogram[] hist,
boolean insitu)
public static final BufferedImage flatten(BufferedImage src,
double contrast,
JHistogram[] hist,
boolean insitu,
RenderingHints hints)
public static BufferedImage rescale(BufferedImage src,
double bright,
double contrast)
scale = tan(pi/4*(1+contrast)),
offset = scale*2^n*bright.
public static BufferedImage rescale(BufferedImage src,
double bright,
double contrast,
boolean insitu,
RenderingHints hints)
scale = tan(pi/4*(1+contrast)),
offset = scale*2^n*bright.
public static BufferedImage optimalContrast(BufferedImage src,
double[] median,
double[] min,
double[] max,
boolean insitu,
RenderingHints hints)
public static BufferedImage darken(BufferedImage src,
int[] threshold,
boolean insitu,
RenderingHints hints)
short=exp(ln(t+1)/t*x)-1
public static final BufferedImage flip(BufferedImage src,
boolean xflip,
boolean yflip)
private static BufferedImage imageOp(BufferedImage src,
boolean insitu,
BufferedImageOp op)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||