Questions tagged [pset4blur]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
24 views

pset 4: filter blur logic problem?

I'm having difficulty understanding what I'm doing wrong with the blur filter from problem set 4. Here's my code: void blur(int height, int width, RGBTRIPLE image[height][width]) { // create a ...
Belasco's user avatar
  • 13
0 votes
0 answers
17 views

Having issues with PS4 Filter (Less) Blur Function

I feel like I'm really close to a solution to this problem, I just can't put my finger on where the issue is occurring any tips would be greatly appreciated. void blur(int height, int width, RGBTRIPLE ...
Daniel Thane's user avatar
0 votes
1 answer
29 views

How can I read an image from a file to a buffer?

I want to read 'image[width][height]' but anytime I do it I encounter this error message "incompatible integer to pointer types passing 'RGBTRIIPLE' to a parameter of type 'FILE *' (aka ...
Yunus's user avatar
  • 3
0 votes
1 answer
53 views

PSET4 Blur - Issue understanding what am I doing wrong

I have been stuck on this problem for around 2 weeks, and I have no idea what am I doing wrong... I would like some hint to what I am doing wrong, in which part of code it might be, etc.. My code ...
ThatLinuxGuy's user avatar
0 votes
1 answer
425 views

Filter less, Blur, why does my code not blur the edge and 3x3 and 4x4 image?

I am stuck at the blur function in filter less. Your task is to calculate the average RGB value of the surrounding pixel in one row and one column of a bmg image, including the middle pixel. It works ...
Karl's user avatar
  • 5
0 votes
1 answer
129 views

Filter blur errors

I'm working on the filter-less problem in pset4. I've got all of my functions to work properly except for the blur function. I am getting the following errors I believe due to problems with how I'm ...
getsendy's user avatar
0 votes
1 answer
28 views

Pset 4 Blur: Keep getting close yet wrong values but I can't find problems in my code

hello so I've been coding blur for a few days and have been running check50 for a while, and I keep getting results that show that the pixel values are just off by a max range of 10. It is really ...
Irwan Ahmed's user avatar
0 votes
1 answer
84 views

Filter (more) blur function fails check50

I've hit a bit of a brick wall writing a blur function for filter (more). This is my second go at refactoring the code, and although it produces a blurred image without any issues (no weird edges, ...
leftcase's user avatar
  • 113
0 votes
1 answer
103 views

CS50x PSET4 (Filter) - BLUR

This code is supposed to blur an image together with other supporting files as per CS50 Pset4. I am able to compile my code with no errors and run the program but it does not seem to blur my image ...
someone's user avatar
0 votes
1 answer
31 views

random rgbt number in pset4 filter

I used the walkthrough's example of an image to simplify things (6 x 6 image with a red cross in the middle and blue corners). I manually used debug50 on the indexes(i = 1)(j = 1) to check what ...
Sarwar's user avatar
  • 3
1 vote
1 answer
37 views

PSET4 LESS BLUR function -Ending Edges problem 2nd version

New version of my previous problem here PSET4 LESS BLUR function -Ending Edges problem I know the problem is with the imitations but can't figure out what is it My code works fine but for the ending ...
Ahmed Elbessfy's user avatar
0 votes
1 answer
23 views

PSET4 LESS BLUR function -Ending Edges problem

My code works fine but for the ending edges not. I mean the right & bottom edges values. Here is my code : void blur(int height, int width, RGBTRIPLE image[height][width]) { // h = 400 w = ...
Ahmed Elbessfy's user avatar
0 votes
1 answer
45 views

Not sure why code isn't working: PSet4 Filter (less) - Blur

I'm not sure why my code doesn't work for the blur section of pset4 (filter; less)? (I am aware there's a more efficient way to do this, but am interested in learning what's wrong with this specific ...
user33981's user avatar
1 vote
1 answer
610 views

PSET4 filter less Blur function

I am stuck in Pset4-Filter/less the Blur function in particular. My problem is the image blurred correctly but does not pass check50. Check50 result : :( blur correctly filters middle pixel >> ...
Ahmed Elbessfy's user avatar
0 votes
1 answer
503 views

CS50 blur filter failed 3x3 and 4x4

I created a for loop checking each pixel around the one to be blurred. If the pixel was in range, its RGB values would be added to a total variable to then be averaged. My program works for all ...
Amie's user avatar
  • 3
0 votes
1 answer
97 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 ...
Bob Tan's user avatar
0 votes
1 answer
88 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 ...
mjday's user avatar
  • 1
1 vote
1 answer
91 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 ...
andream's user avatar
  • 109
0 votes
1 answer
141 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 ...
charlotte's user avatar
0 votes
1 answer
184 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 ...
Ewan Willsmer's user avatar
0 votes
1 answer
152 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 ...
Daryl's user avatar
  • 3
0 votes
1 answer
165 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/...
bloomsdayforever's user avatar
0 votes
1 answer
48 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[...
Praneeth Kumar's user avatar
0 votes
1 answer
70 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 "...
Mohamed Fakhr's user avatar
0 votes
1 answer
405 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 ...
Xavier Villà Aguilar's user avatar
0 votes
2 answers
23 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]) { //...
Pontakorn Paesaeng's user avatar
0 votes
2 answers
3k 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 ...
ayeeitsalpha's user avatar
0 votes
1 answer
126 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 ...
Brian Fang's user avatar