sorry forgot
This commit is contained in:
parent
ec1fefc32e
commit
59a007972e
1 changed files with 1 additions and 3 deletions
4
main.c
4
main.c
|
@ -76,8 +76,6 @@ void vibrancer(unsigned char *pixel) {
|
||||||
g = pixel[1],
|
g = pixel[1],
|
||||||
b = pixel[2];
|
b = pixel[2];
|
||||||
|
|
||||||
printf("%d %d %d\n", r, g, b);
|
|
||||||
|
|
||||||
// TODO remove unnecessary calculations
|
// TODO remove unnecessary calculations
|
||||||
int min_rgb = min3(r, g, b);
|
int min_rgb = min3(r, g, b);
|
||||||
int max_rgb = max3(r, g, b);
|
int max_rgb = max3(r, g, b);
|
||||||
|
@ -121,7 +119,7 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
unsigned char *img = stbi_load(input, &width, &height, &channels, 0);
|
unsigned char *img = stbi_load(input, &width, &height, &channels, 0);
|
||||||
|
|
||||||
printf("Width: %d, Height: %d, Channels: %d\n", width, height, channels);
|
//printf("Width: %d, Height: %d, Channels: %d\n", width, height, channels);
|
||||||
|
|
||||||
if (img == NULL) {
|
if (img == NULL) {
|
||||||
printf("Error loading image\n");
|
printf("Error loading image\n");
|
||||||
|
|
Loading…
Reference in a new issue