-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.java
41 lines (29 loc) · 1.07 KB
/
main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import gui.window;
import imagemanipulator.imageManipulator;
import java.util.Scanner;
import java.awt.image.BufferedImage;
public class main
{
//write sh scripts/compile.sh in the terminal to compile this project
//write sh scripts/run.sh in the terminal to run this project
public static void main(String[] args)
{
/*Scanner scannyboi = new Scanner(System.in);
System.out.println("Please submit path in / file to blur");
String pathin = scannyboi.nextLine();
System.out.println("Please submit path out / output file");
String pathout = scannyboi.nextLine();
System.out.println("Please submit radius / blur spread");
int radius = scannyboi.nextInt();
*/
// CHANGE FILE HERE FOR DIFFERENT IMAGE
String pathin = "example/flower.jpg";
//String pathout= "example/flower.png";
//int radius = 15;
BufferedImage mg = imageManipulator.load(pathin);
//int[][][] img = imageManipulator.getImageData(mg);
//int[][][] blurred = imageManipulator.gaussianBlur(img, radius);
//imageManipulator.saveImage(blurred, pathout);
window gui = new window(mg);
}
}