|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaitools.imageutils.ImageUtils
public class ImageUtils
Provides static utility methods for some common image-related tasks.
| Constructor Summary | |
|---|---|
ImageUtils()
|
|
| Method Summary | |
|---|---|
static javax.media.jai.TiledImage |
createConstantImage(int minx,
int miny,
int width,
int height,
int tileWidth,
int tileHeight,
Number[] values)
Creates a new TiledImage object with one or more bands of constant value. |
static javax.media.jai.TiledImage |
createConstantImage(int minx,
int miny,
int width,
int height,
Number value)
Creates a new TiledImage object with a single band of constant value. |
static javax.media.jai.TiledImage |
createConstantImage(int minx,
int miny,
int width,
int height,
Number[] values)
Creates a new TiledImage object with one or more bands of constant value. |
static javax.media.jai.TiledImage |
createConstantImage(int width,
int height,
Number value)
Creates a new TiledImage object with a single band of constant value. |
static javax.media.jai.TiledImage |
createConstantImage(int width,
int height,
Number[] values)
Creates a new TiledImage object with one or more bands of constant value. |
static RenderedImage |
createDisplayImage(RenderedImage dataImg,
Map<Integer,Color> colourTable)
Creates a proxy RGB display image for the given data image. |
static javax.media.jai.TiledImage |
createImageFromArray(Number[] array,
int width,
int height)
Creates a new single-band TiledImage with the provided values. |
static Color[] |
createRampColours(int numColours)
Create a set of colours using a simple colour ramp algorithm in the HSB colour space. |
static Color[] |
createRampColours(int numColours,
float saturation,
float brightness)
Create a set of colours using a simple colour ramp algorithm in the HSB colour space. |
static Color[] |
createRampColours(int numColours,
float startHue,
float endHue,
float saturation,
float brightness)
Create a set of colours using a simple colour ramp algorithm in the HSB colour space. |
static List<RenderedImage> |
getBandsAsImages(RenderedImage img)
Get the bands of a multi-band image as a list of single-band images. |
static List<RenderedImage> |
getBandsAsImages(RenderedImage img,
Collection<Integer> bandIndices)
Get the specified bands of a multi-band image as a list of single-band images. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageUtils()
| Method Detail |
|---|
public static javax.media.jai.TiledImage createConstantImage(int width,
int height,
Number value)
value.
width - image width in pixelsheight - image height in pixelsvalue - the constant value to fill the image
public static javax.media.jai.TiledImage createConstantImage(int minx,
int miny,
int width,
int height,
Number value)
value.
minx - minimum image X ordinateminy - minimum image Y ordinatewidth - image width in pixelsheight - image height in pixelsvalue - the constant value to fill the image
public static javax.media.jai.TiledImage createConstantImage(int width,
int height,
Number[] values)
Number class used.
width - image width in pixelsheight - image height in pixelsvalues - array of values (must contain at least one element)
public static javax.media.jai.TiledImage createConstantImage(int minx,
int miny,
int width,
int height,
Number[] values)
Number class used.
minx - minimum image X ordinateminy - minimum image Y ordinatewidth - image width in pixelsheight - image height in pixelsvalues - array of values (must contain at least one element)
public static javax.media.jai.TiledImage createConstantImage(int minx,
int miny,
int width,
int height,
int tileWidth,
int tileHeight,
Number[] values)
Number class used.
minx - minimum image X ordinateminy - minimum image Y ordinatewidth - image widthheight - image heighttileWidth - width of image tilestileHeight - height of image tilesvalues - array of values (must contain at least one element)
public static javax.media.jai.TiledImage createImageFromArray(Number[] array,
int width,
int height)
array argument must be of length width x height.
array - a 1D array of values for the imagewidth - image widthheight - image height
public static Color[] createRampColours(int numColours)
numColours - number of colours required
public static Color[] createRampColours(int numColours,
float saturation,
float brightness)
numColours - number of colours requiredsaturation - the saturation of all colours (between 0 and 1)brightness - the brightness of all colours (between 0 and 1)
public static Color[] createRampColours(int numColours,
float startHue,
float endHue,
float saturation,
float brightness)
numColours - number of colours requiredstartHue - the starting hueendHue - the ending huesaturation - the saturation of all coloursbrightness - the brightness of all colours
public static RenderedImage createDisplayImage(RenderedImage dataImg,
Map<Integer,Color> colourTable)
dataImg - the data imagecolourTable - a lookup table giving colours for each data image value
public static List<RenderedImage> getBandsAsImages(RenderedImage img)
img - the multi-band image
public static List<RenderedImage> getBandsAsImages(RenderedImage img,
Collection<Integer> bandIndices)
img - the multi-band imagebandIndices - a Collection of Integer indices in the range 0 <= i < number of bands
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||