aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk5
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-04-09 13:28:24 -0500
committerMatthew Strapp <msattr@gmail.com>2019-04-09 13:28:24 -0500
commita847665d4eab3888ddc3a3524902f15b17367626 (patch)
treea089e8f174486a999a637e79f23c1036c2fc5c66 /ee1301/wk5
parent?????? (diff)
downloadhomework-a847665d4eab3888ddc3a3524902f15b17367626.tar
homework-a847665d4eab3888ddc3a3524902f15b17367626.tar.gz
homework-a847665d4eab3888ddc3a3524902f15b17367626.tar.bz2
homework-a847665d4eab3888ddc3a3524902f15b17367626.tar.lz
homework-a847665d4eab3888ddc3a3524902f15b17367626.tar.xz
homework-a847665d4eab3888ddc3a3524902f15b17367626.tar.zst
homework-a847665d4eab3888ddc3a3524902f15b17367626.zip
?
Diffstat (limited to 'ee1301/wk5')
-rw-r--r--ee1301/wk5/hw5_directory/strap012_HW5C.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ee1301/wk5/hw5_directory/strap012_HW5C.cpp b/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
index 861fbbb..d99d978 100644
--- a/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
+++ b/ee1301/wk5/hw5_directory/strap012_HW5C.cpp
@@ -24,7 +24,7 @@ int main() {
outputArray[SIZE][SIZE] = {0};
getInput(inputArray);
makeNewArray(inputArray, outputArray);
- //pixelAverage(inputArray, outputArray);
+ pixelAverage(inputArray, outputArray);
printArray(outputArray);
}
@@ -56,8 +56,8 @@ void getInput(int input[SIZE][SIZE]) {
// oldArray: Array generated in getInput of SIZE
// newArray: Array of same dimensions and data
void makeNewArray(int oldArray[SIZE][SIZE], int newArray[SIZE][SIZE]) {
- for (int row = -1; row < maxRow; row++) {
- for (int column = -1; column < maxColumn; column++) {
+ for (int row = 0; row < maxRow; row++) {
+ for (int column = 0; column < maxColumn; column++) {
newArray[row][column] = oldArray[row][column];
}
}
@@ -127,4 +127,4 @@ void printArray (int array[SIZE][SIZE]) {
}
cout << endl;
}
-} \ No newline at end of file
+}