From b411ffa6c18f5a39a2265ef4db9f9c86480448e8 Mon Sep 17 00:00:00 2001 From: "AD005\\z004z3ez" Date: Mon, 17 Nov 2025 14:03:26 +0100 Subject: [PATCH] check-Funktion erstellt --- imageInput.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/imageInput.c b/imageInput.c index bb30de1..f8bf47f 100644 --- a/imageInput.c +++ b/imageInput.c @@ -8,6 +8,18 @@ // TODO Implementieren Sie geeignete Hilfsfunktionen für das Lesen der Bildserie aus einer Datei +static int check(GrayScaleImage imageData){ + + int ok = 0; + + if(imageData.width == 10 && imageData.height == 10 && imageData.buffer <= BUFFER_SIZE) + return ok = 1; + + else + return ok = 0; + +} + // TODO Vervollständigen Sie die Funktion readImages unter Benutzung Ihrer Hilfsfunktionen GrayScaleImageSeries *readImages(const char *path) {