Questions tagged [filtermore]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

pset 4 filter edges help

pset 4 filter-more edges code. I'm confused where it is going wrong. Anybody can figure out please tell me. here is my code. // Detect edges void edges(int height, int width, RGBTRIPLE image[height][...
user avatar
0 votes
1 answer
16 views

My Red and Blue values are wrong but all my green values are correct. It's pretty simple what i've done. What am I missing ? Please help

void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE tmpimage[height][width]; for (int i = 0; i < height ; i++) { for (int j = 0; j < width; j++) ...
user avatar
0 votes
0 answers
23 views

PSET 4 Blur - How to construct logical flow to average values without many IF statements?

I'm working on the Filter-more Blur problem, and I'm having trouble translating my ideas from paper to code. My first thought was to have many IF statements that would take care of the specific cases (...
user avatar
0 votes
0 answers
6 views

I am having trouble with filter (more) edge detection: it returns a white image, i just can seem to find where i am going wrong

void edges(int height, int width, RGBTRIPLE image[height][width]) { int Gx_arr[3][3] = { {-1, 0, 1}, {-2,0,2},{-1,0,1}}; int Gy_arr[3][3] = { {-1, -2, -1}, {0, 0, 0}, {1, 2, 1}}; ...
user avatar
1 vote
1 answer
143 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 ...
user avatar
1 vote
1 answer
31 views

My blur function blurs every image, but fails every check50 check - please help!

I'd really appreciate any help that can be offered here. My code seems to output a blurred image perfectly, but fails every check50 check and I can't work out why... void blur(int height, int width, ...
user avatar
0 votes
1 answer
38 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]) { ...
user avatar
0 votes
1 answer
52 views

When i run this code below, errors pop out error: like subscripted value is not an array, pointer, or vector edgeimage[i][j] = image[height][width];

void edges(int height, int width, RGBTRIPLE image[height][width]) { //Set temp image RGBTRIPLE *edgeimage = malloc((height + 1) * (width + 1) + 4); //RGBTRIPLE edgeimage[height][width]; //Go ...
user avatar
0 votes
1 answer
118 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, ...
user avatar
  • 3