Questions tagged [sepia]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 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
1answer
25 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
1answer
28 views

Pset4 Sepia Function

I test it and it works but check50 tell :( sepia correctly filters single pixel expected "56 50 39\n", not "56 62 60\n" :( sepia correctly filters simple 3x3 image ...
0
votes
1answer
89 views

Pset4 Filter sepia error from check50

below is my code for Pset4 filter(less). the code compiles fine, but I was getting these errors from check50. really appreciate if anyone can help. thanks :( sepia correctly filters single pixel ...
0
votes
1answer
62 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 * (...
1
vote
1answer
30 views

CS50 Pset4 Sepia

I have been working on PSET4 and understood the code and the tasks fine. But my compilation does not change the image and I cannot figure out why it will not work for the life of me. I have checked ...
0
votes
1answer
44 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
1answer
78 views

Two problems with pset4 in Grayscale and Sepia

The following code keeps on giving me bugs about something I can't figure out when checking with check50 and I'm not sure what's wrong. here's the code: // Convert image to grayscale void grayscale(...
0
votes
1answer
50 views

Cs50 Sepia properly coded

I did the sepia filter for the cs50 week 4 problem "filter) and although it works, I've been wondering, is there is not a more "proper" way to write the code, that is with out repeating ...
0
votes
1answer
48 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, ...
0
votes
1answer
205 views

Sepia Filter won't work for more complex 3x3 and 4x4 images

:) sepia correctly filters single pixel :) sepia correctly filters simple 3x3 image :( sepia correctly filters more complex 3x3 image expected "25 22 17\n66 5...", not "25 22 17\n66 ...
0
votes
1answer
70 views

pset4 Filter Issues

So for some reason neither sepia or blur is returning a picture that has been altered at all. I think this has to do with my storing values in a new RGBTRIPLE called newimage and then after all fo ...
0
votes
1answer
893 views

CS50 filter issues with greyscale, sepia, and blur

for greyscale I get issues with check50, but the program appears to operate correctly. With sepia and blur, the image outputted is the same as the image inputted. For blur, I would also be curious to ...
0
votes
1answer
949 views

cs50 pset4 filter sepia

I'm working on Sepia (2020 problem set 4- filter). The command window printed out the following error message: helpers.c:33:29: runtime error: 260 is outside the range of representable values of type ...