Class GrayImageOps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GrayF32Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayS16Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayU8Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayF32Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayS16Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayU8Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayF32Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic GrayS16Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic GrayU8Stretches the image's intensity:
Ox,y = Ix,yγ + beta
-
Constructor Details
-
GrayImageOps
public GrayImageOps()
-
-
Method Details
-
invert
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
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
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
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
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
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
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
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
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.
-