Skip to main content

Questions tagged [filter-less]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
131 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 ...
0 votes
2 answers
380 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 ...
0 votes
1 answer
206 views

pset4 - filter(less) - sepia not working

void sepia(int height, int width, RGBTRIPLE image[height][width]) { for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { float redS = .393 * (...
0 votes
1 answer
37 views

Help to finish my problem - Check50 - Pset4 - Filter Less

I am coding the sepia filter, it is already working, but it does not pass the check50. I think of according to the check50 report, that there is some problem of precision in the calculations, but I ...
0 votes
1 answer
54 views

How to conserve original values in blur function? (pset 4)

Here's my code inside the blur function (in pset 4, Filter-Less): int redSum; int greenSum; int blueSum; int n; for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { ...
0 votes
1 answer
26 views

i don't know what is wrong when i run the program the output is all zeros

void blur(int height, int width, RGBTRIPLE image[height][width]) { double red_sum ; double green_sum ; double blue_sum ; double counter; RGBTRIPLE new_image[height][width]; ...
0 votes
1 answer
235 views

Pset4 (Filter-Less) Greyscale not passing check50

I tried implementing the GreyScale function but I didn't got the average values of the pixels correctly. I don't know what I'm doing wrong. Any hints will be appreciated. My code: void grayscale(int ...
0 votes
1 answer
163 views

Blur in cs50 problem set 4

My code for the blur filter works fine to edge, corner and middle pixels, but it doesnt work right for a whole 3x3 or 4x4 picture i've been trying everything but nothing seems to fix it. This is what ...
1 vote
1 answer
116 views

Pset4 filter-less reflect function not passing check50

So i came up with this solution to the reflect function. It seems to properly reflect all the images but i'm getting all errors on check50. Trying to figure out what went wrong. We are encouraged to ...
0 votes
1 answer
35 views

filter-less blur function

I am stuck at pset4 filer-less, blur function. The duck and chatgpt say that my code is correct but it doesn't give excepted outputs in any of Check50 result for blur function. //Blur image void blur(...
0 votes
2 answers
86 views

CS50 pset4 filters/less check50 error

I am trying to check my code using check50 but it gives me the error But when I am compiling it and running it from the terminal it runs just fine. My code for helper.c is #include "helpers....
0 votes
1 answer
149 views

Why does my Reflect function for pset4 filter (less) "correctly filter an image that is its own mirror image" but fail all other checks?

My reflect function correctly filters an image that is its own mirror image but for every other check fails. Here is the terminal output of submit50: :( reflect correctly filters 1x2 image ...
0 votes
1 answer
172 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 ...
0 votes
1 answer
353 views

Pset4 (Filter-Less) Reflection: Not getting correct values on Check50

Image seems to be reflected correctly but the program doesn't pass check50. Code: void swap(RGBTRIPLE *a, RGBTRIPLE *b); void reflect(int height, int width, RGBTRIPLE image[height][width]) { for (...
0 votes
1 answer
35 views

Why is my array code not working in case of pset4, filter's reflect function?

The purpose of reflect is to invert the array of pixels from right to left. So, I decided to create an array and store the data with a negative count loop. Then repopulate the array with a positive ...
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 ...
1 vote
1 answer
622 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 >> ...
0 votes
1 answer
77 views

Pset4 (Less). Filter sepia. In the output image, the white parts are magenta

For some reason, the image attached below is the output I get with Sepia filter. I don't know where the code is wrong. void sepia(int height, int width, RGBTRIPLE image[height][width]) { int k = 0;...
0 votes
1 answer
115 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 ...
0 votes
1 answer
100 views

My helpers doesn't pass check50

my helpers doesn't pass check50 and I don't know why. This is the code: #include "helpers.h" #include <math.h> // Convert image to grayscale void grayscale(int height, int width, ...
1 vote
1 answer
64 views

Pset4 Filter Less Blur Runtime Error

Below is my Blur function, which does actually work, yet still returns 9 runtime errors all relating to the right hand side of the image (or the width-value edge). I added a couple of printfs to check ...
0 votes
1 answer
95 views

PSET4: filter(less) sepia limit to 8 bits

I'm working on pset4 filter(less) and have a question regarding limiting the RGB value to 8 bits. I'd like to know what happens when a value of more than 8 bits is stored in BYTE (uint8_t). Initially, ...