From e824d7fdea4b4e349830cd91a0d35a69d3ec36c6 Mon Sep 17 00:00:00 2001 From: Ghost_Element Date: Tue, 19 Sep 2023 10:52:55 +0200 Subject: [PATCH] img print --- image.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/image.c b/image.c index ccb485b..028eabb 100644 --- a/image.c +++ b/image.c @@ -1,6 +1,8 @@ #pragma once +#include #include + #include "image.h" #include "matrix.h" @@ -21,11 +23,16 @@ void img_print (Img* img) { //print the image matrix_print(img->pixel_values); - - //print the label of the image - printf("%d", img->image_label); + //print the number of the image + printf("Number it is supposed to be: %d\n", img->image_label); } - void img_free (Img* img) { - + matrix_free(img->pixel_values); + free(img); +} +void images_free (Img** images, int quantity){ + for(int i=0;i