From e98bc885d9a1db1aafa504b6b556f4caf6450c1e Mon Sep 17 00:00:00 2001 From: Thomas Rauh Desktop Date: Sun, 16 Nov 2025 16:25:33 +0100 Subject: [PATCH] =?UTF-8?q?mnist=20Ausf=C3=BChrbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- imageInput.c | 2 +- matrix.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/imageInput.c b/imageInput.c index 8187d91..791a49b 100644 --- a/imageInput.c +++ b/imageInput.c @@ -7,7 +7,7 @@ #define FILE_HEADER_STRING "__info2_image_file_format__" // TODO Implementieren Sie geeignete Hilfsfunktionen für das Lesen der Bildserie aus einer Datei -static void einzelBild(unsigned char *px_ls, FILE *file, GrayScaleImageSeries *series, unsigned short int breite, unsigned short int hoehe, unsigned char bildnummer){ +static void einzelBild(unsigned char *px_ls, FILE *file, GrayScaleImageSeries *series, unsigned short int breite, unsigned short int hoehe, unsigned int bildnummer){ GrayScaleImage bild; bild.height = hoehe; bild.width = breite; diff --git a/matrix.c b/matrix.c index 60981b5..29bdc8f 100644 --- a/matrix.c +++ b/matrix.c @@ -93,7 +93,6 @@ Matrix multiply(const Matrix matrix1, const Matrix matrix2) output.rows = matrix1.rows; output.cols = matrix2.cols; output.buffer = malloc(sizeof(MatrixType)*output.rows*output.cols); - memset(output.buffer, 0 ,output.rows*output.cols); for (int spalte2=0;spalte2