generated from freudenreichan/info2Praktikum-NeuronalesNetz
last fix
This commit is contained in:
parent
7d30feef54
commit
2a4ff89df7
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
matrix.c
2
matrix.c
@ -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++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user