Documentation of 'boofcv.alg.misc.ImageMiscOps' Java class
ImageMiscOps
boofcv.alg.misc

Class ImageMiscOps



  • public class ImageMiscOps
    extends java.lang.Object
    Basic image operations which have no place better to go.

    DO NOT MODIFY: Generated by GenerateImageMiscOps.

    • Constructor Summary

      Constructors 
      Constructor and Description
      ImageMiscOps() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static void addGaussian(GrayF32 input, java.util.Random rand, double sigma, float lowerBound, float upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(GrayF64 input, java.util.Random rand, double sigma, double lowerBound, double upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(GrayS16 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(GrayS32 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(GrayS64 input, java.util.Random rand, double sigma, long lowerBound, long upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(GrayS8 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(GrayU16 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(GrayU8 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedF32 input, java.util.Random rand, double sigma, float lowerBound, float upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedF64 input, java.util.Random rand, double sigma, double lowerBound, double upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedS16 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedS32 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedS64 input, java.util.Random rand, double sigma, long lowerBound, long upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedS8 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedU16 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addGaussian(InterleavedU8 input, java.util.Random rand, double sigma, int lowerBound, int upperBound)
      Adds Gaussian/normal i.i.d noise to each pixel in the image.
      static void addUniform(GrayF32 input, java.util.Random rand, float min, float max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(GrayF64 input, java.util.Random rand, double min, double max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(GrayS16 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(GrayS32 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(GrayS64 input, java.util.Random rand, long min, long max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(GrayS8 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(GrayU16 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(GrayU8 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedF32 input, java.util.Random rand, float min, float max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedF64 input, java.util.Random rand, double min, double max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedS16 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedS32 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedS64 input, java.util.Random rand, long min, long max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedS8 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedU16 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void addUniform(InterleavedU8 input, java.util.Random rand, int min, int max)
      Adds uniform i.i.d noise to each pixel in the image.
      static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF32 input, 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 void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayF64 input, GrayF64 output)
      Copies a rectangular region from one image into another.
      output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
      static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayI16 input, GrayI16 output)
      Copies a rectangular region from one image into another.
      output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
      static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayI8 input, GrayI8 output)
      Copies a rectangular region from one image into another.
      output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
      static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS32 input, GrayS32 output)
      Copies a rectangular region from one image into another.
      output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
      static void copy(int srcX, int srcY, int dstX, int dstY, int width, int height, GrayS64 input, GrayS64 output)
      Copies a rectangular region from one image into another.
      output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
      static void fill(GrayF32 input, float value)
      Fills the whole image with the specified value
      static void fill(GrayF64 input, double value)
      Fills the whole image with the specified value
      static void fill(GrayI16 input, int value)
      Fills the whole image with the specified value
      static void fill(GrayI8 input, int value)
      Fills the whole image with the specified value
      static void fill(GrayS32 input, int value)
      Fills the whole image with the specified value
      static void fill(GrayS64 input, long value)
      Fills the whole image with the specified value
      static void fill(InterleavedF32 input, float value)
      Fills the whole image with the specified value
      static void fill(InterleavedF32 input, float[] values)
      Fills each band in the image with the specified values
      static void fill(InterleavedF64 input, double value)
      Fills the whole image with the specified value
      static void fill(InterleavedF64 input, double[] values)
      Fills each band in the image with the specified values
      static void fill(InterleavedI16 input, int value)
      Fills the whole image with the specified value
      static void fill(InterleavedI16 input, int[] values)
      Fills each band in the image with the specified values
      static void fill(InterleavedI8 input, int value)
      Fills the whole image with the specified value
      static void fill(InterleavedI8 input, int[] values)
      Fills each band in the image with the specified values
      static void fill(InterleavedS32 input, int value)
      Fills the whole image with the specified value
      static void fill(InterleavedS32 input, int[] values)
      Fills each band in the image with the specified values
      static void fill(InterleavedS64 input, long value)
      Fills the whole image with the specified value
      static void fill(InterleavedS64 input, long[] values)
      Fills each band in the image with the specified values
      static void fillBand(InterleavedF32 input, int band, float value)
      Fills one band in the image with the specified value
      static void fillBand(InterleavedF64 input, int band, double value)
      Fills one band in the image with the specified value
      static void fillBand(InterleavedI16 input, int band, int value)
      Fills one band in the image with the specified value
      static void fillBand(InterleavedI8 input, int band, int value)
      Fills one band in the image with the specified value
      static void fillBand(InterleavedS32 input, int band, int value)
      Fills one band in the image with the specified value
      static void fillBand(InterleavedS64 input, int band, long value)
      Fills one band in the image with the specified value
      static void fillBorder(GrayF32 input, float value, int radius)
      Fills the outside border with the specified value
      static void fillBorder(GrayF64 input, double value, int radius)
      Fills the outside border with the specified value
      static void fillBorder(GrayI16 input, int value, int radius)
      Fills the outside border with the specified value
      static void fillBorder(GrayI8 input, int value, int radius)
      Fills the outside border with the specified value
      static void fillBorder(GrayS32 input, int value, int radius)
      Fills the outside border with the specified value
      static void fillBorder(GrayS64 input, long value, int radius)
      Fills the outside border with the specified value
      static void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillGaussian(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 void fillRectangle(GrayF32 img, float value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(GrayF64 img, double value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(GrayI16 img, int value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(GrayI8 img, int value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(GrayS32 img, int value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(GrayS64 img, long value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(InterleavedF32 img, float value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(InterleavedF64 img, double value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(InterleavedI16 img, short value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(InterleavedI8 img, byte value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(InterleavedS32 img, int value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillRectangle(InterleavedS64 img, long value, int x0, int y0, int width, int height)
      Draws a filled rectangle that is aligned along the image axis inside the image.
      static void fillUniform(GrayF32 img, 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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void fillUniform(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 void flipHorizontal(GrayF32 input)
      Flips the image from left to right
      static void flipHorizontal(GrayF64 input)
      Flips the image from left to right
      static void flipHorizontal(GrayI16 input)
      Flips the image from left to right
      static void flipHorizontal(GrayI8 input)
      Flips the image from left to right
      static void flipHorizontal(GrayS32 input)
      Flips the image from left to right
      static void flipHorizontal(GrayS64 input)
      Flips the image from left to right
      static void flipVertical(GrayF32 input)
      Flips the image from top to bottom
      static void flipVertical(GrayF64 input)
      Flips the image from top to bottom
      static void flipVertical(GrayI16 input)
      Flips the image from top to bottom
      static void flipVertical(GrayI8 input)
      Flips the image from top to bottom
      static void flipVertical(GrayS32 input)
      Flips the image from top to bottom
      static void flipVertical(GrayS64 input)
      Flips the image from top to bottom
      static void insertBand(GrayF32 input, int band, InterleavedF32 output)
      Inserts a single band into into one of the bands in a multi-band image
      static void insertBand(GrayF64 input, int band, InterleavedF64 output)
      Inserts a single band into into one of the bands in a multi-band image
      static void insertBand(GrayI16 input, int band, InterleavedI16 output)
      Inserts a single band into into one of the bands in a multi-band image
      static void insertBand(GrayI8 input, int band, InterleavedI8 output)
      Inserts a single band into into one of the bands in a multi-band image
      static void insertBand(GrayS32 input, int band, InterleavedS32 output)
      Inserts a single band into into one of the bands in a multi-band image
      static void insertBand(GrayS64 input, int band, InterleavedS64 output)
      Inserts a single band into into one of the bands in a multi-band image
      static void rotateCCW(GrayF32 image)
      In-place 90 degree image rotation in the counter-clockwise direction.
      static void rotateCCW(GrayF32 input, GrayF32 output)
      Rotates the image 90 degrees in the counter-clockwise direction.
      static void rotateCCW(GrayF64 image)
      In-place 90 degree image rotation in the counter-clockwise direction.
      static void rotateCCW(GrayF64 input, GrayF64 output)
      Rotates the image 90 degrees in the counter-clockwise direction.
      static void rotateCCW(GrayI16 image)
      In-place 90 degree image rotation in the counter-clockwise direction.
      static void rotateCCW(GrayI16 input, GrayI16 output)
      Rotates the image 90 degrees in the counter-clockwise direction.
      static void rotateCCW(GrayI8 image)
      In-place 90 degree image rotation in the counter-clockwise direction.
      static void rotateCCW(GrayI8 input, GrayI8 output)
      Rotates the image 90 degrees in the counter-clockwise direction.
      static void rotateCCW(GrayS32 image)
      In-place 90 degree image rotation in the counter-clockwise direction.
      static void rotateCCW(GrayS32 input, GrayS32 output)
      Rotates the image 90 degrees in the counter-clockwise direction.
      static void rotateCCW(GrayS64 image)
      In-place 90 degree image rotation in the counter-clockwise direction.
      static void rotateCCW(GrayS64 input, GrayS64 output)
      Rotates the image 90 degrees in the counter-clockwise direction.
      static void rotateCW(GrayF32 image)
      In-place 90 degree image rotation in the clockwise direction.
      static void rotateCW(GrayF32 input, GrayF32 output)
      Rotates the image 90 degrees in the clockwise direction.
      static void rotateCW(GrayF64 image)
      In-place 90 degree image rotation in the clockwise direction.
      static void rotateCW(GrayF64 input, GrayF64 output)
      Rotates the image 90 degrees in the clockwise direction.
      static void rotateCW(GrayI16 image)
      In-place 90 degree image rotation in the clockwise direction.
      static void rotateCW(GrayI16 input, GrayI16 output)
      Rotates the image 90 degrees in the clockwise direction.
      static void rotateCW(GrayI8 image)
      In-place 90 degree image rotation in the clockwise direction.
      static void rotateCW(GrayI8 input, GrayI8 output)
      Rotates the image 90 degrees in the clockwise direction.
      static void rotateCW(GrayS32 image)
      In-place 90 degree image rotation in the clockwise direction.
      static void rotateCW(GrayS32 input, GrayS32 output)
      Rotates the image 90 degrees in the clockwise direction.
      static void rotateCW(GrayS64 image)
      In-place 90 degree image rotation in the clockwise direction.
      static void rotateCW(GrayS64 input, GrayS64 output)
      Rotates the image 90 degrees in the clockwise direction.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ImageMiscOps

        public ImageMiscOps()
    • Method Detail

      • copy

        public static void copy(int srcX,
                                int srcY,
                                int dstX,
                                int dstY,
                                int width,
                                int height,
                                GrayI8 input,
                                GrayI8 output)
        Copies a rectangular region from one image into another.
        output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
        Parameters:
        srcX - x-coordinate of corner in input image
        srcY - y-coordinate of corner in input image
        dstX - x-coordinate of corner in output image
        dstY - y-coordinate of corner in output image
        width - Width of region to be copied
        height - Height of region to be copied
        input - Input image
        output - output image
      • fill

        public static void fill(GrayI8 input,
                                int value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedI8 input,
                                int value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedI8 input,
                                int[] values)
        Fills each band in the image with the specified values
        Parameters:
        input - An image.
        values - Array which contains the values each band is to be filled with.
      • fillBand

        public static void fillBand(InterleavedI8 input,
                                    int band,
                                    int value)
        Fills one band in the image with the specified value
        Parameters:
        input - An image.
        band - Which band is to be filled with the specified value
        value - The value that the image is being filled with.
      • insertBand

        public static void insertBand(GrayI8 input,
                                      int band,
                                      InterleavedI8 output)
        Inserts a single band into into one of the bands in a multi-band image
        Parameters:
        input - Single band image
        band - Which band the image is to be inserted into
        output - The multi-band image which the input image is to be inserted into
      • fillBorder

        public static void fillBorder(GrayI8 input,
                                      int value,
                                      int radius)
        Fills the outside border with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
        radius - Border width.
      • fillRectangle

        public static void fillRectangle(GrayI8 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillRectangle

        public static void fillRectangle(InterleavedI8 img,
                                         byte 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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • flipVertical

        public static void flipVertical(GrayI8 input)
        Flips the image from top to bottom
      • flipHorizontal

        public static void flipHorizontal(GrayI8 input)
        Flips the image from left to right
      • rotateCW

        public static void rotateCW(GrayI8 image)
        In-place 90 degree image rotation in the clockwise direction. Only works on square images.
      • rotateCW

        public static void rotateCW(GrayI8 input,
                                    GrayI8 output)
        Rotates the image 90 degrees in the clockwise direction.
      • rotateCCW

        public static void rotateCCW(GrayI8 image)
        In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
      • rotateCCW

        public static void rotateCCW(GrayI8 input,
                                     GrayI8 output)
        Rotates the image 90 degrees in the counter-clockwise direction.
      • copy

        public static void copy(int srcX,
                                int srcY,
                                int dstX,
                                int dstY,
                                int width,
                                int height,
                                GrayI16 input,
                                GrayI16 output)
        Copies a rectangular region from one image into another.
        output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
        Parameters:
        srcX - x-coordinate of corner in input image
        srcY - y-coordinate of corner in input image
        dstX - x-coordinate of corner in output image
        dstY - y-coordinate of corner in output image
        width - Width of region to be copied
        height - Height of region to be copied
        input - Input image
        output - output image
      • fill

        public static void fill(GrayI16 input,
                                int value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedI16 input,
                                int value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedI16 input,
                                int[] values)
        Fills each band in the image with the specified values
        Parameters:
        input - An image.
        values - Array which contains the values each band is to be filled with.
      • fillBand

        public static void fillBand(InterleavedI16 input,
                                    int band,
                                    int value)
        Fills one band in the image with the specified value
        Parameters:
        input - An image.
        band - Which band is to be filled with the specified value
        value - The value that the image is being filled with.
      • insertBand

        public static void insertBand(GrayI16 input,
                                      int band,
                                      InterleavedI16 output)
        Inserts a single band into into one of the bands in a multi-band image
        Parameters:
        input - Single band image
        band - Which band the image is to be inserted into
        output - The multi-band image which the input image is to be inserted into
      • fillBorder

        public static void fillBorder(GrayI16 input,
                                      int value,
                                      int radius)
        Fills the outside border with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
        radius - Border width.
      • fillRectangle

        public static void fillRectangle(GrayI16 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillRectangle

        public static void fillRectangle(InterleavedI16 img,
                                         short 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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • flipVertical

        public static void flipVertical(GrayI16 input)
        Flips the image from top to bottom
      • flipHorizontal

        public static void flipHorizontal(GrayI16 input)
        Flips the image from left to right
      • rotateCW

        public static void rotateCW(GrayI16 image)
        In-place 90 degree image rotation in the clockwise direction. Only works on square images.
      • rotateCW

        public static void rotateCW(GrayI16 input,
                                    GrayI16 output)
        Rotates the image 90 degrees in the clockwise direction.
      • rotateCCW

        public static void rotateCCW(GrayI16 image)
        In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
      • rotateCCW

        public static void rotateCCW(GrayI16 input,
                                     GrayI16 output)
        Rotates the image 90 degrees in the counter-clockwise direction.
      • copy

        public static void copy(int srcX,
                                int srcY,
                                int dstX,
                                int dstY,
                                int width,
                                int height,
                                GrayS32 input,
                                GrayS32 output)
        Copies a rectangular region from one image into another.
        output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
        Parameters:
        srcX - x-coordinate of corner in input image
        srcY - y-coordinate of corner in input image
        dstX - x-coordinate of corner in output image
        dstY - y-coordinate of corner in output image
        width - Width of region to be copied
        height - Height of region to be copied
        input - Input image
        output - output image
      • fill

        public static void fill(GrayS32 input,
                                int value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedS32 input,
                                int value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedS32 input,
                                int[] values)
        Fills each band in the image with the specified values
        Parameters:
        input - An image.
        values - Array which contains the values each band is to be filled with.
      • fillBand

        public static void fillBand(InterleavedS32 input,
                                    int band,
                                    int value)
        Fills one band in the image with the specified value
        Parameters:
        input - An image.
        band - Which band is to be filled with the specified value
        value - The value that the image is being filled with.
      • insertBand

        public static void insertBand(GrayS32 input,
                                      int band,
                                      InterleavedS32 output)
        Inserts a single band into into one of the bands in a multi-band image
        Parameters:
        input - Single band image
        band - Which band the image is to be inserted into
        output - The multi-band image which the input image is to be inserted into
      • fillBorder

        public static void fillBorder(GrayS32 input,
                                      int value,
                                      int radius)
        Fills the outside border with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
        radius - Border width.
      • fillRectangle

        public static void fillRectangle(GrayS32 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillRectangle

        public static void fillRectangle(InterleavedS32 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • flipVertical

        public static void flipVertical(GrayS32 input)
        Flips the image from top to bottom
      • flipHorizontal

        public static void flipHorizontal(GrayS32 input)
        Flips the image from left to right
      • rotateCW

        public static void rotateCW(GrayS32 image)
        In-place 90 degree image rotation in the clockwise direction. Only works on square images.
      • rotateCW

        public static void rotateCW(GrayS32 input,
                                    GrayS32 output)
        Rotates the image 90 degrees in the clockwise direction.
      • rotateCCW

        public static void rotateCCW(GrayS32 image)
        In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
      • rotateCCW

        public static void rotateCCW(GrayS32 input,
                                     GrayS32 output)
        Rotates the image 90 degrees in the counter-clockwise direction.
      • copy

        public static void copy(int srcX,
                                int srcY,
                                int dstX,
                                int dstY,
                                int width,
                                int height,
                                GrayS64 input,
                                GrayS64 output)
        Copies a rectangular region from one image into another.
        output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
        Parameters:
        srcX - x-coordinate of corner in input image
        srcY - y-coordinate of corner in input image
        dstX - x-coordinate of corner in output image
        dstY - y-coordinate of corner in output image
        width - Width of region to be copied
        height - Height of region to be copied
        input - Input image
        output - output image
      • fill

        public static void fill(GrayS64 input,
                                long value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedS64 input,
                                long value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedS64 input,
                                long[] values)
        Fills each band in the image with the specified values
        Parameters:
        input - An image.
        values - Array which contains the values each band is to be filled with.
      • fillBand

        public static void fillBand(InterleavedS64 input,
                                    int band,
                                    long value)
        Fills one band in the image with the specified value
        Parameters:
        input - An image.
        band - Which band is to be filled with the specified value
        value - The value that the image is being filled with.
      • insertBand

        public static void insertBand(GrayS64 input,
                                      int band,
                                      InterleavedS64 output)
        Inserts a single band into into one of the bands in a multi-band image
        Parameters:
        input - Single band image
        band - Which band the image is to be inserted into
        output - The multi-band image which the input image is to be inserted into
      • fillBorder

        public static void fillBorder(GrayS64 input,
                                      long value,
                                      int radius)
        Fills the outside border with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
        radius - Border width.
      • fillRectangle

        public static void fillRectangle(GrayS64 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillRectangle

        public static void fillRectangle(InterleavedS64 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, exclusive
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • flipVertical

        public static void flipVertical(GrayS64 input)
        Flips the image from top to bottom
      • flipHorizontal

        public static void flipHorizontal(GrayS64 input)
        Flips the image from left to right
      • rotateCW

        public static void rotateCW(GrayS64 image)
        In-place 90 degree image rotation in the clockwise direction. Only works on square images.
      • rotateCW

        public static void rotateCW(GrayS64 input,
                                    GrayS64 output)
        Rotates the image 90 degrees in the clockwise direction.
      • rotateCCW

        public static void rotateCCW(GrayS64 image)
        In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
      • rotateCCW

        public static void rotateCCW(GrayS64 input,
                                     GrayS64 output)
        Rotates the image 90 degrees in the counter-clockwise direction.
      • copy

        public static void copy(int srcX,
                                int srcY,
                                int dstX,
                                int dstY,
                                int width,
                                int height,
                                GrayF32 input,
                                GrayF32 output)
        Copies a rectangular region from one image into another.
        output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
        Parameters:
        srcX - x-coordinate of corner in input image
        srcY - y-coordinate of corner in input image
        dstX - x-coordinate of corner in output image
        dstY - y-coordinate of corner in output image
        width - Width of region to be copied
        height - Height of region to be copied
        input - Input image
        output - output image
      • fill

        public static void fill(GrayF32 input,
                                float value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedF32 input,
                                float value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedF32 input,
                                float[] values)
        Fills each band in the image with the specified values
        Parameters:
        input - An image.
        values - Array which contains the values each band is to be filled with.
      • fillBand

        public static void fillBand(InterleavedF32 input,
                                    int band,
                                    float value)
        Fills one band in the image with the specified value
        Parameters:
        input - An image.
        band - Which band is to be filled with the specified value
        value - The value that the image is being filled with.
      • insertBand

        public static void insertBand(GrayF32 input,
                                      int band,
                                      InterleavedF32 output)
        Inserts a single band into into one of the bands in a multi-band image
        Parameters:
        input - Single band image
        band - Which band the image is to be inserted into
        output - The multi-band image which the input image is to be inserted into
      • fillBorder

        public static void fillBorder(GrayF32 input,
                                      float value,
                                      int radius)
        Fills the outside border with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
        radius - Border width.
      • fillRectangle

        public static void fillRectangle(GrayF32 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillRectangle

        public static void fillRectangle(InterleavedF32 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, inclusive
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, inclusive
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • flipVertical

        public static void flipVertical(GrayF32 input)
        Flips the image from top to bottom
      • flipHorizontal

        public static void flipHorizontal(GrayF32 input)
        Flips the image from left to right
      • rotateCW

        public static void rotateCW(GrayF32 image)
        In-place 90 degree image rotation in the clockwise direction. Only works on square images.
      • rotateCW

        public static void rotateCW(GrayF32 input,
                                    GrayF32 output)
        Rotates the image 90 degrees in the clockwise direction.
      • rotateCCW

        public static void rotateCCW(GrayF32 image)
        In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
      • rotateCCW

        public static void rotateCCW(GrayF32 input,
                                     GrayF32 output)
        Rotates the image 90 degrees in the counter-clockwise direction.
      • copy

        public static void copy(int srcX,
                                int srcY,
                                int dstX,
                                int dstY,
                                int width,
                                int height,
                                GrayF64 input,
                                GrayF64 output)
        Copies a rectangular region from one image into another.
        output[dstX:(dstX+width) , dstY:(dstY+height-1)] = input[srcX:(srcX+width) , srcY:(srcY+height-1)]
        Parameters:
        srcX - x-coordinate of corner in input image
        srcY - y-coordinate of corner in input image
        dstX - x-coordinate of corner in output image
        dstY - y-coordinate of corner in output image
        width - Width of region to be copied
        height - Height of region to be copied
        input - Input image
        output - output image
      • fill

        public static void fill(GrayF64 input,
                                double value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedF64 input,
                                double value)
        Fills the whole image with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
      • fill

        public static void fill(InterleavedF64 input,
                                double[] values)
        Fills each band in the image with the specified values
        Parameters:
        input - An image.
        values - Array which contains the values each band is to be filled with.
      • fillBand

        public static void fillBand(InterleavedF64 input,
                                    int band,
                                    double value)
        Fills one band in the image with the specified value
        Parameters:
        input - An image.
        band - Which band is to be filled with the specified value
        value - The value that the image is being filled with.
      • insertBand

        public static void insertBand(GrayF64 input,
                                      int band,
                                      InterleavedF64 output)
        Inserts a single band into into one of the bands in a multi-band image
        Parameters:
        input - Single band image
        band - Which band the image is to be inserted into
        output - The multi-band image which the input image is to be inserted into
      • fillBorder

        public static void fillBorder(GrayF64 input,
                                      double value,
                                      int radius)
        Fills the outside border with the specified value
        Parameters:
        input - An image.
        value - The value that the image is being filled with.
        radius - Border width.
      • fillRectangle

        public static void fillRectangle(GrayF64 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillRectangle

        public static void fillRectangle(InterleavedF64 img,
                                         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:
        img - Image the rectangle is drawn in. Modified
        value - Value of the rectangle
        x0 - Top left x-coordinate
        y0 - Top left y-coordinate
        width - Rectangle width
        height - Rectangle height
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, inclusive
      • fillUniform

        public static void fillUniform(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 generator
        min - Minimum value of the distribution, inclusive
        max - Maximum value of the distribution, inclusive
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • fillGaussian

        public static void fillGaussian(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 generator
        mean - Distribution's mean.
        sigma - Distribution's standard deviation.
        lowerBound - Lower bound of value clip
        upperBound - Upper bound of value clip
      • flipVertical

        public static void flipVertical(GrayF64 input)
        Flips the image from top to bottom
      • flipHorizontal

        public static void flipHorizontal(GrayF64 input)
        Flips the image from left to right
      • rotateCW

        public static void rotateCW(GrayF64 image)
        In-place 90 degree image rotation in the clockwise direction. Only works on square images.
      • rotateCW

        public static void rotateCW(GrayF64 input,
                                    GrayF64 output)
        Rotates the image 90 degrees in the clockwise direction.
      • rotateCCW

        public static void rotateCCW(GrayF64 image)
        In-place 90 degree image rotation in the counter-clockwise direction. Only works on square images.
      • rotateCCW

        public static void rotateCCW(GrayF64 input,
                                     GrayF64 output)
        Rotates the image 90 degrees in the counter-clockwise direction.
      • addUniform

        public static void addUniform(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(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(GrayU8 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedU8 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addUniform

        public static void addUniform(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(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(GrayS8 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedS8 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addUniform

        public static void addUniform(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(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(GrayU16 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedU16 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addUniform

        public static void addUniform(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(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(GrayS16 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedS16 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addUniform

        public static void addUniform(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(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(GrayS32 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedS32 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addUniform

        public static void addUniform(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(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(GrayS64 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedS64 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addUniform

        public static void addUniform(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(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(GrayF32 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedF32 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addUniform

        public static void addUniform(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(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(GrayF64 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound
      • addGaussian

        public static void addGaussian(InterleavedF64 input,
                                       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:
        input - Input image. Modified.
        rand - Random number generator.
        sigma - Distributions standard deviation.
        lowerBound - Allowed lower bound
        upperBound - Allowed upper bound

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.