New answers tagged pset4
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 ...
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++)
{
...
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. ...
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].
Top 50 recent answers are included
Related Tags
pset4 × 1753recover × 696
resize × 465
cs50x × 115
check50 × 103
filter × 101
pset4recover × 87
blur × 82
segmentation-fault × 77
c × 67
speller × 52
pset4filter × 49
whodunit × 45
padding × 43
breakout × 40
fread × 30
edges × 26
fseek × 24
reflect × 24
jpeg × 22
bmp × 21
valgrind × 20
pointers × 19
malloc × 18
hash-table × 15