This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
c-net/image.c
Ghost_Element 2ce9336727 img print
2023-09-19 10:21:42 +02:00

19 lines
333 B
C

#pragma once
#include <stdio.h>
#include "image.h"
#include "matrix.h"
typedef struct {
Matrix* pixel_values;
int image_label;
} 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)