Questions tagged [pset4filterblur]

The tag has no usage guidance.

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

Filter-Less: Blur keeps causing segfault, can't figure out why

Trying to figure out Blur, it keeps giving me segfault and I can't figure out why. Valgrind points to the first red_avg += image[i - 1][j - 1].rgbtRed; line (which means all of the similar subsequent ...
0 votes
0 answers
7 views

YOUR OPINION IS APPRECIATED, pset4, less comfortable, BLUR code, SPOILER

... Fellow Students of CS50, I have finished the problem pset4/filter-less. I would appreciate if more experienced programmers take a look at my code and provide comments, observations, suggestions. I'...
0 votes
0 answers
13 views

pset4, blur, filter-less ...using POINTERS and NULL character

I've been working on blur from PSET4, filter-less for about a week now. I've been trying to filter those pixels with no content by copying the image pixels into a pointers array. Then, I paste NULL ...
0 votes
1 answer
34 views

Trying to complete Blur, need a little help. I've rewritten several times I've tried pointers and variables inside and outside the function

I changed this a few times, I tried to condense it, but now the NULL check gives me an error message // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE copy[...
  • 1
0 votes
1 answer
21 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 ...
0 votes
0 answers
18 views

pset4 filter (less comfortable) blur calculation errors

I am currently stuck on the blur function of filter pset4. I have code that compiles and seems to blur images, although the calculations are slightly off according to check50. Apologies if this ...
0 votes
1 answer
25 views

pset4 blur filter invalid or unsupported image format

In pset4 Filter problem when I write blur function I get Invalid or Unsopported Image Format Error. The program compiles without errors and in check50 it also works fine. This is my code. I would ...
0 votes
1 answer
19 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 = ...
0 votes
2 answers
196 views

Pset4 Blur (filter less) not passing check50

As title says, I am not passing check50 for blur. I am aware that my method is probably extremely tedious and not the best method, but I came up with it myself and would like to find out why it isn't ...
1 vote
1 answer
33 views

My blur function blurs every image, but fails every check50 check - please help!

I'd really appreciate any help that can be offered here. My code seems to output a blurred image perfectly, but fails every check50 check and I can't work out why... void blur(int height, int width, ...
0 votes
1 answer
71 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
1 answer
101 views

pset4/filter: What is being instantiated with RGBTRIPLE(*image)[width]

I'm struggling to get my head around what is being instantiated here with (*image) (and what to do with it) in this line: RGBTRIPLE(*image)[width] = calloc(height, width * sizeof(RGBTRIPLE)); I ...
  • 101
1 vote
2 answers
58 views

Blur only working with middle pixel

I've been stuck in this problem for a while, and the code only works when its inputted a middle pixel. Does anyone have a clue? I've searched everywhere for this particular issue, but I have only ...
  • 11
0 votes
1 answer
40 views

Pset4 Blur filter, loop for searching surrounding pixels

I'm trying to write the part of the code where the surrounding pixels around the main pixel are searched in order to make the average and later replace the main value for the average value. I am ...
2 votes
1 answer
76 views

pset4 - filter program,can't figure out what exactly is the problem with blur!

Can't figure out what the problem with this code is. It seems to be working correctly for corners, but for nothing else. Please help! void blur(int height, int width, RGBTRIPLE image[height][width]) { ...
0 votes
1 answer
67 views

CS50 Problem Set 4 Filter (less comfortable) help

So I have been struggling to correct my code to fix the blur function of pset4 and feel that my code is correct (even if it isn't optimally efficient). Here's how I went about it: First I looped ...