Package boofcv.alg.misc
Class ImageMiscOps
java.lang.Object
boofcv.alg.misc.ImageMiscOps
Basic image operations which have no place better to go.
DO NOT MODIFY. Automatically generated code created by GenerateImageMiscOps
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
If the image has fewer than this elements do not run the concurrent version of the function since it could run slower -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addGaussian
(GrayF32 image, Random rand, double sigma, float lowerBound, float upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(GrayF64 image, Random rand, double sigma, double lowerBound, double upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(GrayS16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(GrayS32 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(GrayS64 image, Random rand, double sigma, long lowerBound, long upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(GrayS8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(GrayU16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(GrayU8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedF32 image, Random rand, double sigma, float lowerBound, float upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedF64 image, Random rand, double sigma, double lowerBound, double upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedS16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedS32 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedS64 image, Random rand, double sigma, long lowerBound, long upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedS8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedU16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addGaussian
(InterleavedU8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image.static void
addUniform
(GrayF32 input, Random rand, float min, float max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(GrayF64 input, Random rand, double min, double max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(GrayS16 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(GrayS32 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(GrayS64 input, Random rand, long min, long max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(GrayS8 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(GrayU16 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(GrayU8 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedF32 input, Random rand, float min, float max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedF64 input, Random rand, double min, double max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedS16 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedS32 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedS64 input, Random rand, long min, long max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedS8 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedU16 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
addUniform
(InterleavedU8 input, Random rand, int min, int max) Adds uniform i.i.d noise to each pixel in the image.static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF32 input, ImageBorder_F32 border, GrayF32 output) Copies a rectangular region from one image into another.static void
Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF64 input, ImageBorder_F64 border, GrayF64 output) Copies a rectangular region from one image into another.static void
Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS32 input, ImageBorder_S32 border, GrayS32 output) Copies a rectangular region from one image into another.static void
Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS64 input, ImageBorder_S64 border, GrayS64 output) Copies a rectangular region from one image into another.static void
Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedF32 input, InterleavedF32 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedF64 input, InterleavedF64 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedI16 input, InterleavedI16 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedI8 input, InterleavedI8 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedS32 input, InterleavedS32 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static void
copy
(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedS64 input, InterleavedS64 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]static <T extends GrayI16<T>>
voidcopy
(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, ImageBorder_S32<T> border, GrayI16 output) Copies a rectangular region from one image into another.static <T extends GrayI8<T>>
voidcopy
(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, ImageBorder_S32<T> border, GrayI8 output) Copies a rectangular region from one image into another.static void
extractBand
(InterleavedF32 input, int band, GrayF32 output) Extracts a single band from a multi-band imagestatic void
extractBand
(InterleavedF64 input, int band, GrayF64 output) Extracts a single band from a multi-band imagestatic void
extractBand
(InterleavedI16 input, int band, GrayI16 output) Extracts a single band from a multi-band imagestatic void
extractBand
(InterleavedI8 input, int band, GrayI8 output) Extracts a single band from a multi-band imagestatic void
extractBand
(InterleavedS32 input, int band, GrayS32 output) Extracts a single band from a multi-band imagestatic void
extractBand
(InterleavedS64 input, int band, GrayS64 output) Extracts a single band from a multi-band imagestatic void
Fills the whole image with the specified valuestatic void
Fills the whole image with the specified valuestatic void
Fills the whole image with the specified valuestatic void
Fills the whole image with the specified valuestatic void
Fills the whole image with the specified valuestatic void
Fills the whole image with the specified valuestatic void
fill
(InterleavedF32 image, float value) Fills the whole image with the specified valuestatic void
fill
(InterleavedF32 image, float[] values) Fills each band in the image with the specified valuesstatic void
fill
(InterleavedF64 image, double value) Fills the whole image with the specified valuestatic void
fill
(InterleavedF64 image, double[] values) Fills each band in the image with the specified valuesstatic void
fill
(InterleavedI16 image, int value) Fills the whole image with the specified valuestatic void
fill
(InterleavedI16 image, int[] values) Fills each band in the image with the specified valuesstatic void
fill
(InterleavedI8 image, int value) Fills the whole image with the specified valuestatic void
fill
(InterleavedI8 image, int[] values) Fills each band in the image with the specified valuesstatic void
fill
(InterleavedS32 image, int value) Fills the whole image with the specified valuestatic void
fill
(InterleavedS32 image, int[] values) Fills each band in the image with the specified valuesstatic void
fill
(InterleavedS64 image, long value) Fills the whole image with the specified valuestatic void
fill
(InterleavedS64 image, long[] values) Fills each band in the image with the specified valuesstatic void
fillBand
(InterleavedF32 image, int band, float value) Fills one band in the image with the specified valuestatic void
fillBand
(InterleavedF64 image, int band, double value) Fills one band in the image with the specified valuestatic void
fillBand
(InterleavedI16 image, int band, int value) Fills one band in the image with the specified valuestatic void
fillBand
(InterleavedI8 image, int band, int value) Fills one band in the image with the specified valuestatic void
fillBand
(InterleavedS32 image, int band, int value) Fills one band in the image with the specified valuestatic void
fillBand
(InterleavedS64 image, int band, long value) Fills one band in the image with the specified valuestatic void
fillBorder
(GrayF32 image, float value, int radius) Fills the outside border with the specified valuestatic void
fillBorder
(GrayF32 image, float value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each sidestatic void
fillBorder
(GrayF64 image, double value, int radius) Fills the outside border with the specified valuestatic void
fillBorder
(GrayF64 image, double value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each sidestatic void
fillBorder
(GrayI16 image, int value, int radius) Fills the outside border with the specified valuestatic void
fillBorder
(GrayI16 image, int value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each sidestatic void
fillBorder
(GrayI8 image, int value, int radius) Fills the outside border with the specified valuestatic void
fillBorder
(GrayI8 image, int value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each sidestatic void
fillBorder
(GrayS32 image, int value, int radius) Fills the outside border with the specified valuestatic void
fillBorder
(GrayS32 image, int value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each sidestatic void
fillBorder
(GrayS64 image, long value, int radius) Fills the outside border with the specified valuestatic void
fillBorder
(GrayS64 image, long value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each sidestatic void
fillGaussian
(GrayF32 input, Random rand, double mean, double sigma, float lowerBound, float upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(GrayF64 input, Random rand, double mean, double sigma, double lowerBound, double upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(GrayI16 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(GrayI8 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(GrayS32 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(GrayS64 input, Random rand, double mean, double sigma, long lowerBound, long upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(InterleavedF32 input, Random rand, double mean, double sigma, float lowerBound, float upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(InterleavedF64 input, Random rand, double mean, double sigma, double lowerBound, double upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(InterleavedI16 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(InterleavedI8 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(InterleavedS32 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillGaussian
(InterleavedS64 input, Random rand, double mean, double sigma, long lowerBound, long upperBound) Sets each value in the image to a value drawn from a Gaussian distribution.static void
fillRectangle
(GrayF32 image, float value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(GrayF64 image, double value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(GrayI16 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(GrayI8 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(GrayS32 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(GrayS64 image, long value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(InterleavedF32 image, float value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(InterleavedF64 image, double value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(InterleavedI16 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(InterleavedI8 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(InterleavedS32 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillRectangle
(InterleavedS64 image, long value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.static void
fillUniform
(GrayF32 img, Random rand, float min, float max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(GrayF64 img, Random rand, double min, double max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(GrayI16 img, Random rand, int min, int max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(GrayI8 img, Random rand, int min, int max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(GrayS32 img, Random rand, int min, int max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(GrayS64 img, Random rand, long min, long max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(InterleavedF32 img, Random rand, float min, float max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(InterleavedF64 img, Random rand, double min, double max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(InterleavedI16 img, Random rand, int min, int max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(InterleavedI8 img, Random rand, int min, int max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(InterleavedS32 img, Random rand, int min, int max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
fillUniform
(InterleavedS64 img, Random rand, long min, long max) Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.static void
filter
(GrayF32 image, BoofLambdas.FilterPixel_F32 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
filter
(GrayF64 image, BoofLambdas.FilterPixel_F64 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
filter
(GrayS16 image, BoofLambdas.FilterPixel_S32 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
filter
(GrayS32 image, BoofLambdas.FilterPixel_S32 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
filter
(GrayS64 image, BoofLambdas.FilterPixel_S64 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
filter
(GrayS8 image, BoofLambdas.FilterPixel_S32 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
filter
(GrayU16 image, BoofLambdas.FilterPixel_S32 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
filter
(GrayU8 image, BoofLambdas.FilterPixel_S32 op) Functional API for modifying an images pixel values based on coordinate and valuestatic void
findAndProcess
(GrayF32 input, BoofLambdas.Match_F32 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process functionstatic void
findAndProcess
(GrayF64 input, BoofLambdas.Match_F64 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process functionstatic void
findAndProcess
(GrayI16 input, BoofLambdas.Match_I16 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process functionstatic void
findAndProcess
(GrayI8 input, BoofLambdas.Match_I8 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process functionstatic void
findAndProcess
(GrayS32 input, BoofLambdas.Match_S32 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process functionstatic void
findAndProcess
(GrayS64 input, BoofLambdas.Match_S64 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process functionstatic void
flipHorizontal
(GrayF32 image) Flips the image from left to rightstatic void
flipHorizontal
(GrayF64 image) Flips the image from left to rightstatic void
flipHorizontal
(GrayI16 image) Flips the image from left to rightstatic void
flipHorizontal
(GrayI8 image) Flips the image from left to rightstatic void
flipHorizontal
(GrayS32 image) Flips the image from left to rightstatic void
flipHorizontal
(GrayS64 image) Flips the image from left to rightstatic void
flipVertical
(GrayF32 image) Flips the image from top to bottomstatic void
flipVertical
(GrayF64 image) Flips the image from top to bottomstatic void
flipVertical
(GrayI16 image) Flips the image from top to bottomstatic void
flipVertical
(GrayI8 image) Flips the image from top to bottomstatic void
flipVertical
(GrayS32 image) Flips the image from top to bottomstatic void
flipVertical
(GrayS64 image) Flips the image from top to bottomstatic void
growBorder
(GrayF32 src, ImageBorder_F32 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayF32 dst) Creates a new image which is a copy of the src image but extended with border pixels.static void
growBorder
(GrayF64 src, ImageBorder_F64 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayF64 dst) Creates a new image which is a copy of the src image but extended with border pixels.static void
growBorder
(GrayS32 src, ImageBorder_S32 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayS32 dst) Creates a new image which is a copy of the src image but extended with border pixels.static void
growBorder
(GrayS64 src, ImageBorder_S64 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayS64 dst) Creates a new image which is a copy of the src image but extended with border pixels.static <T extends GrayI8<T>>
voidgrowBorder
(T src, ImageBorder_S32<T> border, int borderX0, int borderY0, int borderX1, int borderY1, T dst) Creates a new image which is a copy of the src image but extended with border pixels.static void
insertBand
(GrayF32 input, int band, InterleavedF32 output) Inserts a single band into a multi-band image overwriting the original bandstatic void
insertBand
(GrayF64 input, int band, InterleavedF64 output) Inserts a single band into a multi-band image overwriting the original bandstatic void
insertBand
(GrayI16 input, int band, InterleavedI16 output) Inserts a single band into a multi-band image overwriting the original bandstatic void
insertBand
(GrayI8 input, int band, InterleavedI8 output) Inserts a single band into a multi-band image overwriting the original bandstatic void
insertBand
(GrayS32 input, int band, InterleavedS32 output) Inserts a single band into a multi-band image overwriting the original bandstatic void
insertBand
(GrayS64 input, int band, InterleavedS64 output) Inserts a single band into a multi-band image overwriting the original bandstatic void
Fills pixels in the image that match the mask target value image with the specified fill valuestatic void
Fills pixels in the image that match the mask target value image with the specified fill valuestatic void
Fills pixels in the image that match the mask target value image with the specified fill valuestatic void
Fills pixels in the image that match the mask target value image with the specified fill valuestatic void
Fills pixels in the image that match the mask target value image with the specified fill valuestatic void
Fills pixels in the image that match the mask target value image with the specified fill valuestatic void
In-place 90 degree image rotation in the counter-clockwise direction.static void
In-place 90 degree image rotation in the counter-clockwise direction.static void
In-place 90 degree image rotation in the counter-clockwise direction.static void
In-place 90 degree image rotation in the counter-clockwise direction.static void
In-place 90 degree image rotation in the counter-clockwise direction.static void
In-place 90 degree image rotation in the counter-clockwise direction.static <T extends GrayI8<T>>
TrotateCCW
(T input, T output) Rotates the image 90 degrees in the counter-clockwise direction.static void
In-place 90 degree image rotation in the clockwise direction.static void
In-place 90 degree image rotation in the clockwise direction.static void
In-place 90 degree image rotation in the clockwise direction.static void
In-place 90 degree image rotation in the clockwise direction.static void
In-place 90 degree image rotation in the clockwise direction.static void
In-place 90 degree image rotation in the clockwise direction.static <T extends GrayI8<T>>
TrotateCW
(T input, T output) Rotates the image 90 degrees in the clockwise direction.static boolean
runConcurrent
(int numElements) static boolean
runConcurrent
(ImageBase image) static <T extends GrayI8<T>>
Ttranspose
(T input, T output) Transposes the image
-
Field Details
-
MIN_ELEMENTS_CONCURRENT
public static int MIN_ELEMENTS_CONCURRENTIf the image has fewer than this elements do not run the concurrent version of the function since it could run slower
-
-
Constructor Details
-
ImageMiscOps
public ImageMiscOps()
-
-
Method Details
-
runConcurrent
-
runConcurrent
public static boolean runConcurrent(int numElements) -
copy
public static <T extends GrayI8<T>> void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, ImageBorder_S32<T> border, GrayI8 output) Copies a rectangular region from one image into another. The region can go outside the input image's border.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageborder
- Border for input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayI8 input, GrayI8 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedI8 input, InterleavedI8 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
maskFill
Fills pixels in the image that match the mask target value image with the specified fill value- Parameters:
image
- An image. Modified.mask
- Mask that indicates which pixels to fill. Not modified.maskTarget
- Pixels in the mask which match this value will be filled.value
- The value that the image is being filled with.
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
fill
Fills each band in the image with the specified values- Parameters:
image
- An image. Modified.values
- Array which contains the values each band is to be filled with.
-
fillBand
Fills one band in the image with the specified value- Parameters:
image
- An image. Modified.band
- Which band is to be filled with the specified valuevalue
- The value that the image is being filled with.
-
insertBand
Inserts a single band into a multi-band image overwriting the original band- Parameters:
input
- Single band imageband
- Which band the image is to be inserted intooutput
- The multi-band image which the input image is to be inserted into
-
extractBand
Extracts a single band from a multi-band image- Parameters:
input
- Multi-band image.band
- which bad is to be extractedoutput
- The single band image. Modified.
-
fillBorder
Fills the outside border with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.radius
- Border width.
-
fillBorder
public static void fillBorder(GrayI8 image, int value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each side- Parameters:
image
- An image.value
- The value that the image is being filled with.borderX0
- Width of border on leftborderY0
- Width of border on topborderX1
- Width of border on rightborderY1
- Width of border on bottom
-
fillRectangle
Draws a filled rectangle that is aligned along the image axis inside the image.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillRectangle
public static void fillRectangle(InterleavedI8 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image. All bands are filled with the same value.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillGaussian
public static void fillGaussian(GrayI8 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedI8 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
flipVertical
Flips the image from top to bottom -
flipHorizontal
Flips the image from left to right -
transpose
Transposes the image -
rotateCW
In-place 90 degree image rotation in the clockwise direction. Only works on square images. -
transpose
Transposes the image -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCCW
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
growBorder
public static <T extends GrayI8<T>> void growBorder(T src, ImageBorder_S32<T> border, int borderX0, int borderY0, int borderX1, int borderY1, T dst) Creates a new image which is a copy of the src image but extended with border pixels.- Parameters:
src
- (Input) source imageborder
- (Input) image border generatorborderX0
- (Input) Border x-axis lower extentborderY0
- (Input) Border y-axis lower extentborderX1
- (Input) Border x-axis upper extentborderY1
- (Input) Border y-axis upper extentdst
- (Output) Output image. width=src.width+2*radiusX and height=src.height+2*radiusY
-
findAndProcess
public static void findAndProcess(GrayI8 input, BoofLambdas.Match_I8 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process function- Parameters:
input
- (Input) Imagefinder
- (Input) Checks to see if the pixel value matches the criteriaprocess
- (Input) When a match is found this function is called and given the coordinates. true = continue
-
copy
public static <T extends GrayI16<T>> void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, ImageBorder_S32<T> border, GrayI16 output) Copies a rectangular region from one image into another. The region can go outside the input image's border.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageborder
- Border for input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayI16 input, GrayI16 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedI16 input, InterleavedI16 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
maskFill
Fills pixels in the image that match the mask target value image with the specified fill value- Parameters:
image
- An image. Modified.mask
- Mask that indicates which pixels to fill. Not modified.maskTarget
- Pixels in the mask which match this value will be filled.value
- The value that the image is being filled with.
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
fill
Fills each band in the image with the specified values- Parameters:
image
- An image. Modified.values
- Array which contains the values each band is to be filled with.
-
fillBand
Fills one band in the image with the specified value- Parameters:
image
- An image. Modified.band
- Which band is to be filled with the specified valuevalue
- The value that the image is being filled with.
-
insertBand
Inserts a single band into a multi-band image overwriting the original band- Parameters:
input
- Single band imageband
- Which band the image is to be inserted intooutput
- The multi-band image which the input image is to be inserted into
-
extractBand
Extracts a single band from a multi-band image- Parameters:
input
- Multi-band image.band
- which bad is to be extractedoutput
- The single band image. Modified.
-
fillBorder
Fills the outside border with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.radius
- Border width.
-
fillBorder
public static void fillBorder(GrayI16 image, int value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each side- Parameters:
image
- An image.value
- The value that the image is being filled with.borderX0
- Width of border on leftborderY0
- Width of border on topborderX1
- Width of border on rightborderY1
- Width of border on bottom
-
fillRectangle
Draws a filled rectangle that is aligned along the image axis inside the image.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillRectangle
public static void fillRectangle(InterleavedI16 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image. All bands are filled with the same value.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillGaussian
public static void fillGaussian(GrayI16 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedI16 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
flipVertical
Flips the image from top to bottom -
flipHorizontal
Flips the image from left to right -
transpose
Transposes the image -
rotateCW
In-place 90 degree image rotation in the clockwise direction. Only works on square images. -
transpose
Transposes the image -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCCW
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
growBorder
public static <T extends GrayI16<T>> void growBorder(T src, ImageBorder_S32<T> border, int borderX0, int borderY0, int borderX1, int borderY1, T dst) Creates a new image which is a copy of the src image but extended with border pixels.- Parameters:
src
- (Input) source imageborder
- (Input) image border generatorborderX0
- (Input) Border x-axis lower extentborderY0
- (Input) Border y-axis lower extentborderX1
- (Input) Border x-axis upper extentborderY1
- (Input) Border y-axis upper extentdst
- (Output) Output image. width=src.width+2*radiusX and height=src.height+2*radiusY
-
findAndProcess
public static void findAndProcess(GrayI16 input, BoofLambdas.Match_I16 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process function- Parameters:
input
- (Input) Imagefinder
- (Input) Checks to see if the pixel value matches the criteriaprocess
- (Input) When a match is found this function is called and given the coordinates. true = continue
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS32 input, ImageBorder_S32 border, GrayS32 output) Copies a rectangular region from one image into another. The region can go outside the input image's border.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageborder
- Border for input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS32 input, GrayS32 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedS32 input, InterleavedS32 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
maskFill
Fills pixels in the image that match the mask target value image with the specified fill value- Parameters:
image
- An image. Modified.mask
- Mask that indicates which pixels to fill. Not modified.maskTarget
- Pixels in the mask which match this value will be filled.value
- The value that the image is being filled with.
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
fill
Fills each band in the image with the specified values- Parameters:
image
- An image. Modified.values
- Array which contains the values each band is to be filled with.
-
fillBand
Fills one band in the image with the specified value- Parameters:
image
- An image. Modified.band
- Which band is to be filled with the specified valuevalue
- The value that the image is being filled with.
-
insertBand
Inserts a single band into a multi-band image overwriting the original band- Parameters:
input
- Single band imageband
- Which band the image is to be inserted intooutput
- The multi-band image which the input image is to be inserted into
-
extractBand
Extracts a single band from a multi-band image- Parameters:
input
- Multi-band image.band
- which bad is to be extractedoutput
- The single band image. Modified.
-
fillBorder
Fills the outside border with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.radius
- Border width.
-
fillBorder
public static void fillBorder(GrayS32 image, int value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each side- Parameters:
image
- An image.value
- The value that the image is being filled with.borderX0
- Width of border on leftborderY0
- Width of border on topborderX1
- Width of border on rightborderY1
- Width of border on bottom
-
fillRectangle
Draws a filled rectangle that is aligned along the image axis inside the image.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillRectangle
public static void fillRectangle(InterleavedS32 image, int value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image. All bands are filled with the same value.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillGaussian
public static void fillGaussian(GrayS32 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedS32 input, Random rand, double mean, double sigma, int lowerBound, int upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
flipVertical
Flips the image from top to bottom -
flipHorizontal
Flips the image from left to right -
transpose
Transposes the image -
rotateCW
In-place 90 degree image rotation in the clockwise direction. Only works on square images. -
transpose
Transposes the image -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCCW
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
growBorder
public static void growBorder(GrayS32 src, ImageBorder_S32 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayS32 dst) Creates a new image which is a copy of the src image but extended with border pixels.- Parameters:
src
- (Input) source imageborder
- (Input) image border generatorborderX0
- (Input) Border x-axis lower extentborderY0
- (Input) Border y-axis lower extentborderX1
- (Input) Border x-axis upper extentborderY1
- (Input) Border y-axis upper extentdst
- (Output) Output image. width=src.width+2*radiusX and height=src.height+2*radiusY
-
findAndProcess
public static void findAndProcess(GrayS32 input, BoofLambdas.Match_S32 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process function- Parameters:
input
- (Input) Imagefinder
- (Input) Checks to see if the pixel value matches the criteriaprocess
- (Input) When a match is found this function is called and given the coordinates. true = continue
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS64 input, ImageBorder_S64 border, GrayS64 output) Copies a rectangular region from one image into another. The region can go outside the input image's border.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageborder
- Border for input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS64 input, GrayS64 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedS64 input, InterleavedS64 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
maskFill
Fills pixels in the image that match the mask target value image with the specified fill value- Parameters:
image
- An image. Modified.mask
- Mask that indicates which pixels to fill. Not modified.maskTarget
- Pixels in the mask which match this value will be filled.value
- The value that the image is being filled with.
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
fill
Fills each band in the image with the specified values- Parameters:
image
- An image. Modified.values
- Array which contains the values each band is to be filled with.
-
fillBand
Fills one band in the image with the specified value- Parameters:
image
- An image. Modified.band
- Which band is to be filled with the specified valuevalue
- The value that the image is being filled with.
-
insertBand
Inserts a single band into a multi-band image overwriting the original band- Parameters:
input
- Single band imageband
- Which band the image is to be inserted intooutput
- The multi-band image which the input image is to be inserted into
-
extractBand
Extracts a single band from a multi-band image- Parameters:
input
- Multi-band image.band
- which bad is to be extractedoutput
- The single band image. Modified.
-
fillBorder
Fills the outside border with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.radius
- Border width.
-
fillBorder
public static void fillBorder(GrayS64 image, long value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each side- Parameters:
image
- An image.value
- The value that the image is being filled with.borderX0
- Width of border on leftborderY0
- Width of border on topborderX1
- Width of border on rightborderY1
- Width of border on bottom
-
fillRectangle
Draws a filled rectangle that is aligned along the image axis inside the image.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillRectangle
public static void fillRectangle(InterleavedS64 image, long value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image. All bands are filled with the same value.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, exclusive
-
fillGaussian
public static void fillGaussian(GrayS64 input, Random rand, double mean, double sigma, long lowerBound, long upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedS64 input, Random rand, double mean, double sigma, long lowerBound, long upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
flipVertical
Flips the image from top to bottom -
flipHorizontal
Flips the image from left to right -
transpose
Transposes the image -
rotateCW
In-place 90 degree image rotation in the clockwise direction. Only works on square images. -
transpose
Transposes the image -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCCW
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
growBorder
public static void growBorder(GrayS64 src, ImageBorder_S64 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayS64 dst) Creates a new image which is a copy of the src image but extended with border pixels.- Parameters:
src
- (Input) source imageborder
- (Input) image border generatorborderX0
- (Input) Border x-axis lower extentborderY0
- (Input) Border y-axis lower extentborderX1
- (Input) Border x-axis upper extentborderY1
- (Input) Border y-axis upper extentdst
- (Output) Output image. width=src.width+2*radiusX and height=src.height+2*radiusY
-
findAndProcess
public static void findAndProcess(GrayS64 input, BoofLambdas.Match_S64 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process function- Parameters:
input
- (Input) Imagefinder
- (Input) Checks to see if the pixel value matches the criteriaprocess
- (Input) When a match is found this function is called and given the coordinates. true = continue
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF32 input, ImageBorder_F32 border, GrayF32 output) Copies a rectangular region from one image into another. The region can go outside the input image's border.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageborder
- Border for input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF32 input, GrayF32 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedF32 input, InterleavedF32 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
maskFill
Fills pixels in the image that match the mask target value image with the specified fill value- Parameters:
image
- An image. Modified.mask
- Mask that indicates which pixels to fill. Not modified.maskTarget
- Pixels in the mask which match this value will be filled.value
- The value that the image is being filled with.
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
fill
Fills each band in the image with the specified values- Parameters:
image
- An image. Modified.values
- Array which contains the values each band is to be filled with.
-
fillBand
Fills one band in the image with the specified value- Parameters:
image
- An image. Modified.band
- Which band is to be filled with the specified valuevalue
- The value that the image is being filled with.
-
insertBand
Inserts a single band into a multi-band image overwriting the original band- Parameters:
input
- Single band imageband
- Which band the image is to be inserted intooutput
- The multi-band image which the input image is to be inserted into
-
extractBand
Extracts a single band from a multi-band image- Parameters:
input
- Multi-band image.band
- which bad is to be extractedoutput
- The single band image. Modified.
-
fillBorder
Fills the outside border with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.radius
- Border width.
-
fillBorder
public static void fillBorder(GrayF32 image, float value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each side- Parameters:
image
- An image.value
- The value that the image is being filled with.borderX0
- Width of border on leftborderY0
- Width of border on topborderX1
- Width of border on rightborderY1
- Width of border on bottom
-
fillRectangle
Draws a filled rectangle that is aligned along the image axis inside the image.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillRectangle
public static void fillRectangle(InterleavedF32 image, float value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image. All bands are filled with the same value.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, inclusive
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, inclusive
-
fillGaussian
public static void fillGaussian(GrayF32 input, Random rand, double mean, double sigma, float lowerBound, float upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedF32 input, Random rand, double mean, double sigma, float lowerBound, float upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
flipVertical
Flips the image from top to bottom -
flipHorizontal
Flips the image from left to right -
transpose
Transposes the image -
rotateCW
In-place 90 degree image rotation in the clockwise direction. Only works on square images. -
transpose
Transposes the image -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCCW
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
growBorder
public static void growBorder(GrayF32 src, ImageBorder_F32 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayF32 dst) Creates a new image which is a copy of the src image but extended with border pixels.- Parameters:
src
- (Input) source imageborder
- (Input) image border generatorborderX0
- (Input) Border x-axis lower extentborderY0
- (Input) Border y-axis lower extentborderX1
- (Input) Border x-axis upper extentborderY1
- (Input) Border y-axis upper extentdst
- (Output) Output image. width=src.width+2*radiusX and height=src.height+2*radiusY
-
findAndProcess
public static void findAndProcess(GrayF32 input, BoofLambdas.Match_F32 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process function- Parameters:
input
- (Input) Imagefinder
- (Input) Checks to see if the pixel value matches the criteriaprocess
- (Input) When a match is found this function is called and given the coordinates. true = continue
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF64 input, ImageBorder_F64 border, GrayF64 output) Copies a rectangular region from one image into another. The region can go outside the input image's border.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageborder
- Border for input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF64 input, GrayF64 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, InterleavedF64 input, InterleavedF64 output) Copies a rectangular region from one image into another.
output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]- Parameters:
srcX
- x-coordinate of corner in input imagesrcY
- y-coordinate of corner in input imagedstX
- x-coordinate of corner in output imagedstY
- y-coordinate of corner in output imagewidth
- Width of region to be copiedheight
- Height of region to be copiedinput
- Input imageoutput
- output image
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
maskFill
Fills pixels in the image that match the mask target value image with the specified fill value- Parameters:
image
- An image. Modified.mask
- Mask that indicates which pixels to fill. Not modified.maskTarget
- Pixels in the mask which match this value will be filled.value
- The value that the image is being filled with.
-
fill
Fills the whole image with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.
-
fill
Fills each band in the image with the specified values- Parameters:
image
- An image. Modified.values
- Array which contains the values each band is to be filled with.
-
fillBand
Fills one band in the image with the specified value- Parameters:
image
- An image. Modified.band
- Which band is to be filled with the specified valuevalue
- The value that the image is being filled with.
-
insertBand
Inserts a single band into a multi-band image overwriting the original band- Parameters:
input
- Single band imageband
- Which band the image is to be inserted intooutput
- The multi-band image which the input image is to be inserted into
-
extractBand
Extracts a single band from a multi-band image- Parameters:
input
- Multi-band image.band
- which bad is to be extractedoutput
- The single band image. Modified.
-
fillBorder
Fills the outside border with the specified value- Parameters:
image
- An image. Modified.value
- The value that the image is being filled with.radius
- Border width.
-
fillBorder
public static void fillBorder(GrayF64 image, double value, int borderX0, int borderY0, int borderX1, int borderY1) Fills the border with independent border widths for each side- Parameters:
image
- An image.value
- The value that the image is being filled with.borderX0
- Width of border on leftborderY0
- Width of border on topborderX1
- Width of border on rightborderY1
- Width of border on bottom
-
fillRectangle
public static void fillRectangle(GrayF64 image, double value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillRectangle
public static void fillRectangle(InterleavedF64 image, double value, int x0, int y0, int width, int height) Draws a filled rectangle that is aligned along the image axis inside the image. All bands are filled with the same value.- Parameters:
image
- The image the rectangle is drawn in. Modifiedvalue
- Value of the rectanglex0
- Top left x-coordinatey0
- Top left y-coordinatewidth
- Rectangle widthheight
- Rectangle height
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, inclusive
-
fillUniform
Sets each value in the image to a value drawn from an uniform distribution that has a range of min ≤ X < max.- Parameters:
img
- Image which is to be filled. Modified.rand
- Random number generatormin
- Minimum value of the distribution, inclusivemax
- Maximum value of the distribution, inclusive
-
fillGaussian
public static void fillGaussian(GrayF64 input, Random rand, double mean, double sigma, double lowerBound, double upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedF64 input, Random rand, double mean, double sigma, double lowerBound, double upperBound) Sets each value in the image to a value drawn from a Gaussian distribution. A user specified lower and upper bound is provided to ensure that the values are within a legal range. A drawn value outside the allowed range will be set to the closest bound.- Parameters:
input
- Input image. Modified.rand
- Random number generatormean
- Distribution's mean.sigma
- Distribution's standard deviation.lowerBound
- Lower bound of value clipupperBound
- Upper bound of value clip
-
flipVertical
Flips the image from top to bottom -
flipHorizontal
Flips the image from left to right -
transpose
Transposes the image -
rotateCW
In-place 90 degree image rotation in the clockwise direction. Only works on square images. -
transpose
Transposes the image -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCW
Rotates the image 90 degrees in the clockwise direction. -
rotateCCW
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
rotateCCW
Rotates the image 90 degrees in the counter-clockwise direction. -
growBorder
public static void growBorder(GrayF64 src, ImageBorder_F64 border, int borderX0, int borderY0, int borderX1, int borderY1, GrayF64 dst) Creates a new image which is a copy of the src image but extended with border pixels.- Parameters:
src
- (Input) source imageborder
- (Input) image border generatorborderX0
- (Input) Border x-axis lower extentborderY0
- (Input) Border y-axis lower extentborderX1
- (Input) Border x-axis upper extentborderY1
- (Input) Border y-axis upper extentdst
- (Output) Output image. width=src.width+2*radiusX and height=src.height+2*radiusY
-
findAndProcess
public static void findAndProcess(GrayF64 input, BoofLambdas.Match_F64 finder, BoofLambdas.ProcessIIB process) Using the provided functions, finds all pixel values which match then calls the process function- Parameters:
input
- (Input) Imagefinder
- (Input) Checks to see if the pixel value matches the criteriaprocess
- (Input) When a match is found this function is called and given the coordinates. true = continue
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayU8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedU8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayS8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedS8 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayU16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedU16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayS16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedS16 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayS32 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedS32 image, Random rand, double sigma, int lowerBound, int upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayS64 image, Random rand, double sigma, long lowerBound, long upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedS64 image, Random rand, double sigma, long lowerBound, long upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayF32 image, Random rand, double sigma, float lowerBound, float upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedF32 image, Random rand, double sigma, float lowerBound, float upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
filter
Functional API for modifying an images pixel values based on coordinate and value -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addUniform
Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max. -
addGaussian
public static void addGaussian(GrayF64 image, Random rand, double sigma, double lowerBound, double upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-
addGaussian
public static void addGaussian(InterleavedF64 image, Random rand, double sigma, double lowerBound, double upperBound) Adds Gaussian/normal i.i.d noise to each pixel in the image. If a value exceeds the specified it will be set to the closest bound.- Parameters:
image
- Input image. Modified.rand
- Random number generator.sigma
- Distributions standard deviation.lowerBound
- Allowed lower boundupperBound
- Allowed upper bound
-