forked from freudenreichan/info2Praktikum-NeuronalesNetz
imageInput korrigiert readimages()
This commit is contained in:
1 parent
003d1820d9
commit
4e2bec6081
1 file changed
+3
-2
@@ -53,7 +53,7 @@ GrayScaleImageSeries *readImages(const char *path)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
GrayScaleImageSeries *pictureSeriesmemory(unsigned short numImagesShort); //static kann nur innerhalb imageInput.c aufgerufen werden
|
GrayScaleImageSeries *series = pictureSeriesmemory(numImagesShort); //static kann nur innerhalb imageInput.c aufgerufen werden
|
||||||
if (series == NULL) {
|
if (series == NULL) {
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -61,10 +61,11 @@ GrayScaleImageSeries *readImages(const char *path)
|
|||||||
|
|
||||||
if (!PicturesLabelsimport(series, file, widthShort, heightShort)) { //! -> inverter
|
if (!PicturesLabelsimport(series, file, widthShort, heightShort)) { //! -> inverter
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
clearSeries(series);//Speicher bei Fehler direkt freigeben
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return series;
|
return series; //gibt fertige bildserie zurück
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user