boofcv.alg.misc
Class ImageMiscOps
- java.lang.Object
-
- boofcv.alg.misc.ImageMiscOps
-
public class ImageMiscOps extends java.lang.ObjectBasic 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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddGaussian(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 voidaddUniform(GrayF32 input, java.util.Random rand, float min, float max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(GrayF64 input, java.util.Random rand, double min, double max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(GrayS16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(GrayS32 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(GrayS64 input, java.util.Random rand, long min, long max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(GrayS8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(GrayU16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(GrayU8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(InterleavedF32 input, java.util.Random rand, float min, float max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(InterleavedF64 input, java.util.Random rand, double min, double max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(InterleavedS16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(InterleavedS32 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(InterleavedS64 input, java.util.Random rand, long min, long max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(InterleavedS8 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(InterleavedU16 input, java.util.Random rand, int min, int max)Adds uniform i.i.d noise to each pixel in the image.static voidaddUniform(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, 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 voidcopy(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 voidcopy(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 voidcopy(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 voidcopy(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 voidcopy(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 voidfill(GrayF32 input, float value)Fills the whole image with the specified valuestatic voidfill(GrayF64 input, double value)Fills the whole image with the specified valuestatic voidfill(GrayI16 input, int value)Fills the whole image with the specified valuestatic voidfill(GrayI8 input, int value)Fills the whole image with the specified valuestatic voidfill(GrayS32 input, int value)Fills the whole image with the specified valuestatic voidfill(GrayS64 input, long value)Fills the whole image with the specified valuestatic voidfill(InterleavedF32 input, float value)Fills the whole image with the specified valuestatic voidfill(InterleavedF32 input, float[] values)Fills each band in the image with the specified valuesstatic voidfill(InterleavedF64 input, double value)Fills the whole image with the specified valuestatic voidfill(InterleavedF64 input, double[] values)Fills each band in the image with the specified valuesstatic voidfill(InterleavedI16 input, int value)Fills the whole image with the specified valuestatic voidfill(InterleavedI16 input, int[] values)Fills each band in the image with the specified valuesstatic voidfill(InterleavedI8 input, int value)Fills the whole image with the specified valuestatic voidfill(InterleavedI8 input, int[] values)Fills each band in the image with the specified valuesstatic voidfill(InterleavedS32 input, int value)Fills the whole image with the specified valuestatic voidfill(InterleavedS32 input, int[] values)Fills each band in the image with the specified valuesstatic voidfill(InterleavedS64 input, long value)Fills the whole image with the specified valuestatic voidfill(InterleavedS64 input, long[] values)Fills each band in the image with the specified valuesstatic voidfillBand(InterleavedF32 input, int band, float value)Fills one band in the image with the specified valuestatic voidfillBand(InterleavedF64 input, int band, double value)Fills one band in the image with the specified valuestatic voidfillBand(InterleavedI16 input, int band, int value)Fills one band in the image with the specified valuestatic voidfillBand(InterleavedI8 input, int band, int value)Fills one band in the image with the specified valuestatic voidfillBand(InterleavedS32 input, int band, int value)Fills one band in the image with the specified valuestatic voidfillBand(InterleavedS64 input, int band, long value)Fills one band in the image with the specified valuestatic voidfillBorder(GrayF32 input, float value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(GrayF64 input, double value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(GrayI16 input, int value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(GrayI8 input, int value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(GrayS32 input, int value, int radius)Fills the outside border with the specified valuestatic voidfillBorder(GrayS64 input, long value, int radius)Fills the outside border with the specified valuestatic voidfillGaussian(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(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(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(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(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(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(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(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(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(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(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(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(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillRectangle(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 voidfillUniform(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(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(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(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(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(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(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(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(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(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(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(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(GrayF32 input)Flips the image from left to rightstatic voidflipHorizontal(GrayF64 input)Flips the image from left to rightstatic voidflipHorizontal(GrayI16 input)Flips the image from left to rightstatic voidflipHorizontal(GrayI8 input)Flips the image from left to rightstatic voidflipHorizontal(GrayS32 input)Flips the image from left to rightstatic voidflipHorizontal(GrayS64 input)Flips the image from left to rightstatic voidflipVertical(GrayF32 input)Flips the image from top to bottomstatic voidflipVertical(GrayF64 input)Flips the image from top to bottomstatic voidflipVertical(GrayI16 input)Flips the image from top to bottomstatic voidflipVertical(GrayI8 input)Flips the image from top to bottomstatic voidflipVertical(GrayS32 input)Flips the image from top to bottomstatic voidflipVertical(GrayS64 input)Flips the image from top to bottomstatic voidinsertBand(GrayF32 input, int band, InterleavedF32 output)Inserts a single band into into one of the bands in a multi-band imagestatic voidinsertBand(GrayF64 input, int band, InterleavedF64 output)Inserts a single band into into one of the bands in a multi-band imagestatic voidinsertBand(GrayI16 input, int band, InterleavedI16 output)Inserts a single band into into one of the bands in a multi-band imagestatic voidinsertBand(GrayI8 input, int band, InterleavedI8 output)Inserts a single band into into one of the bands in a multi-band imagestatic voidinsertBand(GrayS32 input, int band, InterleavedS32 output)Inserts a single band into into one of the bands in a multi-band imagestatic voidinsertBand(GrayS64 input, int band, InterleavedS64 output)Inserts a single band into into one of the bands in a multi-band imagestatic voidrotateCCW(GrayF32 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(GrayF32 input, GrayF32 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(GrayF64 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(GrayF64 input, GrayF64 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(GrayI16 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(GrayI16 input, GrayI16 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(GrayI8 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(GrayI8 input, GrayI8 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(GrayS32 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(GrayS32 input, GrayS32 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCCW(GrayS64 image)In-place 90 degree image rotation in the counter-clockwise direction.static voidrotateCCW(GrayS64 input, GrayS64 output)Rotates the image 90 degrees in the counter-clockwise direction.static voidrotateCW(GrayF32 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(GrayF32 input, GrayF32 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(GrayF64 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(GrayF64 input, GrayF64 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(GrayI16 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(GrayI16 input, GrayI16 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(GrayI8 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(GrayI8 input, GrayI8 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(GrayS32 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(GrayS32 input, GrayS32 output)Rotates the image 90 degrees in the clockwise direction.static voidrotateCW(GrayS64 image)In-place 90 degree image rotation in the clockwise direction.static voidrotateCW(GrayS64 input, GrayS64 output)Rotates the image 90 degrees in the clockwise direction.
-
-
-
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 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(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 valuevalue- 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 imageband- Which band the image is to be inserted intooutput- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormean- Distribution's mean.sigma- Distribution's standard deviation.lowerBound- Lower bound of value clipupperBound- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedI8 input, 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(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 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(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 valuevalue- 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 imageband- Which band the image is to be inserted intooutput- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormean- Distribution's mean.sigma- Distribution's standard deviation.lowerBound- Lower bound of value clipupperBound- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedI16 input, 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(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 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(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 valuevalue- 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 imageband- Which band the image is to be inserted intooutput- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormean- Distribution's mean.sigma- Distribution's standard deviation.lowerBound- Lower bound of value clipupperBound- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedS32 input, 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(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 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(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 valuevalue- 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 imageband- Which band the image is to be inserted intooutput- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormean- Distribution's mean.sigma- Distribution's standard deviation.lowerBound- Lower bound of value clipupperBound- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedS64 input, 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(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 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(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 valuevalue- 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 imageband- Which band the image is to be inserted intooutput- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormean- Distribution's mean.sigma- Distribution's standard deviation.lowerBound- Lower bound of value clipupperBound- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedF32 input, 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(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 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(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 valuevalue- 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 imageband- Which band the image is to be inserted intooutput- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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. Modifiedvalue- Value of the rectanglex0- Top left x-coordinatey0- Top left y-coordinatewidth- Rectangle widthheight- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormin- Minimum value of the distribution, inclusivemax- 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 generatormean- Distribution's mean.sigma- Distribution's standard deviation.lowerBound- Lower bound of value clipupperBound- Upper bound of value clip
-
fillGaussian
public static void fillGaussian(InterleavedF64 input, 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(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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- 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 boundupperBound- Allowed upper bound
-
-
DataMelt 3.0 © DataMelt by jWork.ORG