Package boofcv.alg.filter.basic
Class GGrayImageOps
java.lang.Object
boofcv.alg.filter.basic.GGrayImageOps
Weakly typed version of
GrayImageOps
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageGray<T>>
Tbrighten
(T input, double beta, double max, T output) Brightens the image's intensity:
Ox,y = Ix,y + betastatic <T extends ImageGray<T>>
Tstretch
(T input, double gamma, double beta, double max, T output) Stretches the image's intensity:
Ox,y = Ix,yγ + beta
-
Constructor Details
-
GGrayImageOps
public GGrayImageOps()
-
-
Method Details
-
stretch
public static <T extends ImageGray<T>> T stretch(T input, double gamma, double beta, double max, T 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.
-
brighten
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.
-