Package boofcv.alg.misc
Class ImageMiscOps
- java.lang.Object
-
- boofcv.alg.misc.ImageMiscOps
-
@Generated("boofcv.alg.misc.GenerateImageMiscOps") public class ImageMiscOps extends java.lang.ObjectBasic image operations which have no place better to go.DO NOT MODIFY. This code was automatically generated by GenerateImageMiscOps.
-
-
Field Summary
Fields Modifier and Type Field Description static intMIN_ELEMENTS_CONCURRENTIf the image has fewer than this elements do not run the concurrent version of the function since it could run slower
-
Constructor Summary
Constructors Constructor Description ImageMiscOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddGaussian(boofcv.struct.image.GrayF32 image, java.util.Random rand, double sigma, float lowerBound, float upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.GrayF64 image, java.util.Random rand, double sigma, double lowerBound, double upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.GrayS16 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.GrayS32 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.GrayS64 image, java.util.Random rand, double sigma, long lowerBound, long upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.GrayS8 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.GrayU16 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.GrayU8 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedF32 image, java.util.Random rand, double sigma, float lowerBound, float upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedF64 image, java.util.Random rand, double sigma, double lowerBound, double upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedS16 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedS32 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedS64 image, java.util.Random rand, double sigma, long lowerBound, long upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedS8 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedU16 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddGaussian(boofcv.struct.image.InterleavedU8 image, java.util.Random rand, double sigma, int lowerBound, int upperBound)Adds Gaussian/normal i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayF32 input, java.util.Random rand, float min, float max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayF64 input, java.util.Random rand, double min, double max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayS16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayS32 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayS64 input, java.util.Random rand, long min, long max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayS8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayU16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.GrayU8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedF32 input, java.util.Random rand, float min, float max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedF64 input, java.util.Random rand, double min, double max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedS16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedS32 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedS64 input, java.util.Random rand, long min, long max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedS8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedU16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(boofcv.struct.image.InterleavedU8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayF32 input, boofcv.struct.border.ImageBorder_F32 border, boofcv.struct.image.GrayF32 output)Copies a rectangular region from one image into another.static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayF32 input, boofcv.struct.image.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)]static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayF64 input, boofcv.struct.border.ImageBorder_F64 border, boofcv.struct.image.GrayF64 output)Copies a rectangular region from one image into another.static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayF64 input, boofcv.struct.image.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)]static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayI16 input, boofcv.struct.image.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)]static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayI8 input, boofcv.struct.image.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)]static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayS32 input, boofcv.struct.border.ImageBorder_S32 border, boofcv.struct.image.GrayS32 output)Copies a rectangular region from one image into another.static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayS32 input, boofcv.struct.image.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)]static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayS64 input, boofcv.struct.border.ImageBorder_S64 border, boofcv.struct.image.GrayS64 output)Copies a rectangular region from one image into another.static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayS64 input, boofcv.struct.image.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)]static voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.InterleavedF32 input, boofcv.struct.image.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 voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.InterleavedF64 input, boofcv.struct.image.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 voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.InterleavedI16 input, boofcv.struct.image.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 voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.InterleavedI8 input, boofcv.struct.image.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 voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.InterleavedS32 input, boofcv.struct.image.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 voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.InterleavedS64 input, boofcv.struct.image.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 boofcv.struct.image.GrayI16<T>>
voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, boofcv.struct.border.ImageBorder_S32<T> border, boofcv.struct.image.GrayI16 output)Copies a rectangular region from one image into another.static <T extends boofcv.struct.image.GrayI8<T>>
voidcopy(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, boofcv.struct.border.ImageBorder_S32<T> border, boofcv.struct.image.GrayI8 output)Copies a rectangular region from one image into another.static voidextractBand(boofcv.struct.image.InterleavedF32 input, int band, boofcv.struct.image.GrayF32 output)Extracts a single band from a multi-band imagestatic voidextractBand(boofcv.struct.image.InterleavedF64 input, int band, boofcv.struct.image.GrayF64 output)Extracts a single band from a multi-band imagestatic voidextractBand(boofcv.struct.image.InterleavedI16 input, int band, boofcv.struct.image.GrayI16 output)Extracts a single band from a multi-band imagestatic voidextractBand(boofcv.struct.image.InterleavedI8 input, int band, boofcv.struct.image.GrayI8 output)Extracts a single band from a multi-band imagestatic voidextractBand(boofcv.struct.image.InterleavedS32 input, int band, boofcv.struct.image.GrayS32 output)Extracts a single band from a multi-band imagestatic voidextractBand(boofcv.struct.image.InterleavedS64 input, int band, boofcv.struct.image.GrayS64 output)Extracts a single band from a multi-band imagestatic voidfill(boofcv.struct.image.GrayF32 image, float value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.GrayF64 image, double value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.GrayI16 image, int value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.GrayI8 image, int value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.GrayS32 image, int value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.GrayS64 image, long value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.InterleavedF32 image, float value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.InterleavedF32 image, float[] values)Fills each band in the image with the specified valuesstatic voidfill(boofcv.struct.image.InterleavedF64 image, double value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.InterleavedF64 image, double[] values)Fills each band in the image with the specified valuesstatic voidfill(boofcv.struct.image.InterleavedI16 image, int value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.InterleavedI16 image, int[] values)Fills each band in the image with the specified valuesstatic voidfill(boofcv.struct.image.InterleavedI8 image, int value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.InterleavedI8 image, int[] values)Fills each band in the image with the specified valuesstatic voidfill(boofcv.struct.image.InterleavedS32 image, int value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.InterleavedS32 image, int[] values)Fills each band in the image with the specified valuesstatic voidfill(boofcv.struct.image.InterleavedS64 image, long value)Fills the whole image with the specified valuestatic voidfill(boofcv.struct.image.InterleavedS64 image, long[] values)Fills each band in the image with the specified valuesstatic voidfillBand(boofcv.struct.image.InterleavedF32 image, int band, float value)Fills one band in the image with the specified valuestatic voidfillBand(boofcv.struct.image.InterleavedF64 image, int band, double value)Fills one band in the image with the specified valuestatic voidfillBand(boofcv.struct.image.InterleavedI16 image, int band, int value)Fills one band in the image with the specified valuestatic voidfillBand(boofcv.struct.image.InterleavedI8 image, int band, int value)Fills one band in the image with the specified valuestatic voidfillBand(boofcv.struct.image.InterleavedS32 image, int band, int value)Fills one band in the image with the specified valuestatic voidfillBand(boofcv.struct.image.InterleavedS64 image, int band, long value)Fills one band in the image with the specified valuestatic voidfillBorder(boofcv.struct.image.GrayF32 image, float value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(boofcv.struct.image.GrayF32 image, float value, int borderX0, int borderY0, int borderX1, int borderY1)Fills the border with independent border widths for each sidestatic voidfillBorder(boofcv.struct.image.GrayF64 image, double value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(boofcv.struct.image.GrayF64 image, double value, int borderX0, int borderY0, int borderX1, int borderY1)Fills the border with independent border widths for each sidestatic voidfillBorder(boofcv.struct.image.GrayI16 image, int value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(boofcv.struct.image.GrayI16 image, int value, int borderX0, int borderY0, int borderX1, int borderY1)Fills the border with independent border widths for each sidestatic voidfillBorder(boofcv.struct.image.GrayI8 image, int value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(boofcv.struct.image.GrayI8 image, int value, int borderX0, int borderY0, int borderX1, int borderY1)Fills the border with independent border widths for each sidestatic voidfillBorder(boofcv.struct.image.GrayS32 image, int value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(boofcv.struct.image.GrayS32 image, int value, int borderX0, int borderY0, int borderX1, int borderY1)Fills the border with independent border widths for each sidestatic voidfillBorder(boofcv.struct.image.GrayS64 image, long value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(boofcv.struct.image.GrayS64 image, long value, int borderX0, int borderY0, int borderX1, int borderY1)Fills the border with independent border widths for each sidestatic voidfillGaussian(boofcv.struct.image.GrayF32 input, java.util.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 voidfillGaussian(boofcv.struct.image.GrayF64 input, java.util.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 voidfillGaussian(boofcv.struct.image.GrayI16 input, java.util.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 voidfillGaussian(boofcv.struct.image.GrayI8 input, java.util.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 voidfillGaussian(boofcv.struct.image.GrayS32 input, java.util.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 voidfillGaussian(boofcv.struct.image.GrayS64 input, java.util.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 voidfillGaussian(boofcv.struct.image.InterleavedF32 input, java.util.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 voidfillGaussian(boofcv.struct.image.InterleavedF64 input, java.util.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 voidfillGaussian(boofcv.struct.image.InterleavedI16 input, java.util.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 voidfillGaussian(boofcv.struct.image.InterleavedI8 input, java.util.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 voidfillGaussian(boofcv.struct.image.InterleavedS32 input, java.util.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 voidfillGaussian(boofcv.struct.image.InterleavedS64 input, java.util.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillRectangle(boofcv.struct.image.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 voidfillUniform(boofcv.struct.image.GrayF32 img, java.util.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 voidfillUniform(boofcv.struct.image.GrayF64 img, java.util.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 voidfillUniform(boofcv.struct.image.GrayI16 img, java.util.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 voidfillUniform(boofcv.struct.image.GrayI8 img, java.util.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 voidfillUniform(boofcv.struct.image.GrayS32 img, java.util.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 voidfillUniform(boofcv.struct.image.GrayS64 img, java.util.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 voidfillUniform(boofcv.struct.image.InterleavedF32 img, java.util.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 voidfillUniform(boofcv.struct.image.InterleavedF64 img, java.util.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 voidfillUniform(boofcv.struct.image.InterleavedI16 img, java.util.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 voidfillUniform(boofcv.struct.image.InterleavedI8 img, java.util.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 voidfillUniform(boofcv.struct.image.InterleavedS32 img, java.util.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 voidfillUniform(boofcv.struct.image.InterleavedS64 img, java.util.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 voidflipHorizontal(boofcv.struct.image.GrayF32 image)Flips the image from left to rightstatic voidflipHorizontal(boofcv.struct.image.GrayF64 image)Flips the image from left to rightstatic voidflipHorizontal(boofcv.struct.image.GrayI16 image)Flips the image from left to rightstatic voidflipHorizontal(boofcv.struct.image.GrayI8 image)Flips the image from left to rightstatic voidflipHorizontal(boofcv.struct.image.GrayS32 image)Flips the image from left to rightstatic voidflipHorizontal(boofcv.struct.image.GrayS64 image)Flips the image from left to rightstatic voidflipVertical(boofcv.struct.image.GrayF32 image)Flips the image from top to bottomstatic voidflipVertical(boofcv.struct.image.GrayF64 image)Flips the image from top to bottomstatic voidflipVertical(boofcv.struct.image.GrayI16 image)Flips the image from top to bottomstatic voidflipVertical(boofcv.struct.image.GrayI8 image)Flips the image from top to bottomstatic voidflipVertical(boofcv.struct.image.GrayS32 image)Flips the image from top to bottomstatic voidflipVertical(boofcv.struct.image.GrayS64 image)Flips the image from top to bottomstatic voidgrowBorder(boofcv.struct.image.GrayF32 src, boofcv.struct.border.ImageBorder_F32 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.GrayF32 dst)Creates a new image which is a copy of the src image but extended with border pixels.static voidgrowBorder(boofcv.struct.image.GrayF64 src, boofcv.struct.border.ImageBorder_F64 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.GrayF64 dst)Creates a new image which is a copy of the src image but extended with border pixels.static voidgrowBorder(boofcv.struct.image.GrayS32 src, boofcv.struct.border.ImageBorder_S32 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.GrayS32 dst)Creates a new image which is a copy of the src image but extended with border pixels.static voidgrowBorder(boofcv.struct.image.GrayS64 src, boofcv.struct.border.ImageBorder_S64 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.GrayS64 dst)Creates a new image which is a copy of the src image but extended with border pixels.static <T extends boofcv.struct.image.GrayI8<T>>
voidgrowBorder(T src, boofcv.struct.border.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 voidinsertBand(boofcv.struct.image.GrayF32 input, int band, boofcv.struct.image.InterleavedF32 output)Inserts a single band into a multi-band image overwriting the original bandstatic voidinsertBand(boofcv.struct.image.GrayF64 input, int band, boofcv.struct.image.InterleavedF64 output)Inserts a single band into a multi-band image overwriting the original bandstatic voidinsertBand(boofcv.struct.image.GrayI16 input, int band, boofcv.struct.image.InterleavedI16 output)Inserts a single band into a multi-band image overwriting the original bandstatic voidinsertBand(boofcv.struct.image.GrayI8 input, int band, boofcv.struct.image.InterleavedI8 output)Inserts a single band into a multi-band image overwriting the original bandstatic voidinsertBand(boofcv.struct.image.GrayS32 input, int band, boofcv.struct.image.InterleavedS32 output)Inserts a single band into a multi-band image overwriting the original bandstatic voidinsertBand(boofcv.struct.image.GrayS64 input, int band, boofcv.struct.image.InterleavedS64 output)Inserts a single band into a multi-band image overwriting the original bandstatic voidrotateCCW(boofcv.struct.image.GrayF32 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayF32 input, boofcv.struct.image.GrayF32 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayF64 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayF64 input, boofcv.struct.image.GrayF64 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayI16 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayI16 input, boofcv.struct.image.GrayI16 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayI8 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayI8 input, boofcv.struct.image.GrayI8 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayS32 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayS32 input, boofcv.struct.image.GrayS32 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayS64 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.GrayS64 input, boofcv.struct.image.GrayS64 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.InterleavedF32 input, boofcv.struct.image.InterleavedF32 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.InterleavedF64 input, boofcv.struct.image.InterleavedF64 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.InterleavedI16 input, boofcv.struct.image.InterleavedI16 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.InterleavedI8 input, boofcv.struct.image.InterleavedI8 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.InterleavedS32 input, boofcv.struct.image.InterleavedS32 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(boofcv.struct.image.InterleavedS64 input, boofcv.struct.image.InterleavedS64 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCW(boofcv.struct.image.GrayF32 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayF32 input, boofcv.struct.image.GrayF32 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayF64 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayF64 input, boofcv.struct.image.GrayF64 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayI16 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayI16 input, boofcv.struct.image.GrayI16 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayI8 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayI8 input, boofcv.struct.image.GrayI8 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayS32 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayS32 input, boofcv.struct.image.GrayS32 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayS64 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(boofcv.struct.image.GrayS64 input, boofcv.struct.image.GrayS64 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.InterleavedF32 input, boofcv.struct.image.InterleavedF32 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.InterleavedF64 input, boofcv.struct.image.InterleavedF64 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.InterleavedI16 input, boofcv.struct.image.InterleavedI16 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.InterleavedI8 input, boofcv.struct.image.InterleavedI8 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.InterleavedS32 input, boofcv.struct.image.InterleavedS32 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(boofcv.struct.image.InterleavedS64 input, boofcv.struct.image.InterleavedS64 output)Rotates the image 90 degrees in the clockwise direction.static booleanrunConcurrent(int numElements)static booleanrunConcurrent(boofcv.struct.image.ImageBase image)
-
-
-
Method Detail
-
runConcurrent
public static boolean runConcurrent(boofcv.struct.image.ImageBase image)
-
runConcurrent
public static boolean runConcurrent(int numElements)
-
copy
public static <T extends boofcv.struct.image.GrayI8<T>> void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, boofcv.struct.border.ImageBorder_S32<T> border, boofcv.struct.image.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, boofcv.struct.image.GrayI8 input, boofcv.struct.image.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, boofcv.struct.image.InterleavedI8 input, boofcv.struct.image.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
public static void fill(boofcv.struct.image.GrayI8 image, int value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedI8 image, int value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedI8 image, int[] values)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
public static void fillBand(boofcv.struct.image.InterleavedI8 image, int band, int value)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
public static void insertBand(boofcv.struct.image.GrayI8 input, int band, boofcv.struct.image.InterleavedI8 output)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
public static void extractBand(boofcv.struct.image.InterleavedI8 input, int band, boofcv.struct.image.GrayI8 output)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
public static void fillBorder(boofcv.struct.image.GrayI8 image, int value, int radius)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(boofcv.struct.image.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
public static void fillRectangle(boofcv.struct.image.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.- 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(boofcv.struct.image.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
public static void fillUniform(boofcv.struct.image.GrayI8 img, java.util.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.- 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
public static void fillUniform(boofcv.struct.image.InterleavedI8 img, java.util.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.- 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(boofcv.struct.image.GrayI8 input, java.util.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(boofcv.struct.image.InterleavedI8 input, java.util.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
public static void flipVertical(boofcv.struct.image.GrayI8 image)
Flips the image from top to bottom
-
flipHorizontal
public static void flipHorizontal(boofcv.struct.image.GrayI8 image)
Flips the image from left to right
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayI8 image)
In-place 90 degree image rotation in the clockwise direction. Only works on square images.
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayI8 input, boofcv.struct.image.GrayI8 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCW
public static void rotateCW(boofcv.struct.image.InterleavedI8 input, boofcv.struct.image.InterleavedI8 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayI8 image)
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayI8 input, boofcv.struct.image.GrayI8 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.InterleavedI8 input, boofcv.struct.image.InterleavedI8 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
growBorder
public static <T extends boofcv.struct.image.GrayI8<T>> void growBorder(T src, boofcv.struct.border.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
-
copy
public static <T extends boofcv.struct.image.GrayI16<T>> void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, T input, boofcv.struct.border.ImageBorder_S32<T> border, boofcv.struct.image.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, boofcv.struct.image.GrayI16 input, boofcv.struct.image.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, boofcv.struct.image.InterleavedI16 input, boofcv.struct.image.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
public static void fill(boofcv.struct.image.GrayI16 image, int value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedI16 image, int value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedI16 image, int[] values)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
public static void fillBand(boofcv.struct.image.InterleavedI16 image, int band, int value)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
public static void insertBand(boofcv.struct.image.GrayI16 input, int band, boofcv.struct.image.InterleavedI16 output)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
public static void extractBand(boofcv.struct.image.InterleavedI16 input, int band, boofcv.struct.image.GrayI16 output)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
public static void fillBorder(boofcv.struct.image.GrayI16 image, int value, int radius)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(boofcv.struct.image.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
public static void fillRectangle(boofcv.struct.image.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.- 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(boofcv.struct.image.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
public static void fillUniform(boofcv.struct.image.GrayI16 img, java.util.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.- 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
public static void fillUniform(boofcv.struct.image.InterleavedI16 img, java.util.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.- 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(boofcv.struct.image.GrayI16 input, java.util.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(boofcv.struct.image.InterleavedI16 input, java.util.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
public static void flipVertical(boofcv.struct.image.GrayI16 image)
Flips the image from top to bottom
-
flipHorizontal
public static void flipHorizontal(boofcv.struct.image.GrayI16 image)
Flips the image from left to right
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayI16 image)
In-place 90 degree image rotation in the clockwise direction. Only works on square images.
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayI16 input, boofcv.struct.image.GrayI16 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCW
public static void rotateCW(boofcv.struct.image.InterleavedI16 input, boofcv.struct.image.InterleavedI16 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayI16 image)
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayI16 input, boofcv.struct.image.GrayI16 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.InterleavedI16 input, boofcv.struct.image.InterleavedI16 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
growBorder
public static <T extends boofcv.struct.image.GrayI16<T>> void growBorder(T src, boofcv.struct.border.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
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayS32 input, boofcv.struct.border.ImageBorder_S32 border, boofcv.struct.image.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, boofcv.struct.image.GrayS32 input, boofcv.struct.image.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, boofcv.struct.image.InterleavedS32 input, boofcv.struct.image.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
public static void fill(boofcv.struct.image.GrayS32 image, int value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedS32 image, int value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedS32 image, int[] values)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
public static void fillBand(boofcv.struct.image.InterleavedS32 image, int band, int value)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
public static void insertBand(boofcv.struct.image.GrayS32 input, int band, boofcv.struct.image.InterleavedS32 output)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
public static void extractBand(boofcv.struct.image.InterleavedS32 input, int band, boofcv.struct.image.GrayS32 output)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
public static void fillBorder(boofcv.struct.image.GrayS32 image, int value, int radius)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(boofcv.struct.image.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
public static void fillRectangle(boofcv.struct.image.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.- 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(boofcv.struct.image.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
public static void fillUniform(boofcv.struct.image.GrayS32 img, java.util.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.- 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
public static void fillUniform(boofcv.struct.image.InterleavedS32 img, java.util.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.- 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(boofcv.struct.image.GrayS32 input, java.util.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(boofcv.struct.image.InterleavedS32 input, java.util.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
public static void flipVertical(boofcv.struct.image.GrayS32 image)
Flips the image from top to bottom
-
flipHorizontal
public static void flipHorizontal(boofcv.struct.image.GrayS32 image)
Flips the image from left to right
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayS32 image)
In-place 90 degree image rotation in the clockwise direction. Only works on square images.
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayS32 input, boofcv.struct.image.GrayS32 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCW
public static void rotateCW(boofcv.struct.image.InterleavedS32 input, boofcv.struct.image.InterleavedS32 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayS32 image)
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayS32 input, boofcv.struct.image.GrayS32 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.InterleavedS32 input, boofcv.struct.image.InterleavedS32 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
growBorder
public static void growBorder(boofcv.struct.image.GrayS32 src, boofcv.struct.border.ImageBorder_S32 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.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
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayS64 input, boofcv.struct.border.ImageBorder_S64 border, boofcv.struct.image.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, boofcv.struct.image.GrayS64 input, boofcv.struct.image.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, boofcv.struct.image.InterleavedS64 input, boofcv.struct.image.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
public static void fill(boofcv.struct.image.GrayS64 image, long value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedS64 image, long value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedS64 image, long[] values)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
public static void fillBand(boofcv.struct.image.InterleavedS64 image, int band, long value)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
public static void insertBand(boofcv.struct.image.GrayS64 input, int band, boofcv.struct.image.InterleavedS64 output)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
public static void extractBand(boofcv.struct.image.InterleavedS64 input, int band, boofcv.struct.image.GrayS64 output)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
public static void fillBorder(boofcv.struct.image.GrayS64 image, long value, int radius)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(boofcv.struct.image.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
public static void fillRectangle(boofcv.struct.image.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.- 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(boofcv.struct.image.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
public static void fillUniform(boofcv.struct.image.GrayS64 img, java.util.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.- 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
public static void fillUniform(boofcv.struct.image.InterleavedS64 img, java.util.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.- 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(boofcv.struct.image.GrayS64 input, java.util.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(boofcv.struct.image.InterleavedS64 input, java.util.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
public static void flipVertical(boofcv.struct.image.GrayS64 image)
Flips the image from top to bottom
-
flipHorizontal
public static void flipHorizontal(boofcv.struct.image.GrayS64 image)
Flips the image from left to right
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayS64 image)
In-place 90 degree image rotation in the clockwise direction. Only works on square images.
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayS64 input, boofcv.struct.image.GrayS64 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCW
public static void rotateCW(boofcv.struct.image.InterleavedS64 input, boofcv.struct.image.InterleavedS64 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayS64 image)
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayS64 input, boofcv.struct.image.GrayS64 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.InterleavedS64 input, boofcv.struct.image.InterleavedS64 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
growBorder
public static void growBorder(boofcv.struct.image.GrayS64 src, boofcv.struct.border.ImageBorder_S64 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.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
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayF32 input, boofcv.struct.border.ImageBorder_F32 border, boofcv.struct.image.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, boofcv.struct.image.GrayF32 input, boofcv.struct.image.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, boofcv.struct.image.InterleavedF32 input, boofcv.struct.image.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
public static void fill(boofcv.struct.image.GrayF32 image, float value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedF32 image, float value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedF32 image, float[] values)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
public static void fillBand(boofcv.struct.image.InterleavedF32 image, int band, float value)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
public static void insertBand(boofcv.struct.image.GrayF32 input, int band, boofcv.struct.image.InterleavedF32 output)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
public static void extractBand(boofcv.struct.image.InterleavedF32 input, int band, boofcv.struct.image.GrayF32 output)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
public static void fillBorder(boofcv.struct.image.GrayF32 image, float value, int radius)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(boofcv.struct.image.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
public static void fillRectangle(boofcv.struct.image.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.- 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(boofcv.struct.image.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
public static void fillUniform(boofcv.struct.image.GrayF32 img, java.util.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.- 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
public static void fillUniform(boofcv.struct.image.InterleavedF32 img, java.util.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.- 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(boofcv.struct.image.GrayF32 input, java.util.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(boofcv.struct.image.InterleavedF32 input, java.util.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
public static void flipVertical(boofcv.struct.image.GrayF32 image)
Flips the image from top to bottom
-
flipHorizontal
public static void flipHorizontal(boofcv.struct.image.GrayF32 image)
Flips the image from left to right
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayF32 image)
In-place 90 degree image rotation in the clockwise direction. Only works on square images.
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayF32 input, boofcv.struct.image.GrayF32 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCW
public static void rotateCW(boofcv.struct.image.InterleavedF32 input, boofcv.struct.image.InterleavedF32 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayF32 image)
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayF32 input, boofcv.struct.image.GrayF32 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.InterleavedF32 input, boofcv.struct.image.InterleavedF32 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
growBorder
public static void growBorder(boofcv.struct.image.GrayF32 src, boofcv.struct.border.ImageBorder_F32 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.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
-
copy
public static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, boofcv.struct.image.GrayF64 input, boofcv.struct.border.ImageBorder_F64 border, boofcv.struct.image.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, boofcv.struct.image.GrayF64 input, boofcv.struct.image.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, boofcv.struct.image.InterleavedF64 input, boofcv.struct.image.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
public static void fill(boofcv.struct.image.GrayF64 image, double value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedF64 image, double value)Fills the whole image with the specified value- Parameters:
image- An image. Modified.value- The value that the image is being filled with.
-
fill
public static void fill(boofcv.struct.image.InterleavedF64 image, double[] values)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
public static void fillBand(boofcv.struct.image.InterleavedF64 image, int band, double value)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
public static void insertBand(boofcv.struct.image.GrayF64 input, int band, boofcv.struct.image.InterleavedF64 output)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
public static void extractBand(boofcv.struct.image.InterleavedF64 input, int band, boofcv.struct.image.GrayF64 output)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
public static void fillBorder(boofcv.struct.image.GrayF64 image, double value, int radius)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(boofcv.struct.image.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(boofcv.struct.image.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(boofcv.struct.image.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
public static void fillUniform(boofcv.struct.image.GrayF64 img, java.util.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.- 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
public static void fillUniform(boofcv.struct.image.InterleavedF64 img, java.util.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.- 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(boofcv.struct.image.GrayF64 input, java.util.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(boofcv.struct.image.InterleavedF64 input, java.util.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
public static void flipVertical(boofcv.struct.image.GrayF64 image)
Flips the image from top to bottom
-
flipHorizontal
public static void flipHorizontal(boofcv.struct.image.GrayF64 image)
Flips the image from left to right
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayF64 image)
In-place 90 degree image rotation in the clockwise direction. Only works on square images.
-
rotateCW
public static void rotateCW(boofcv.struct.image.GrayF64 input, boofcv.struct.image.GrayF64 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCW
public static void rotateCW(boofcv.struct.image.InterleavedF64 input, boofcv.struct.image.InterleavedF64 output)Rotates the image 90 degrees in the clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayF64 image)
In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.GrayF64 input, boofcv.struct.image.GrayF64 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
rotateCCW
public static void rotateCCW(boofcv.struct.image.InterleavedF64 input, boofcv.struct.image.InterleavedF64 output)Rotates the image 90 degrees in the counter-clockwise direction.
-
growBorder
public static void growBorder(boofcv.struct.image.GrayF64 src, boofcv.struct.border.ImageBorder_F64 border, int borderX0, int borderY0, int borderX1, int borderY1, boofcv.struct.image.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayU8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedU8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayU8 image, java.util.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(boofcv.struct.image.InterleavedU8 image, java.util.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayS8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedS8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayS8 image, java.util.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(boofcv.struct.image.InterleavedS8 image, java.util.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayU16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedU16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayU16 image, java.util.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(boofcv.struct.image.InterleavedU16 image, java.util.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayS16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedS16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayS16 image, java.util.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(boofcv.struct.image.InterleavedS16 image, java.util.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayS32 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedS32 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayS32 image, java.util.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(boofcv.struct.image.InterleavedS32 image, java.util.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayS64 input, java.util.Random rand, long min, long max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedS64 input, java.util.Random rand, long min, long max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayS64 image, java.util.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(boofcv.struct.image.InterleavedS64 image, java.util.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayF32 input, java.util.Random rand, float min, float max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedF32 input, java.util.Random rand, float min, float max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayF32 image, java.util.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(boofcv.struct.image.InterleavedF32 image, java.util.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
-
addUniform
public static void addUniform(boofcv.struct.image.GrayF64 input, java.util.Random rand, double min, double max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addUniform
public static void addUniform(boofcv.struct.image.InterleavedF64 input, java.util.Random rand, double min, double max)Adds uniform i.i.d noise to each pixel in the image. Noise range is min ≤ X < max.
-
addGaussian
public static void addGaussian(boofcv.struct.image.GrayF64 image, java.util.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(boofcv.struct.image.InterleavedF64 image, java.util.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
-
-