Merge branch 'Development' into 'Temp'

# Conflicts:
#   CMakeLists.txt
#   image.c
This commit is contained in:
jastornig 2023-09-19 11:13:44 +00:00
commit 1a9f66f960
5 changed files with 109 additions and 6 deletions

21
image.c
View file

@ -59,11 +59,22 @@ void img_print (Image* 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 (Image* img) {
void img_free (Img* img) {
//frees the matrix of image (deep free)
matrix_free(img->pixel_values);
//frees the rest of img
free(img);
}
void images_free (Img** images, int quantity){
//frees every single image
for(int i=0;i<quantity;i++){
img_free(images[i]);
}
//frees the rest of images
free(images);
}