Package eu.kartoffelquadrat.visucrypt
Class BinaryImageLoader
- java.lang.Object
-
- eu.kartoffelquadrat.visucrypt.BinaryImageLoader
-
public class BinaryImageLoader extends Object
Loads a file from disk and converts it into a 2D boolean array, where 0s indicate black, 1s indicate white.
-
-
Constructor Summary
Constructors Constructor Description BinaryImageLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean[][]
loadImage(File imagePath)
Helper method to load an image from disk.
-
-
-
Method Detail
-
loadImage
public static boolean[][] loadImage(File imagePath) throws IOException
Helper method to load an image from disk.- Parameters:
imagePath
- as file object toward resource location. Can be absolute or relative.- Returns:
- 2D boolean array representing the images max-contrast grid, all pixels black/white.
- Throws:
IOException
-
-