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);