Class GrayImageOps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic GrayF32
Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayS16
Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayU8
Brightens the image's intensity:
Ox,y = Ix,y + betastatic GrayF32
Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayS16
Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayU8
Inverts the image's intensity:
Ox,y = max - Ix,ystatic GrayF32
Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic GrayS16
Stretches the image's intensity:
Ox,y = Ix,yγ + betastatic GrayU8
Stretches 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.
-