This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/chigopher/pathlib" | |
"github.com/spf13/afero" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/chigopher/pathlib" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Homework 2 | |
// Image Blurring | |
// | |
// In this homework we are blurring an image. To do this, imagine that we have | |
// a square array of weight values. For each pixel in the image, imagine that we | |
// overlay this square array of weights on top of the image such that the center | |
// of the weight array is aligned with the current pixel. To compute a blurred | |
// pixel value, we multiply each pair of numbers that line up. In other words, we | |
// multiply each weight with the pixel underneath it. Finally, we add up all of the | |
// multiplied numbers and assign that value to our output for the current pixel. |