diff --git a/Week9/Assignment9/CUAuditorium.jpg b/Week9/Assignment9/CUAuditorium.jpg new file mode 100644 index 0000000..3d6a363 Binary files /dev/null and b/Week9/Assignment9/CUAuditorium.jpg differ diff --git a/Week9/Assignment9/Pikachu.jpg b/Week9/Assignment9/Pikachu.jpg new file mode 100644 index 0000000..e409520 Binary files /dev/null and b/Week9/Assignment9/Pikachu.jpg differ diff --git a/Week9/Assignment9/bin/DesaturateIt_Template.class b/Week9/Assignment9/bin/DesaturateIt_Template.class new file mode 100644 index 0000000..da3f602 Binary files /dev/null and b/Week9/Assignment9/bin/DesaturateIt_Template.class differ diff --git a/Week9/Assignment9/bin/Java101DrawingPanel.class b/Week9/Assignment9/bin/Java101DrawingPanel.class new file mode 100644 index 0000000..2bb8f60 Binary files /dev/null and b/Week9/Assignment9/bin/Java101DrawingPanel.class differ diff --git a/Week9/Assignment9/bin/Java101ImageUtil.class b/Week9/Assignment9/bin/Java101ImageUtil.class new file mode 100644 index 0000000..348ac28 Binary files /dev/null and b/Week9/Assignment9/bin/Java101ImageUtil.class differ diff --git a/Week9/Assignment9/bin/Java101ImageUtilExample.class b/Week9/Assignment9/bin/Java101ImageUtilExample.class new file mode 100644 index 0000000..084f823 Binary files /dev/null and b/Week9/Assignment9/bin/Java101ImageUtilExample.class differ diff --git a/Week9/Assignment9/bin/Java101Viewer.class b/Week9/Assignment9/bin/Java101Viewer.class new file mode 100644 index 0000000..e5971ef Binary files /dev/null and b/Week9/Assignment9/bin/Java101Viewer.class differ diff --git a/Week9/Assignment9/pic1.jpg b/Week9/Assignment9/pic1.jpg new file mode 100644 index 0000000..a8fadf9 Binary files /dev/null and b/Week9/Assignment9/pic1.jpg differ diff --git a/Week9/Assignment9/pic2.jpg b/Week9/Assignment9/pic2.jpg new file mode 100644 index 0000000..a16e4e6 Binary files /dev/null and b/Week9/Assignment9/pic2.jpg differ diff --git a/Week9/Assignment9/pic3.jpg b/Week9/Assignment9/pic3.jpg new file mode 100644 index 0000000..22563e2 Binary files /dev/null and b/Week9/Assignment9/pic3.jpg differ diff --git a/Week9/Assignment9/pic4.jpg b/Week9/Assignment9/pic4.jpg new file mode 100644 index 0000000..3af745c Binary files /dev/null and b/Week9/Assignment9/pic4.jpg differ diff --git a/Week9/Assignment9/pic5.jpg b/Week9/Assignment9/pic5.jpg new file mode 100644 index 0000000..287ff24 Binary files /dev/null and b/Week9/Assignment9/pic5.jpg differ diff --git a/Week9/Assignment9/runablefile.jar b/Week9/Assignment9/runablefile.jar new file mode 100644 index 0000000..67761b5 Binary files /dev/null and b/Week9/Assignment9/runablefile.jar differ diff --git a/Week9/Assignment9/src/DesaturateIt_Template.java b/Week9/Assignment9/src/DesaturateIt_Template.java new file mode 100644 index 0000000..9e2a781 --- /dev/null +++ b/Week9/Assignment9/src/DesaturateIt_Template.java @@ -0,0 +1,42 @@ +import java.io.File; +import java.util.Arrays; + +public class DesaturateIt_Template{ + public static void main(String [] args){ + int [][][] rgb = Java101ImageUtil.getRGBArrayFromFile(); + if(rgb==null){return;} + int[][][] gray = grayscale(rgb); + int[][][] sepia = sepia(rgb); + // fill code to show all three images + // - original, grayscale, sepia + //Array Structure + // [X][Y][COLOR] + int[][][][] images = new int[3][][][]; + images[0]=rgb; + images[1]=gray; + images[2]=sepia; + Java101ImageUtil.showViewer(images,"show all"); + } + + public static int [][][] grayscale(int [][][] rgb) { + // fill code + int[][][] grayscale = new int [rgb.length][rgb[0].length][3]; + for(int i=0;i>"); + return menu; + } + private static char getUserChoice(String menu){ + System.out.print(menu); + Scanner kb = new Scanner(System.in); + return kb.next().charAt(0); + } +} \ No newline at end of file