2
votes
Pset4 Filter sepia error from check50
just fixed it. so the code was wrote in wrong order and the Ternary Operator was missing a ()
void sepia(int height, int width, RGBTRIPLE image[height][width])
{
for (int i = 0; i < height; i++)...
2
votes
Accepted
CS50 filter issues with greyscale, sepia, and blur
When you divide the 3 colors by 3 you'll probably get a decimal point value. If you receive it in a 'int' variable you'll get a trimmed number. (the decimal part will be removed) The way to do it is ...
2
votes
Accepted
cs50 pset4 filter sepia
instead of using BYTE before sepiaRed, sepiaBlue, sepiaGreen, originalRed, originalBlue and originalGreen, use float
Also, don't forget to round the values of sepia Red, Blue and Green using the ...
1
vote
Accepted
Pset4 (Less). Filter sepia. In the output image, the white parts are magenta
Look at the following code:
if(SEPIA[k] > 255)
{
SEPIA[k] = 255;
}
What is the value of k? Where is it incremented? Is it possible that some code was forgotten ...
1
vote
Accepted
Pset4 Sepia Function
Each new RGB value should depend on the input value. By assigning the newRed value to the image before calculating the newGreen pixel, the altered red value is used instead.
1
vote
Accepted
PSet 4 Filter(less) Sepia - Why is my output image slightly red tinted?
Looks like you have assigned incorrect value for rgbtBlue
image[i][j].rgbtBlue = sepiaRedCapped;
1
vote
Accepted
Two problems with pset4 in Grayscale and Sepia
If you look at the extended check50 results in the link at the end of the message, there are more clues to be found.
For the greyscale issue, the last pixel in the 3x3 image is off by 1, to the high ...
1
vote
Accepted
Cs50 Sepia properly coded
It's very readable as it is, with little inefficiency. The only things that I can think of doing would be to delete the temp vars original(color) and use the array vars directly. That would eliminate ...
1
vote
Accepted
PSET4: filter(less) sepia limit to 8 bits
The results are displayed in your question. If the code tries to store a number greater than 8 bits (greater than 255) in a one-byte data type, it generates a runtime overflow error. Nothing will be ...
1
vote
Sepia Filter won't work for more complex 3x3 and 4x4 images
You did not add the condition "if the value exceeds 255"..
If this answers your question, please mark it as answered.
Let's keep up on forum maintenance!
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sepia × 14pset4 × 11
filter-less × 5
cs50x × 3
filter × 3
pset4filter × 3
check50 × 2
blur × 2
grayscale × 2
c × 1
fails-check50-but-works × 1
week4 × 1
lesscomfortable × 1