Questions tagged [edges]

The tag has no usage guidance.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
47 views

PSET4 — Filter (more) — Edges Error

I'm currently working through the filter problem, and I'm not sure why it's not working on the pixels on the edge (it also seems to only be incorrect on the B value in RGB). This is the message I'm ...
1
vote
1answer
28 views

Pset4 - Filter (more) Edge Detection Help

I'm testing my Gy function separately, and it looks like the values I put in the test array are not correctly showing up in the function. I printf() the main function and they are recording correctly, ...
0
votes
1answer
26 views

CS50 - PSET 4 - Filter - Edges

//Pixel buffer RGBTRIPLE pixelBuffer[height][width]; //Iterates on every pixel and calculates Gx and Gy for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++)...
0
votes
0answers
11 views

Cant figure out what is wrong with pset 4 more edges. check50 returns the following :-

:) edges correctly filters middle pixel :) edges correctly filters pixel on edge :) edges correctly filters pixel in corner :( edges correctly filters 3x3 image expected "76 117 255\n21...&...
0
votes
1answer
32 views

I don't know what I'm doing wrong Pset4 filter “edges”

I can't get edges to work I would really like some hints to what's wrong with my code. // Detect edges void edges(int height, int width, RGBTRIPLE image[height][width]) { //copying original image ...
0
votes
0answers
18 views

Help with PSet 4 Filter (More) Edge

I've been stuck on the Edge part of Filter (More) for a few days now. Check50 tells me that none of the pixels return the right values but I can't seem to find any problem with the code. Here's my ...
0
votes
0answers
16 views

edges seem to work fine when i use it, but check 50 says it's all wrong

So here is my code. Not the best one, but I wrote it without any help and it work. At least i think so when i look at the output images. But check50 says it is wrong. My only thought is that i decided ...
0
votes
0answers
22 views

not sure what is wrong with my code for edge in filter PSET4

void edges(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE tmpGx[height][width]; RGBTRIPLE tmpGy[height][width]; int redtemp; int bluetemp; int greentemp; ...
0
votes
0answers
15 views

Only the first test passed for Edges (Filter, more comfortable)

I have been staring at Edges for a whole day, still can't find out what's wrong with it. The test says the middle pixel is correctly calculated. but edges, corners, 3X3....no go. Anybody can offer a ...
0
votes
0answers
20 views

CS50 filter more edge

I've been stuck for hours trying to solve this, so I would appreciate someones help lol So my edges filter is only passing the test for the middle pixel: I can't figure out what is wrong with my code ...
0
votes
0answers
12 views

i started doing pset4, managed to get edges to work but green is always off, can someone please help me find out what i did wrong

int cap (int value) { return value < 255 ? value: 255; } RGBTRIPLE get_edge(int i, int j, int height, int width, RGBTRIPLE image[height][width]) { int Gx[3][3] = {{ -1, 0, 1}, {-2, 0, 2}, {...
0
votes
0answers
14 views

pset4 Filter Edges - Image is mostly white. Wrong variable = 0 or wrong loops?

My images are mostly white. My code returns 255 for RGB without resetting. So either my int is wrong or my loops are wrong but I can't see it. Here is my logic: edges function loops through every ...
0
votes
1answer
91 views

pset4 Filter (more) Edge Detection help

void edges(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE copy[height][width]; for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) {...
0
votes
2answers
135 views

Q: PSETt#4 - Filter (more) - Edges

I'm stuck with the problem pset4 edges. The checks for the middle pixels work. But not the corner's pixels. :( edges correctly filters pixel in corner expected "76 117 255\n", not "76 117 66\n" It ...
0
votes
1answer
56 views

CS50 PSET4 Edge calculates correct values on all tests unless the correct value is 255

I am having problems with CS50 PSet 4 - Edge. The method passes the middle pixel test (which has no value of 255 on any channel) but on any other test all the values in each channel are correct ...
0
votes
1answer
147 views

PSET #4 - Filter (more) - Edge

I've been trying to finished filter(more) all this morning, but I'm stuck with this code, I don't know why is incorrect, withcheck50 outputs in red: :( edges correctly filters middle pixel ...
0
votes
1answer
88 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
1answer
377 views

Pset4 , edge , I dont understand what is wrong ,

It seems it is finding edges, When I run check50 it is giving me the errors below : :) edges correctly filters middle pixel Log testing with sample 3x3 image first row: (0, 10, 25), (0, 10, 30), (...
0
votes
1answer
445 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 ...