diff --git a/Week9/Assignment9/bin/DesaturateIt.class b/Week9/Assignment9/bin/DesaturateIt.class index b0da77f..b71923a 100644 Binary files a/Week9/Assignment9/bin/DesaturateIt.class and b/Week9/Assignment9/bin/DesaturateIt.class differ diff --git a/Week9/Assignment9/src/DesaturateIt.java b/Week9/Assignment9/src/DesaturateIt.java index a0b772d..79e1555 100644 --- a/Week9/Assignment9/src/DesaturateIt.java +++ b/Week9/Assignment9/src/DesaturateIt.java @@ -12,19 +12,19 @@ public class DesaturateIt{ // - 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"); + int[][][][] images = new int[3][][][]; //We want to draw 3 images, + images[0]=rgb; //the default image + images[1]=gray; //gray image + images[2]=sepia; //sepiaed image + Java101ImageUtil.showViewer(images,"show all"); //Call ImageUtil to draw the image } public static int [][][] grayscale(int [][][] rgb) { // fill code int[][][] grayscale = new int [rgb.length][rgb[0].length][3]; - for(int i=0;i