Class BufferedImage2Patches
- java.lang.Object
-
- edu.gsu.cs.dmlab.imageproc.imageparam.util.BufferedImage2Patches
-
public abstract class BufferedImage2Patches extends Object
This is anabstract
class designed solely to divide a givenBufferedImage
inton
smallerBufferedImage
's, each of sizePatchSize
XPatchSize
- Author:
- Azim Ahmadzadeh, Data Mining Lab, Georgia State University
-
-
Constructor Summary
Constructors Constructor Description BufferedImage2Patches()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedImage[][]
getAllPatches(BufferedImage bImage, IMeasures.PatchSize patchChoice)
-
-
-
Method Detail
-
getAllPatches
public static BufferedImage[][] getAllPatches(BufferedImage bImage, IMeasures.PatchSize patchChoice) throws IllegalArgumentException
- Parameters:
bImage
- the input image that is supposed to be divided into patchespatchChoice
- can be chosen from the enumerationPatchSize
. This determines the size of each patch which has a square shape (i.e. height = width).- Returns:
- A square matrix whose entities are of type
BufferedImage
- Throws:
IllegalArgumentException
- in the following cases:
- If the given
bImage
is not square-shaped - If the
patchChoice
is not from the enumeration inPatchSize
- If the
bImage
cannot be divided intopatchChoice
patches
- If the given
-
-