public class GrayImageOps
extends java.lang.Object
Constructor and Description |
---|
GrayImageOps() |
Modifier and Type | Method and Description |
---|---|
static ImageFloat32 |
brighten(ImageFloat32 input,
float beta,
float max,
ImageFloat32 output)
Brightens the image's intensity:
Ox,y = Ix,y + beta |
static ImageSInt16 |
brighten(ImageSInt16 input,
int beta,
int max,
ImageSInt16 output)
Brightens the image's intensity:
Ox,y = Ix,y + beta |
static ImageUInt8 |
brighten(ImageUInt8 input,
int beta,
int max,
ImageUInt8 output)
Brightens the image's intensity:
Ox,y = Ix,y + beta |
static ImageFloat32 |
invert(ImageFloat32 input,
float max,
ImageFloat32 output)
Inverts the image's intensity:
Ox,y = max - Ix,y |
static ImageSInt16 |
invert(ImageSInt16 input,
int max,
ImageSInt16 output)
Inverts the image's intensity:
Ox,y = max - Ix,y |
static ImageUInt8 |
invert(ImageUInt8 input,
int max,
ImageUInt8 output)
Inverts the image's intensity:
Ox,y = max - Ix,y |
static ImageFloat32 |
stretch(ImageFloat32 input,
double gamma,
float beta,
float max,
ImageFloat32 output)
Stretches the image's intensity:
Ox,y = Ix,y&gamma + beta |
static ImageSInt16 |
stretch(ImageSInt16 input,
double gamma,
int beta,
int max,
ImageSInt16 output)
Stretches the image's intensity:
Ox,y = Ix,y&gamma + beta |
static ImageUInt8 |
stretch(ImageUInt8 input,
double gamma,
int beta,
int max,
ImageUInt8 output)
Stretches the image's intensity:
Ox,y = Ix,y&gamma + beta |
public static ImageUInt8 invert(ImageUInt8 input, int max, ImageUInt8 output)
Inverts the image's intensity:
Ox,y = max - Ix,y
input
- Input image. Not modified.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageUInt8 brighten(ImageUInt8 input, int beta, int max, ImageUInt8 output)
Brightens the image's intensity:
Ox,y = Ix,y + beta
The image's intensity is clamped at 0 and max;
input
- Input image. Not modified.beta
- How much the image is brightened by.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageUInt8 stretch(ImageUInt8 input, double gamma, int beta, int max, ImageUInt8 output)
Stretches the image's intensity:
Ox,y = Ix,y&gamma + beta
The image's intensity is clamped at 0 and max;
input
- Input image. Not modified.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageSInt16 invert(ImageSInt16 input, int max, ImageSInt16 output)
Inverts the image's intensity:
Ox,y = max - Ix,y
input
- Input image. Not modified.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageSInt16 brighten(ImageSInt16 input, int beta, int max, ImageSInt16 output)
Brightens the image's intensity:
Ox,y = Ix,y + beta
The image's intensity is clamped at 0 and max;
input
- Input image. Not modified.beta
- How much the image is brightened by.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageSInt16 stretch(ImageSInt16 input, double gamma, int beta, int max, ImageSInt16 output)
Stretches the image's intensity:
Ox,y = Ix,y&gamma + beta
The image's intensity is clamped at 0 and max;
input
- Input image. Not modified.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageFloat32 invert(ImageFloat32 input, float max, ImageFloat32 output)
Inverts the image's intensity:
Ox,y = max - Ix,y
input
- Input image. Not modified.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageFloat32 brighten(ImageFloat32 input, float beta, float max, ImageFloat32 output)
Brightens the image's intensity:
Ox,y = Ix,y + beta
The image's intensity is clamped at 0 and max;
input
- Input image. Not modified.beta
- How much the image is brightened by.output
- If not null, the output image. If null a new image is declared and returned. Modified.public static ImageFloat32 stretch(ImageFloat32 input, double gamma, float beta, float max, ImageFloat32 output)
Stretches the image's intensity:
Ox,y = Ix,y&gamma + beta
The image's intensity is clamped at 0 and max;
input
- Input image. Not modified.output
- If not null, the output image. If null a new image is declared and returned. Modified.Copyright © 2011-2012 Peter Abeles