4.6. Exercises
Fully Connected Network. Given a grayvalue image \(f\) of size \(N\times N\) and a resulting image \(g\) of the same size, calculate the dimensions of the weight matrix \(W\) as used in the equation \(\v g = W \v f\) (see Eq. (4.4)).
Convolution/Correlation as Matrix-Vector Multiplication.
In Eq. (4.5) the matrix corresponding with a correlation with a small kernel of a \(4\times4\) image is shown. Which border mode is implicitly used (either the constant value mode (what value?) or wrap mode)?
What does the matrix \(W\) looks like for the other border mode?