img print

This commit is contained in:
Ghost_Element 2023-09-19 10:21:42 +02:00
parent 11ad8a9cba
commit 2ce9336727

10
image.c
View file

@ -1,5 +1,7 @@
#pragma once #pragma once
#include <stdio.h>
#include "image.h" #include "image.h"
#include "matrix.h" #include "matrix.h"
@ -8,4 +10,10 @@ typedef struct {
int image_label; int image_label;
} Image; } Image;
void img_print (Img* img){
//print the image
matrix_print(img->pixel_values);
//print the number of the image
printf("%d", img->image_label);
}
void img_free (Img* img)