Exercise:Convolution and Pooling

From Ufldl

Jump to: navigation, search
(Step 2a: Implement convolution)
(Step 2a: Implement convolution)
Line 62: Line 62:
       im = squeeze(images(:, :, channel, imageNum));
       im = squeeze(images(:, :, channel, imageNum));
-
       % Convolve "filter" with "im", adding the result
+
       % Convolve "filter" with "im", adding the result to convolvedImage
-
       convolvedImage = convolvedImage + conv2(im, feature), 'valid');
+
       % ---- YOUR CODE HERE ----
 +
 
 +
 
 +
      % ------------------------
     end
     end

Revision as of 02:00, 23 May 2011

Personal tools