Class GrayImageOps
- java.lang.Object
-
- boofcv.alg.filter.basic.GrayImageOps
-
public class GrayImageOps extends java.lang.ObjectPixel-wise operations on gray-scale images.
-
-
Constructor Summary
Constructors Constructor Description GrayImageOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boofcv.struct.image.GrayF32brighten(boofcv.struct.image.GrayF32 input, float beta, float max, boofcv.struct.image.GrayF32 output)Brightens the image's intensity:
Ox,y = Ix,y + betastatic boofcv.struct.image.GrayS16brighten(boofcv.struct.image.GrayS16 input, int beta, int max, boofcv.struct.image.GrayS16 output)Brightens the image's intensity:
Ox,y = Ix,y + betastatic boofcv.struct.image.GrayU8brighten(boofcv.struct.image.GrayU8 input, int beta, int max, boofcv.struct.image.GrayU8 output)Brightens the image's intensity:
Ox,y = Ix,y + betastatic boofcv.struct.image.GrayF32invert(boofcv.struct.image.GrayF32 input, float max, boofcv.struct.image.GrayF32 output)Inverts the image's intensity:
Ox,y = max - Ix,ystatic boofcv.struct.image.GrayS16invert(boofcv.struct.image.GrayS16 input, int max, boofcv.struct.image.GrayS16 output)Inverts the image's intensity:
Ox,y = max - Ix,ystatic boofcv.struct.image.GrayU8invert(boofcv.struct.image.GrayU8 input, int max, boofcv.struct.image.GrayU8 output)Inverts the image's intensity:
Ox,y = max - Ix,ystatic boofcv.struct.image.GrayF32stretch(boofcv.struct.image.GrayF32 input, double gamma, float beta, float max, boofcv.struct.image.GrayF32 output)Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic boofcv.struct.image.GrayS16stretch(boofcv.struct.image.GrayS16 input, double gamma, int beta, int max, boofcv.struct.image.GrayS16 output)Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic boofcv.struct.image.GrayU8stretch(boofcv.struct.image.GrayU8 input, double gamma, int beta, int max, boofcv.struct.image.GrayU8 output)Stretches the image's intensity:
Ox,y = Ix,yγ + beta
-
-
-
Method Detail
-
invert
public static boofcv.struct.image.GrayU8 invert(boofcv.struct.image.GrayU8 input, int max, boofcv.struct.image.GrayU8 output)Inverts the image's intensity:
Ox,y = max - Ix,y
- Parameters:
input- Input image. Not modified.output- If not null, the output image. If null a new image is declared and returned. Modified.- Returns:
- Output image.
-
brighten
public static boofcv.struct.image.GrayU8 brighten(boofcv.struct.image.GrayU8 input, int beta, int max, boofcv.struct.image.GrayU8 output)Brightens the image's intensity:
Ox,y = Ix,y + beta
The image's intensity is clamped at 0 and max;
- Parameters:
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.- Returns:
- Output image.
-
stretch
public static boofcv.struct.image.GrayU8 stretch(boofcv.struct.image.GrayU8 input, double gamma, int beta, int max, boofcv.struct.image.GrayU8 output)Stretches the image's intensity:
Ox,y = Ix,yγ + beta
The image's intensity is clamped at 0 and max;
- Parameters:
input- Input image. Not modified.output- If not null, the output image. If null a new image is declared and returned. Modified.- Returns:
- Output image.
-
invert
public static boofcv.struct.image.GrayS16 invert(boofcv.struct.image.GrayS16 input, int max, boofcv.struct.image.GrayS16 output)Inverts the image's intensity:
Ox,y = max - Ix,y
- Parameters:
input- Input image. Not modified.output- If not null, the output image. If null a new image is declared and returned. Modified.- Returns:
- Output image.
-
brighten
public static boofcv.struct.image.GrayS16 brighten(boofcv.struct.image.GrayS16 input, int beta, int max, boofcv.struct.image.GrayS16 output)Brightens the image's intensity:
Ox,y = Ix,y + beta
The image's intensity is clamped at 0 and max;
- Parameters:
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.- Returns:
- Output image.
-
stretch
public static boofcv.struct.image.GrayS16 stretch(boofcv.struct.image.GrayS16 input, double gamma, int beta, int max, boofcv.struct.image.GrayS16 output)Stretches the image's intensity:
Ox,y = Ix,yγ + beta
The image's intensity is clamped at 0 and max;
- Parameters:
input- Input image. Not modified.output- If not null, the output image. If null a new image is declared and returned. Modified.- Returns:
- Output image.
-
invert
public static boofcv.struct.image.GrayF32 invert(boofcv.struct.image.GrayF32 input, float max, boofcv.struct.image.GrayF32 output)Inverts the image's intensity:
Ox,y = max - Ix,y
- Parameters:
input- Input image. Not modified.output- If not null, the output image. If null a new image is declared and returned. Modified.- Returns:
- Output image.
-
brighten
public static boofcv.struct.image.GrayF32 brighten(boofcv.struct.image.GrayF32 input, float beta, float max, boofcv.struct.image.GrayF32 output)Brightens the image's intensity:
Ox,y = Ix,y + beta
The image's intensity is clamped at 0 and max;
- Parameters:
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.- Returns:
- Output image.
-
stretch
public static boofcv.struct.image.GrayF32 stretch(boofcv.struct.image.GrayF32 input, double gamma, float beta, float max, boofcv.struct.image.GrayF32 output)Stretches the image's intensity:
Ox,y = Ix,yγ + beta
The image's intensity is clamped at 0 and max;
- Parameters:
input- Input image. Not modified.output- If not null, the output image. If null a new image is declared and returned. Modified.- Returns:
- Output image.
-
-