Questions tagged [blur]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

CS50 filter less Blur problem

I've wrote the code for filter Blur that seems to me have to work. But i don't receive right numbers. Please help me :))) void blur(int height, int width, RGBTRIPLE image[height][width]) { for (int i ...
0
votes
0answers
13 views

The image updates, yet incorrectly

Here is the link to the full code: https://pastebin.com/kFgWhfTR . The image is calculating incorrectly. I have no idea why. I know that it is not caused by one pixel updating the others.
0
votes
0answers
32 views

PSET4:Blur filter doesn't function

I have this code: // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE tempImage[height][width]; int sumR = 0; int sumG = 0; int sumB = 0; ...
0
votes
1answer
161 views

Help with Blur filter! The output image is not blurred, but is returned as a darker image of the input

I have been stuck on this problem for days and have tried so many ways to write this code, but I continuously get errors. Nothing works. The output file is just returned as a darker image of the input ...
0
votes
1answer
106 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
0answers
43 views

PSET4 Blur Filter, blurs images correctly but check50 fails all blur checks

Not sure what I am doing wrong, I tried casting double to the blurhelper function and check50 still says it is wrong. void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE(*...
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
1answer
242 views

pset4 problem with blur, can't find what's wrong

I can't seen to find what is wrong with blur in my code. My code seems fine and it compiles too but the image doesn't get as blurred as it should. I've surfed through almost all the blur related ...
0
votes
0answers
103 views

Pset4: Filter blur problem

I have an error helpers.c:130:27: runtime error: index -1 out of bounds for type 'RGBTRIPLE [width]' helpers.c:130:100: runtime error: index -1 out of bounds for type 'RGBTRIPLE [width]' helpers.c:...
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
87 views

pset4 filter blur

I have written the following code for blur . // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { for ( int h=0 ; h<height ; h++) { for ( int w=0 ; ...
0
votes
1answer
189 views

pset4 filter /blur

I have written the following code for blur . // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { for ( int h=0 ; h if(h==0 ) { if(w==...
0
votes
1answer
41 views

CS50 Filter blur

When I tried running this code under Check50, the value returned was completely off for some reason but I can't seem to figure out why. I then reduced the code to only calculating the rgbtBlue value ...
0
votes
1answer
266 views

CS50 PSET4 FILTER BLUR

Got stuck in Blur for more than a week and can´t find out what is wrong. I´ve tried many differents ways, but only corner values matches. Can anyone please give me a help about this. // Blur image ...
0
votes
1answer
89 views

Blur function, doesn't work for 3x3 and 4x4 image

This code works in Check50 for all tests except the 3x3 and 4x4 image. If anyone has any suggestions, I would appreciate it. Thank you! // Blur image void blur(int height, int width, RGBTRIPLE image[...
0
votes
1answer
60 views

Getting partial output in Blur (pset4 filter) , trying to debug edge and middle pixel

My program when run through check50 says the corner pixels work but nothing else seems to work. I have been stuck on this problem for days and after not getting any considerable reply on the cs50 ...
0
votes
1answer
108 views

PSET4 FILTER(LESS) BLUR HELP!

I'm struggling to figure out exactly what's wrong with the code since I think it mathematically checks out and covers every possibility of an image. Please do take a look at my code and maybe you'll ...
0
votes
1answer
152 views

pset 4 reflect & blur work but don't test

My reflect function doesn't seem to do anything to the outputted image and my blur image fails check50 even though the resulting image looks visually blurred. Any insight into why this is the case is ...
0
votes
1answer
61 views

pset4 Filter Issues

So for some reason neither sepia or blur is returning a picture that has been altered at all. I think this has to do with my storing values in a new RGBTRIPLE called newimage and then after all fo ...
0
votes
1answer
51 views

PSET 4 Filter / Blur : I couldn't pass a struct as an function argument what is the reasson?

in order to blur the pixels I created 3 functions. BLUR -Create a new image so old date won't corrupt - iterate over the new image -blur_color - To taking the averages of the color values -...
0
votes
1answer
131 views

pset4 Blur (Filter) not passing check50

following is my code for Blur. It works mathematically when I step through the loops for a given pixel using Tower, Yard, etc. But when running Check50, it fails every test except the corner test. ...
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
1answer
157 views

PSET4 stuck on blur (filter), image doesn't change

I am currently on the blur part of the filter problem. My code is the following: void blur(int height, int width, RGBTRIPLE image[height][width]) { //Create copy for input RGBTRIPLE ...
0
votes
1answer
250 views

pset4 filter - blur - runtime error, colors off

This is my first post; I hope I get the netiquette right. :-) I've been stuck on pset4 / filters / blur for days. The code compiles. When I run it through check50, these two points are correct: :) ...
0
votes
2answers
434 views

check50 error on helpers.c in pset4

I'm currently working on the filters assignment in pset4 of CS50. My code compiles and runs without issue and produces the results it should on all the stock images. However when I run check50 I get ...
0
votes
1answer
75 views

CS50 pset4, I have problems with getting the blur filter to work

So basically what I did was, first I started off with the row above and then the relevant row and then the row below. I created a for loop which would run across the row 3 times. My code looks like ...
0
votes
2answers
426 views

Rounding Issue with Grayscale and Blur

I seem to be having problems with rounding numbers in these two functions. I am making sure to work with floats and I'm using the round() function so I'm stuck scratching my head at the minute! ...
0
votes
1answer
257 views

CS50 Blur issue

void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE holder[height][width]; int red; int green; int blue; float counter; for (int i = 0; i < height; i++) { for (int j ...
0
votes
2answers
290 views

pset4 - Filter - blur error

first post on here so be nice :) I'm working my way through CS50 on edx.org, I've come to pset4 - Filter (less) and have become absolutely stuck. I have programmed the other 3 photo filters with ...
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
57 views

Filter Blur Image output is wrong

I'm not sure exactly what is wrong with my code. I don't get any runtime errors and my code compiles, but the image doesn't change at all compared with the original, and check 50 tells me I am out - ...
0
votes
1answer
783 views

CS50 filter issues with greyscale, sepia, and blur

for greyscale I get issues with check50, but the program appears to operate correctly. With sepia and blur, the image outputted is the same as the image inputted. For blur, I would also be curious to ...
0
votes
1answer
124 views

Unusual errors in Blur filter

I am working on the Blur filter in pset4 and I have received some very unusual errors when trying to compile my program. The following is my code for the blur filter. As part of this, I have decided ...
0
votes
1answer
80 views

What can be going wrong in this blur code?

void blur(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { //i0j0 corner top-left ...
1
vote
2answers
207 views

Help with blur filter for pset4! Output image is significantly darker than input

This is the output and input image that my code generates: https://imgur.com/a/mT7YqCD void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE newImage[height][width]; ...
0
votes
2answers
528 views

pset4 blur filter

I've been working for like a week on cs50/pset/filter/blur question, but this doesn't seem to be working. My code is like this, and the resulting "blur filtered" image is not any close to what is ...
0
votes
1answer
92 views

Miscalculating the Corner and Edge pixels in blur

My Blur function seems to correctly calculate the middle pixels but fails (horribly) to calculate corner and edge pixels. This is my Blur function: // Blur image void blur(int height, int width, ...
0
votes
1answer
128 views

Blur function not working in filter

I can't find any mistakes in my code: // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) ...
0
votes
1answer
218 views

rounding problems with blur function - pset4 2020, filter less

I´m stuck in this two problems in Blur function that according to check 50 has to do with rounding issues, or maybe something more. I´ll appreciate your attention and support. Thank you. Here are the ...
0
votes
1answer
2k views

PSET 4 Filter(Less) help with Blur

The code visually seems to work (the images look blurry on the output) when I run it with all 4 of the pre loaded images, but with Check50 everything is marked as incorrect and I can't figure out why. ...
0
votes
1answer
145 views

PSET4 blur, one pixel short of success

I'm so close to solving this problem and I'm only one pixel short of getting it thorugh, but I cannot for the life of me figure out what I'm doing wrong. Really hope some (one) of you can spot the ...
0
votes
1answer
189 views

Problem set 4: filter blur

I can only seem to get the corner pixel correct, anyone can spot what's the issue? Thanks! void blur(int height, int width, RGBTRIPLE image[height][width]) { int newRed[height][width]; int ...
0
votes
1answer
4k views

pset4 filter blur help

my code for my first attempt for blur is a tad long (I know there are definitely better ways to solve it), but I'm not sure what's wrong with my current one as when I try to visualize my code with a ...
0
votes
0answers
774 views

PSET4 filter blur issue

pset4 blur is the only filter that took me this number of lines, but I still can not figure out where the problem is // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) ...
0
votes
1answer
107 views

pset4: filter blur minimize code

instead of all if-else statements, there is another way for all conditions to minimize my code. void blur(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < ...
0
votes
1answer
581 views

pset4: filter blur wrong count

wrong output when I try cs50 check but when I passing image the count is right I can not find the wrong. void blur(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < ...
0
votes
1answer
3k views

PSET4 -Blur function

I have been working on the blur function for PSET4 and when i test the function, the provided picture is blurred but i still get a few errors when i run check50. See link to check50's results: ...
0
votes
1answer
2k views

pset4 filter: blur seems to be working, but check50 reads errors

For the filter program on pset4, the blur filter seems to be working fine for all images that were included in the distribution code. The blur filter takes a pixel in an image and adds its color ...
0
votes
1answer
180 views

Why does it say that my index it -1?

I am working on blur in filter and it says my index is our if bound -1 // Create count starts and end count int sh = -1; int eh = 1; int sw = -1; int ew = 1; ...

1
2