Questions tagged [pset4filter]

The tag has no usage guidance.

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

PSET 4 filter-less problem

I'm confused about the reason I can't pass this test, if anyone can notice what's the cause I would be grateful :) here is the log : :( blur correctly filters 3x3 image Expected Output: 70 85 95 80 ...
rida brahim's user avatar
0 votes
1 answer
15 views

CS50 Blur - Why declaring the variable outside the loop change the result?

I am working on pset4 filter-more - blur. Below is my code for the problem set. Somehow I found that if I declare my variables as per the "commented" lines in my code, the picture cannot be ...
Croix How's user avatar
0 votes
1 answer
23 views

Pset 4 Filter - The Blur filter. I only pass the "Blur correctly filters pixel in corner" though I can see that the output is entirely filtered

Here is my code.. It seems to work fine. I just can't tell why can't I pass the stupid checker! Hope someone can assist me. void blur(int height, int width, RGBTRIPLE image[height][width]) { ...
Mostafa Abdelnaser's user avatar
0 votes
1 answer
14 views

Iterating over the members of RGBTRIPLE struct

The RGBTRIPLE data type specified in bmp.h has three members, and I want to be able to iterate over them like: for (int k = 0; k < 3; k++) { printf("%i\n", image[i][j][k]) // prints ...
pherb's user avatar
  • 1
0 votes
0 answers
6 views

No error when image array out of index

I wrote some code for reversing the image, and was finding one of the columns wasn't moving - realised I was indexing image[i][width] element, which didn't exist due to 0-indexing. However it didn't ...
pherb's user avatar
  • 1
0 votes
0 answers
16 views

PSET04 Filter EDGE FUNCTION HELP!

I'm doing the filter-more pset. And I got errors in the edge function. I don't know why the intensity of each channel color per pixel are different than the correct ones. Maybe, I'm doing wrong about ...
AlvaroAndLukeTheCoder's user avatar
0 votes
0 answers
12 views

PSET04-filter more Edge Function. I need help, PLEASE!

I'm very confused why my code is not working. And there are these strange errors in the results of Check50, I don't know why. I know it could be complicated to read my code due to the amount of code I ...
AlvaroAndLukeTheCoder's user avatar
0 votes
0 answers
4 views

Why is this happenning while getting the RGB results? - PSET04 FILTER (BLUR FUNCTION)

I'm doing the PSET04 (Filter-Less). And I got some errors in the last function (Blur), I don't know why the RGB Colors are different than the correct ones. Please help me, i'd appreciated. Current ...
AlvaroAndLukeTheCoder's user avatar
0 votes
1 answer
61 views

CS50 Filter-Less Reflect Function

I've been racking my brain about this problem for what should be a pretty simple issue. No matter what I've tried, I haven't been able to get an output image that is flipped - just one that is an ...
Danyal Ahmed's user avatar
0 votes
2 answers
14 views

My version of blur doesn't seem to work according to auto grader, but is seems to work for the sample pictures

Currently I am working on filter-less more specifically the blur function. I have tested it and it works for the pictures that I try to blur. Although the auto grader is not as happy as I am. Here is ...
Neuquert's user avatar
0 votes
1 answer
28 views

Why does make helpers return this?

Here is the error message in text: filter-less/ $ make helpers /usr/bin/ld: /lib/x86_64-linux-gnu/Scrt1.o: in function _start': (.text+0x1b): undefined reference to main' clang: error: linker command ...
L. C. Jimenez's user avatar
0 votes
1 answer
168 views

filter-less, reflection, segmentation fault, core dumped, PSET4

dear Friends of CS50X, I have been working on pset4, filter-less, reflection for several hours now. I think my code does what it is supposed to do. Also, in my solution I tried to use the concepts ...
Alvaro Barboza'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
-1 votes
1 answer
161 views

PSET4 - Filter(more)- Edges- Check50 error

#include"helpers.h" #include <math.h> int check_cap(int num); void edges(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE image_copy[...
BadboyNicholai's user avatar
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
22 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
597 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
2 answers
357 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 ...
10forever's user avatar
0 votes
1 answer
962 views

PSET4 Filter (Less) Sepia

:( sepia correctly filters simple 3x3 image expected "100 89 69\n100...", not "100 89 69\n100..." :( sepia correctly filters more complex 3x3 image expected "25 22 17\...
cheero's user avatar
  • 1
0 votes
1 answer
135 views

pset4 filter Invalid or Unsupported Image Format

I have an issue with the pset4 filter, I've applied grayscale filter and sepia filter and they are working already, but when I started to write a code for reflect filter and try to compile then ...
Mohamed Shawky's user avatar
0 votes
1 answer
75 views

Pset4 Im having issues with the blur filter

Im extremely close to solve this problem, this is the result of check50 :) helpers.c exists :) filter compiles :) grayscale correctly filters single pixel with whole number average :) grayscale ...
Ronny Groin's user avatar
1 vote
1 answer
182 views

Blur - I'm so close, but yet not 100%

Apologises for the long post: I wanted to be as explicit in my logic as possible The code I've written uses the following logic to box blur: Use nested for loop to access each pixel in image Check ...
user13641095's user avatar
0 votes
1 answer
197 views

pset4 filter (more) edge not passing check50

this is my code for Edge, and it's not passing check50. below are the errors I got. any help is appreciated. :( edges correctly filters middle pixel expected "210 150 60\n", not "28 202 ...
YMeng's user avatar
  • 23
0 votes
1 answer
303 views

Pset4 Filter sepia error from check50

below is my code for Pset4 filter(less). the code compiles fine, but I was getting these errors from check50. really appreciate if anyone can help. thanks :( sepia correctly filters single pixel ...
YMeng's user avatar
  • 23
0 votes
1 answer
114 views

PSet 4 Filter(less) Sepia - Why is my output image slightly red tinted?

At first, I forgot to cap the RGB values at 255 for sepia, and it resulted in white pixels being blue. But other areas were fine(proper sepia). So additionally, I added the ternary operators to check ...
Sheikh Ameen's user avatar
0 votes
1 answer
16 views

cs50 pset4 grayfilter

Could someone explain me why there is a difference when you use float in front of image[i][j] compare to not using it. Because if I'm not mistaken, image[i][j].rgbtRed or the 2 others are already ...
Sush48's user avatar
  • 3
0 votes
1 answer
56 views

Why is reflect filter not working Pset4?

Here is my code. I have overcomplicated it. for (int i=0;i<height -1; i++) { for (int j=0;j<width- 1;j++) { int value[3]; value[0]=image[i][j].rgbtBlue; value[1]=image[i][j]....
Cooldude's user avatar
0 votes
2 answers
64 views

edges completely fails check50

So I finished my edges function and it's failing everything for check50 and I can't understand what I did wrong. Any help would be greatly appreciated. Functions related to edges: // Sets new RGB ...
Newbie's user avatar
  • 1
1 vote
2 answers
79 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 ...
fer 545's user avatar
  • 11
1 vote
1 answer
90 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
48 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 ...
Nicolas Solis's user avatar
2 votes
1 answer
85 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]) { ...
Lakshya Dugar's user avatar
0 votes
1 answer
105 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 ...
thefailagent's user avatar
0 votes
1 answer
115 views

Cs50 Sepia properly coded

I did the sepia filter for the cs50 week 4 problem "filter) and although it works, I've been wondering, is there is not a more "proper" way to write the code, that is with out repeating ...
Nicolas Solis's user avatar
0 votes
1 answer
56 views

Runtime error in pset4

I'm currently working on filter.c, and I'm struggling with the blur segment of it. I tried to write a code (I'm aware it's a mess of hard-code, but it's an attempt!), but I keep getting this error: ...
Hana Ali's user avatar
0 votes
1 answer
176 views

CS50 Pset4 Filter (More comfortable) Edges Function

I am trying to code CS50's Pset4 Filter (More comfortable)'s edges function, but I keep on getting a different value. This is the link to the video explaining what I am trying to do in this function, ...
RK-83's user avatar
  • 3
0 votes
2 answers
67 views

Help with pset4 filter edge detection function

I have some problems with the edges function. The code compiles fine and all but the result looks like this: https://i.stack.imgur.com/saEBo.jpg The edges of the image and one third of it don't look ...
4RZG4's user avatar
  • 1
0 votes
1 answer
174 views

pset4 filter - blur function only filters image corners

This is my second attempt at this problem, and a full rewrite; I tried once before to be as eloquent as I could, and it was just totally wrong and bizarre. So I just tried to make this one as readable ...
dubflicker'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
69 views

PSET4 Reflection Filter

I'm having trouble getting my head around the pointers needed for the reflection filter. I have got to here and can't get the syntax right. Any tips would be much appreciated. Thanks. void reflect(int ...
Ewan Willsmer's user avatar
0 votes
1 answer
63 views

PSET 4 BLUR and 2 of REFLECT

All of reflect works except reflected a 1 x 2 and a 4 x 4 (3x3 works fine) None of blur works except for when a point is in the corner, which makes little sense. I've sluthed around other answers and ...
Matthew's user avatar
  • 15
0 votes
1 answer
59 views

Pset4 less comfortable compile error

When I try to compile my helpers.c file the compiler shows me clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wshadow helpers.c -...
Harsheen Rajpal's user avatar
1 vote
1 answer
84 views

pset4 - Green and Blue off in filter (less)

My code is here. void sepia(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { ...
prasadpradyumna's user avatar
0 votes
1 answer
43 views

At my wits end on pset4 filter blur

I am stumped on this problem, more specifically, on the blur filter. I can't see anything wrong with the program, but it still errors out on check50. It seems that the middle function is correct, but ...
Sudhip Nashi's user avatar
0 votes
1 answer
367 views

Need help with CS50's Filter (less) Blur

I'm doing CS50 and trying really hard to keep sane while I try to finish the last part of the Filter (less) exercise. I'm stuck on "Blur". I've tried to resist looking for help online ...
Ana Cláudia Faria's user avatar
0 votes
1 answer
153 views

PSET4 Filter (more) Edge

I got some weird issue with my code! It compiles without any problems. All other filters work perfectly, and check50 shows no problems (no problem in edge according to check50). But, when i try edge ...
Aftab Ansari's user avatar
0 votes
1 answer
112 views

Is there an operator for raising in a power in C?

In PSET4 Edges Filter problem you are supposed to calculate Gx ^ 2. But the operator ^ in C does not seem to mean raising in a power. For Gx = -9 it returns Gx ^ 2 = -11 and so on. Turned out ^ is XOR ...
lektoakle's user avatar
0 votes
1 answer
54 views

Pset4 Reflect not working on 4x4 image

I get the eror only for the 4x4 image, the others are correct. Seems like the values are swapped between each other, but I cant find a way to fix it. Something in the inner loop (I think) is swapping ...
Sebastian Lares's user avatar
0 votes
1 answer
277 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 ...
Leoness's user avatar