diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-06-19 07:46:11 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-06-19 07:46:11 -0500 |
commit | fd82f4c6257db8bc3753d28c092a62134cd6f629 (patch) | |
tree | 255a552abac854e8b2c3264902507c5659596ba0 /src/ppm.c | |
parent | 3113ade53d0dd889058c7838bb19c0fa0492b410 (diff) |
add: convoution and kernel op implemented
Diffstat (limited to 'src/ppm.c')
-rw-r--r-- | src/ppm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -13,7 +13,7 @@ ppm_write(const char *file, Image *img) exit(1); } - size_t n_pixels; + size_t n_pixels = img->width * img->height * 3; fprintf(fp, "P6\n%d %d\n%d\n", img->width, img->height, img->pixel_bits); fwrite(img->data, n_pixels, sizeof(uint8_t), fp); |