New answers tagged

0 votes

Pset4 (Filter-Less) Reflection: Not getting correct values on Check50

Let's look carefully at this code: for (int j = 0; j < (width / 2); j++) { swap(&image[i][j], &image[i][width - j]); } Now, let's walk through what happens on the first ...
user avatar
  • 63.5k
0 votes

Pset4 (Filter-Less) Greyscale not passing check50

Not used brackets to enclose the color values. New code: void grayscale(int height, int width, RGBTRIPLE image[height][width]) { int rgbtGrey; for (int i = 0; i < height; i++) { ...
user avatar
1 vote
Accepted

Filter (more) blur function fails check50

Yes, it produces a blurred picture, just not correctly blurred. You should work with something simple, like a 3x3 bitmap and look at the actual input and output values to see what it does. ...
user avatar
  • 63.5k
0 votes

CS50x PSET4 (Filter) - BLUR

Is should be sum[i][j].rgbtRed. same for green and blue. Also sum is not declared properly. It should be sum[height][width].
user avatar

Top 50 recent answers are included