Questions tagged [pset4blur]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Pset 4 filter blur function - only works with corner pixel

requesting help for my blur function. For each pixel, i have split it into 3 for loops. One calculating the row above, same row, and row below. In each loop , if the row is smaller than 0 or equal to ...
0
votes
1answer
30 views

Pset4 blur function keeps failing at the 3x3 and 4x4 checks

I'm having difficulty with pset4 Blur. I cannot seem to pass the 3x3 and 4x4 test in check50. The actual output values always seem to diverge from the expected output values after a few pixels have ...
1
vote
1answer
45 views

pset4 filter - only blurs the corners correctly

i can`t get the picture blurred at all (it comes out a complete mash up of colours blended together ...) ...i' ve been trying to figure this out for months now :(( HELP! void blur(int height, int ...
0
votes
0answers
14 views

Pset4-Filter Blur function doesn't pass check50. What's wrong?

I have been working on this function for about a week and have tried multiple ways, I have come up with a code that seems right to me but it presents errors when using the check50. This is the code I ...
0
votes
0answers
26 views

Pset4 - filter Blur

I wrote following code for blur filter . But I can't get the positive result . I want to know what the mistake is . void blur(int height, int width, RGBTRIPLE image[height][width]) { ...
0
votes
1answer
75 views

pset4 filter/blur code problem

I have written code for the blur filter in problem set 4. The code compiles and runs fine and seems to blur the image but when I run check50 it says that the RGB values aren't correct. I have looked ...
0
votes
0answers
93 views

FILTER WORKS FINE, BUT BLUR FAILS 3x3 and 4x4

The code works fine, but it fails blur filters a 3x3 and 4x4 image. I would like a help on why it correctly blur a middle pixel, but fails those two. Apparently, the wrong pixels are either on edge (...
0
votes
1answer
100 views

Pset 4 Filter - Blur

My blur filter produces a decent looking blurred image and passes the Check50 corner pixel case. I define the cases for the edges and the middle pixels and then manually calculate the average RGB ...
0
votes
0answers
14 views

Why does the code output incorrect amounts?

The code is here: https://pastebin.com/gKnVmPFf I've checked that it's not because of neighboring cells, because I am translating them onto a different array. I can't seem to figure out want is wrong. ...
0
votes
1answer
107 views

pset4 filters: thinking behind blur

Need some help with blur. I think i'm getting it entirely wrong but i can't seem to understand why. None of the blur assessment are correct at all. Wonder if anyone can give me any tips on getting the ...
0
votes
1answer
45 views

What is wrong with my filter blur?

Been stuck on the blurring part for ages... I've ran out of ideas and motivation to debug at this point after spending an eternity cutting down my spaghetti codes to pappardelle. Any help/hint/...
0
votes
0answers
17 views

The blur is not updating when it should be

The suspected incorrect of my code is here: for(int i =0;i<height;i++) { for(int j = 0;j<width;j++) { image[i][j] = copy[i][j]; } } or ...
0
votes
1answer
33 views

Pset4-Blur function edge value issue

The edge value of blue is getting increased by 3, can someone help me Expected Output: 80 95 105 Actual Output: 80 98 105 // Blur image void blur(int height, int width, RGBTRIPLE image[...
0
votes
1answer
59 views

CS50 Blur Problems

:) blur correctly filters middle pixel :) blur correctly filters pixel on edge :) blur correctly filters pixel in corner :( blur correctly filters 3x3 image expected "70 85 95\n80 9...", not "...
0
votes
1answer
190 views

PSET 4 Filter (less) - Simplification of code for blur

My programme works, it compiles well and it passes the check50 checks. However, I don't like how it looks - I feel it's very cumbersome, too full of logical conditions. I was wondering how I might ...
0
votes
2answers
21 views

Blur function doesn't work properly in 3x3 and 4x4 case

I think it's happened during neighbors cell check. I adapt the code from Java stackoverflow. The first two pixels got the rest void blur(int height, int width, RGBTRIPLE image[height][width]) { //...
0
votes
2answers
2k views

PSET4 Filter: Blur help

While trying to create an algorithm to come up with the average of the color for all nine pixels (if using 9) I realized I would need a way to see how many surrounding pixels are used in the ...
0
votes
1answer
105 views

Blur error in CS50 problem set 4 — filter_less

I have been trying to figure out the error for hours long and still no success, it'll mean a lot to me if someone can tell me what is the error in this code in order to apply a blur filter. I ...