Questions tagged [edges]
The edges tag has no usage guidance.
35
questions
-1
votes
1
answer
47
views
CS50 Pset 4 edges: Why do I keep getting segmentation fault?
Please help me figure out what's wrong! I've been doing this pset for so long now, and I feel like everthing should work, But I just get a seg fault! The code looks like...
void edges(int height, int ...
0
votes
0
answers
21
views
pset4 filter/more edge
My code compiles and run okay I does everything but when checking with check50 It shows error
My code is :
#include "helpers.h"
#include <math.h>
// Make a copy of array
void ...
0
votes
0
answers
9
views
Pset 04 Edges FIlter. I don't know whats wrong with the code
I've been trying to implement the function edges with an auxiliary one, determineEdges. It compiles, but generates, probably by an error, a black image.
I'm having trouble to figure out what is the ...
0
votes
1
answer
19
views
Problem with Edges Pset4
I've been at this Pset for a while now, I've got everything down except for Edges, and if I'm understanding correctly, every single value is coming out correctly except for the values for blue are 99% ...
0
votes
0
answers
28
views
Week 4 - Filter (More Comfortable) - Edge
I cannot for the life of me understand what's wrong here. It does apply a filter, but it looks too blue and doesn't pass the CS50 check. Any ideas?
void edges(int height, int width, RGBTRIPLE image[...
0
votes
1
answer
35
views
Segfault while declaring 2d array in filter-more's edges function. Probably a lack of memory?
At the very start of the edges function i try to declare an array to hold the image with black borders (now the first comment), but as i've discovered using printfs, it causes a segfault. I searched ...
0
votes
1
answer
90
views
pset4 filter-more All functions work when I test it but check50 gives error
I struggled a long time with this problem, and I saw other people had almost the same question and got answers but I didn't get to solve the problem.
All four functions seems to work but when I test ...
0
votes
0
answers
65
views
Pset4 edges only filters middle pixel
:) edges correctly filters middle pixel
:( edges correctly filters pixel on edge
expected "213 228 255\n", not "213 228 140\n"
:( edges correctly filters pixel in corner
expected &...
0
votes
1
answer
11
views
Do computers have to check if (false) the same way as whether (0 != 0), etc.?
I found Edges to be a double-edged assignment.
As I were to have the machine iterate over thousands of pixels to make computations, I figured I should try to minimise the amount of operations per ...
-1
votes
1
answer
120
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[...
1
vote
1
answer
70
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
1
answer
42
views
filter more comfortable pset4 edges
this is my attempt on cs50 more comfortable pset4 edges part
I cannot find my mistake.
I get a mostly white image with some repeating noise as output.
I have tried simplifying more complex expressions ...
0
votes
1
answer
123
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 ...
1
vote
1
answer
360
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 ...
0
votes
1
answer
42
views
Some values in my 'edges' don't pass check50
the rightmost values in the matrix in check50 is wrong but the other values are correct. I'm not really sure what's wrong.
code:
void edges(int height, int width, RGBTRIPLE image[height][width])
{
...
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 ...
1
vote
1
answer
43
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
1
answer
174
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
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 ...
0
votes
1
answer
85
views
CS50 - edge filter pset4
I'm working on the edge filter in pset4 in CS50. The code compiles but when checking the code with check50 I get multiple errors. Looking closer at the output of the error check the first row and last ...
0
votes
1
answer
207
views
cs50 pset4 edge filter too much white
Hey guys i have been trying to figure out the problem with my code of the pset4 filter (more) about edge detection. My code compiles but the result image is strange, with a lot of bright/white and ...
0
votes
1
answer
414
views
PSET 4 - Filter: Anyone able to help me on Edges?
I'm having a lot of trouble figuring out how my code for edges is failing so badly every time. Any help on this would be greatly appreciated! Here is what I'm getting back from check50:
:( edges ...
0
votes
2
answers
249
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
1
answer
82
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
1
answer
80
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
1
answer
222
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
1
answer
155
views
PSet4 - Filter (more) - Edge
maybe one of you can help me out. The following code compiles and runs without any complaint, but the results are not the expected ones. Somehow the image-edge will be detected, but the new values ...
0
votes
1
answer
103
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
2
answers
703
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
2
answers
1k
views
PSET4 (More Comfortable) Filter Edges
I am trying to code Pset4 (more comfortable) edges, the program is running, but my outcome is completely white. Any Suggestions? Here's My Code....
void edges(int height, int width, RGBTRIPLE image[...
1
vote
1
answer
529
views
Pset4 Filter Edge Dedection
my code is running well on a dedicated hardcoded version of check50 edges middle pixel, but as soon as I use it for the check50 it gives an error. Debug50 did calculate exactly what it should have ...
0
votes
1
answer
556
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 ...
2
votes
2
answers
6k
views
Pset4 filter edges issue
I'm trying to figure why my code doesn't work for detecting edges. Even though it produces a result, it is too white. Any suggestions?
// Detect edges
void edges(int height, int width, RGBTRIPLE ...
1
vote
1
answer
1k
views
PSET4 Filter, edge detection process only works for square-like pictures. How to make it work for the whole picture?
I have written my code based on how I structured the code for the blur filter.
For some reason the result is pretty weird, the processing of edge detection is only taking place in a square. See ...
0
votes
1
answer
528
views
pset4: edges have correct 3 out of 5
the corner check correct and the edges check correct and middle pixel check correct but the whole image wrong why ?????
void edges(int height, int width, RGBTRIPLE image[height][width])
{
int ...