From 5d883d1e35f2782497424622f9ef1f2bbcd91f94 Mon Sep 17 00:00:00 2001 From: Jonas Date: Mon, 17 Nov 2025 10:54:41 +0100 Subject: [PATCH] small improvments --- I2_NeuronalerAbsturz/Start_Mac/imageInputTests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I2_NeuronalerAbsturz/Start_Mac/imageInputTests.c b/I2_NeuronalerAbsturz/Start_Mac/imageInputTests.c index 699b39b..4a52400 100644 --- a/I2_NeuronalerAbsturz/Start_Mac/imageInputTests.c +++ b/I2_NeuronalerAbsturz/Start_Mac/imageInputTests.c @@ -19,7 +19,7 @@ static void prepareImageFile(const char *path, unsigned short int width, unsigne { for(unsigned int i = 0; i < (numberOfImages * width * height); i++) { - buffer[i] = (GrayScalePixelType)i; + buffer[i] = (GrayScalePixelType)(i & 0xFF); } fwrite(fileTag, sizeof(fileTag[0]), strlen(fileTag), file);