Questions tagged [pset4filter]

The tag has no usage guidance.

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

Pset4 less comfortable errors!

i just finished Week 4's Lecture and started working on the "Feeling Less Comfortable" Filter project. The issue is that I wanted to see how well everything worked before I went on to submit it and ...
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
2answers
213 views

PSET 4 Errors: where did I go wrong?

So after being stuck on this pset for overlooking tiny typos I have finally gotten it to compile but I received more errors then I would like to have. If anyone could tell me where I can find the ...
0
votes
1answer
66 views

Edge detection produces weird outputs

I've been stuck on this for the past while and I'm not sure what's wrong in my algorithm. I get complete nonsense for outputs and I'm kind of lost on where to go from here. Any help would be ...
0
votes
1answer
95 views

pset4 filter “edge” passed check50, but can't produce images. SEGV on unknown address

The gray, blur and reflection filter went well and can product correct images. For the "edge" filter, it passed check50, but when I tried to input image and run it, it shows below: ...
0
votes
1answer
48 views

PSET4 - Filter edge too yellow

folks! I'm working on the edge detection algorithm, but for some reason, the image is turning out too yellow. I wonder if someone can give me some sort of hint at what I'm doing wrong, since I haven'...
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
3answers
39 views

Blur works visually, but check50 reads errors for every section

I know that the edges and corners are supposed to read errors, because I haven't fixed them yet. What I don't understand is why check50 reads errors for middle pixels. // Blur image void blur(int ...
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. ...
1
vote
1answer
321 views

pset4 filter won't open file

Every time I try to compile my code to check grayscale, I put in the input they gave in the instructions: ./filter -g infile.bmp outfile.bmp But I keep getting this message saying Could not open ...
0
votes
1answer
84 views

FIlters (more) - Unable to crack Edge

Below is my code for Edges. Please help me by highlighting the errors. Thanks in advance. Errors I am getting are: :( edges correctly filters middle pixel expected "210 150 60\n", not &...
0
votes
2answers
294 views

PSET 4 filter less comfortable (blur filter) help

Struggling with making the blur filter function for filter(less comfortable): When i try to run the program with the input and output file i get the errors marked by the asterisk (*) on line 26,27,28....
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
80 views

I don't understand what's wrong with my Edge filter. Pset4

There are lots of runtime errors and overflowed integers with my code, and I have no idea why that is the case. Please could you check it out? void edges(int height, int width, RGBTRIPLE image[height]...
0
votes
2answers
1k views

Pset 4 filter: reflect help

I have been stuck on pset4 for a while and when I try to compile my code I now get 3 errors in the reflect function which are: helpers.c:83:6: error: conflicting types for 'swap' void swap(int *a,...
0
votes
2answers
21 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]) { //...
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
1answer
62 views

pset4 Filter Reflect could anyone check my code, I can't find the error as to why it does not output desirably

// Reflect image horizontally void reflect(int height, int width, RGBTRIPLE image[height][width]) { int t[3]; // using temporary array to swap values for(int i=0;i<height-1;i++) // loop thru ...
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
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
105 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 ...
1
vote
1answer
314 views

pset 4 filter edge not working

I am having issues with my implementation of edges. I decided to make a 'border' around the edges of the image made up of zeros (did this in a copyImage array). I get correct outputs for some of the ...
0
votes
1answer
165 views

Week 4 GrayScale - Calling a function called Average within Grayscale

So I understand that the grayscale part of the assignment is supposed to be pretty basic, however, I am running into some unusual issues here. The following is my code for the grayscale filter. //...
0
votes
1answer
422 views

To those who struggle with pset4’s filter-more’s edge detection filter

I’m sure it is obvious for some people, but it wasn’t for me) If your code isn’t working the way it should, you can create new .c file and put there your logic from edge detection function. You can ...
0
votes
1answer
293 views

Filter - Blur Function Correct?

My blur function looks like it is working when I output files and it passes check50 on everything except the last two checks. Looking at the message below, it appears my values are correct ( "70 85 95)...
0
votes
1answer
215 views

Problem Set 4 - Filter (Blur)

I know its pretty lame and uninspired to hard-code each and every special case of the blur function, but somehow it still refuses to pass most of check50's tests (aside from the middle and edge pixel ...
0
votes
1answer
290 views

CS50 PSET4 Grayscale

Can anyone explain why we do not have to use a pointer for the new grayscale value? Whenever I tried : int *average = average of the colors *blue = &average ... etc It would error out. ...
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++) ...
1
vote
1answer
441 views

helpers.c not compiling for filter

I am doing filter less comfortable in pset4. My filter file compiles fine, but helpers.c gives the following error : clang-7: error: linker command failed with exit code 1 (use -v to see invocation) ...
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
275 views

Pset4 filter reverse issue

I am banging my head for the past hour on why this does not work. Basically, testing on the provided pictures, my reverse function does what it says on the tin. However, when I test it vs check50, ...
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
103 views

valgrind on filter -r. No leaks but errors

I am working on pset4 filter -r (reflection). How I want to achieve reflection: Reserve space in memory, enough to fit an image. Name it image-copy. Copy 1-to-1 the original file there. Original ...
0
votes
1answer
83 views

PSTET 4 - Reflect

I am currently working on the pset4 , specifically the filter functions. I keep getting the error that -1 is out of bound of the array, but i went over the code multiple times and use debug50 to trace ...
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; ...
4
votes
1answer
5k views

Why does it not round up correctly?

So i'm doing filter and I noticed that its not rounding up correctly. // Convert image to grayscale void grayscale(int height, int width, RGBTRIPLE image[height][width]) { // Iterate over height ...
0
votes
1answer
2k views

Pset4: Filter, reflect values are off

The code seems to spit out a nice-looking reflected image, however, check50 says some of the values are not reflecting the way they should be. It's odd because it works for a 1x3 image and 3x3 image, ...
1
vote
1answer
2k views

Pset4: Filter, Sepia, everything is fine except light blue

I have managed to get the sepia filter to work - almost. At first I was getting bright pink/magenta in the areas that were supposed to be white. I managed to fix that, but now I am left with some ...

1
2