public class ImageOps extends Object
Constructor and Description |
---|
ImageOps() |
Modifier and Type | Method and Description |
---|---|
static javax.media.jai.PlanarImage |
clamp(javax.media.jai.PlanarImage im,
double low,
double high)
Perform a clamp operation on the image and return the new image.
|
static javax.media.jai.PlanarImage |
crop(javax.media.jai.PlanarImage im,
float x,
float y,
float width,
float height)
Apply a crop operation to the image and return the
new image.
|
static double[] |
cutLevel(javax.media.jai.PlanarImage im,
javax.media.jai.ROI roi,
double ignore,
double median)
Perform a CutLevel operation on the image to estimate the best
low and high cut levels using a median filter algorithm.
|
static double[][] |
extrema(javax.media.jai.PlanarImage im,
javax.media.jai.ROI roi,
int xPeriod,
int yPeriod)
Perform an extrema operation on the image to get the min and max pixel values.
|
static javax.media.jai.PlanarImage |
format(javax.media.jai.PlanarImage im,
int dataType)
Apply a format operation to the image to convert it to the given
data type (by casting and "clamping").
|
static javax.media.jai.Histogram |
histogram(javax.media.jai.PlanarImage im,
javax.media.jai.ROI roi,
int xPeriod,
int yPeriod,
int[] numBins,
double[] lowValue,
double[] highValue)
Get statistics on the given image, such as the min and max pixel
values.
|
static javax.media.jai.PlanarImage |
lookup(javax.media.jai.PlanarImage im,
javax.media.jai.LookupTableJAI lookupTable)
Apply the lookup table to the given image and return the new image.
|
static double[] |
mean(javax.media.jai.PlanarImage im,
javax.media.jai.ROI roi,
int xPeriod,
int yPeriod)
Perform a "mean" operation on the image to get the mean pixel value of
the given area of teh image.
|
static double[] |
minMax(javax.media.jai.PlanarImage im,
javax.media.jai.ROI roi,
int xPeriod,
int yPeriod,
double ignore)
Perform a minMax operation on the image to get the min and max
pixel values.
|
static javax.media.jai.PlanarImage |
rescale(javax.media.jai.PlanarImage im,
double factor,
double offset,
RenderingHints hints)
Apply a rescale operation to the image.
|
static javax.media.jai.PlanarImage |
rotate(javax.media.jai.PlanarImage im,
float x,
float y,
float angle,
javax.media.jai.Interpolation interpolation,
RenderingHints hints)
Apply a rotate operation to the image and return the
new image.
|
static javax.media.jai.PlanarImage |
scale(javax.media.jai.PlanarImage im,
float xScale,
float yScale,
float xTrans,
float yTrans,
javax.media.jai.Interpolation interpolation,
RenderingHints hints)
Apply a scale operation to the image and return the
new image.
|
static javax.media.jai.PlanarImage |
translate(javax.media.jai.PlanarImage im,
float x,
float y,
javax.media.jai.Interpolation interpolation)
Apply a translate operation to the image and return the
new image.
|
static javax.media.jai.PlanarImage |
transpose(javax.media.jai.PlanarImage im,
javax.media.jai.operator.TransposeType type)
Apply a transpose operation to the image and return the
new image.
|
public static double[] minMax(javax.media.jai.PlanarImage im, javax.media.jai.ROI roi, int xPeriod, int yPeriod, double ignore)
public static double[] cutLevel(javax.media.jai.PlanarImage im, javax.media.jai.ROI roi, double ignore, double median)
public static double[][] extrema(javax.media.jai.PlanarImage im, javax.media.jai.ROI roi, int xPeriod, int yPeriod)
public static double[] mean(javax.media.jai.PlanarImage im, javax.media.jai.ROI roi, int xPeriod, int yPeriod)
public static javax.media.jai.PlanarImage rescale(javax.media.jai.PlanarImage im, double factor, double offset, RenderingHints hints)
im
- the source imagefactor
- factor to multiple pixel values byoffset
- value to add to pixel valueshints
- optional rendering hint (may be needed to define an ImageLayout object to change the
datatype of the resulting image)public static javax.media.jai.PlanarImage format(javax.media.jai.PlanarImage im, int dataType)
public static javax.media.jai.PlanarImage scale(javax.media.jai.PlanarImage im, float xScale, float yScale, float xTrans, float yTrans, javax.media.jai.Interpolation interpolation, RenderingHints hints)
public static javax.media.jai.PlanarImage rotate(javax.media.jai.PlanarImage im, float x, float y, float angle, javax.media.jai.Interpolation interpolation, RenderingHints hints)
public static javax.media.jai.PlanarImage crop(javax.media.jai.PlanarImage im, float x, float y, float width, float height)
public static javax.media.jai.PlanarImage translate(javax.media.jai.PlanarImage im, float x, float y, javax.media.jai.Interpolation interpolation)
public static javax.media.jai.PlanarImage transpose(javax.media.jai.PlanarImage im, javax.media.jai.operator.TransposeType type)
public static javax.media.jai.PlanarImage lookup(javax.media.jai.PlanarImage im, javax.media.jai.LookupTableJAI lookupTable)
public static javax.media.jai.PlanarImage clamp(javax.media.jai.PlanarImage im, double low, double high)
public static javax.media.jai.Histogram histogram(javax.media.jai.PlanarImage im, javax.media.jai.ROI roi, int xPeriod, int yPeriod, int[] numBins, double[] lowValue, double[] highValue)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.