Questions tagged [filter-less]
The filter-less tag has no usage guidance.
9
questions
1
vote
1answer
42 views
Pset4 Filter Less Blur Runtime Error
Below is my Blur function, which does actually work, yet still returns 9 runtime errors all relating to the right hand side of the image (or the width-value edge).
I added a couple of printfs to check ...
0
votes
1answer
53 views
My helpers doesn't pass check50
my helpers doesn't pass check50 and I don't know why. This is the code:
#include "helpers.h"
#include <math.h>
// Convert image to grayscale
void grayscale(int height, int width, ...
0
votes
1answer
31 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
0answers
21 views
pset4 - filter - less - blur doesn't work
// Blur image
void blur(int height, int width, RGBTRIPLE image[height][width])
{
//Temp array
RGBTRIPLE temp[height][width];
for (int i = 0; i < height; i++)
{
for (int j = ...
0
votes
1answer
20 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 * (...
0
votes
1answer
15 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
27 views
How to conserve original values in blur function? (pset 4)
Here's my code inside the blur function (in pset 4, Filter-Less):
int redSum;
int greenSum;
int blueSum;
int n;
for (int i = 0; i < height; i++)
{
for (int j = 0; j < width; j++)
{
...
0
votes
0answers
28 views
Pset4 Filter/Less Reflect Not Working Properly
I tried this:
// Reflect image horizontally
void reflect(int height, int width, RGBTRIPLE image[height][width])
{
RGBTRIPLE temp[height][width];
RGBTRIPLE reflection[height][width];
struct ...
0
votes
1answer
20 views
i don't know what is wrong when i run the program the output is all zeros
void blur(int height, int width, RGBTRIPLE image[height][width])
{
double red_sum ;
double green_sum ;
double blue_sum ;
double counter;
RGBTRIPLE new_image[height][width];
...