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 and Description GrayImageOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static GrayF32brighten(GrayF32 input, float beta, float max, GrayF32 output)Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayS16brighten(GrayS16 input, int beta, int max, GrayS16 output)Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayU8brighten(GrayU8 input, int beta, int max, GrayU8 output)Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayF32invert(GrayF32 input, float max, GrayF32 output)Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayS16invert(GrayS16 input, int max, GrayS16 output)Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayU8invert(GrayU8 input, int max, GrayU8 output)Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayF32stretch(GrayF32 input, double gamma, float beta, float max, GrayF32 output)Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic GrayS16stretch(GrayS16 input, double gamma, int beta, int max, GrayS16 output)Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic GrayU8stretch(GrayU8 input, double gamma, int beta, int max, GrayU8 output)Stretches the image's intensity:
Ox,y = Ix,yγ + beta
-
-
-
Method Detail
-
invert
public static GrayU8 invert(GrayU8 input, int max, 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 GrayU8 brighten(GrayU8 input, int beta, int max, 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 GrayU8 stretch(GrayU8 input, double gamma, int beta, int max, 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 GrayS16 invert(GrayS16 input, int max, 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 GrayS16 brighten(GrayS16 input, int beta, int max, 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 GrayS16 stretch(GrayS16 input, double gamma, int beta, int max, 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 GrayF32 invert(GrayF32 input, float max, 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 GrayF32 brighten(GrayF32 input, float beta, float max, 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 GrayF32 stretch(GrayF32 input, double gamma, float beta, float max, 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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG