This commit is contained in:
= 2025-11-27 16:32:06 +01:00
parent 7d30feef54
commit 2a4ff89df7
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
#include <stdio.h> #include <stdio.h>
#include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "imageInput.h" #include "imageInput.h"
@ -19,10 +20,10 @@ static int getCharValueFromFile(FILE* openedFile) {
return addToFile; return addToFile;
} }
GrayScaleImageSeries *readImages(const char *path) GrayScaleImageSeries* readImages(const char *path)
{ {
GrayScaleImageSeries *series = NULL; GrayScaleImageSeries *series = NULL;
// uint16_t
FILE* openFile; FILE* openFile;
openFile = fopen(path, "rb"); openFile = fopen(path, "rb");
@ -95,7 +96,7 @@ GrayScaleImageSeries *readImages(const char *path)
} }
} }
// the fclose happens here, since every other path closes the file. beforehand // the fclose happens here, since every other path closes the file beforehand
fclose (openFile); fclose (openFile);
} }

View File

@ -31,7 +31,7 @@ Matrix createMatrix(size_t rows, size_t cols)
} }
void clearMatrix(Matrix *matrix) void clearMatrix(Matrix* matrix)
{ {
for (int i = 0; i < matrix->rows; i++) { for (int i = 0; i < matrix->rows; i++) {
for (int j = 0; j < matrix->cols;j++) { for (int j = 0; j < matrix->cols;j++) {