ImageInput implementiert und Teile der Matrix angefangen

This commit is contained in:
Nandor Bodocsi committed 2026-11-10 09:12:20 +01:00
1 parent 447e77a7bf
commit 44f9631544
3 files changed
+142 -7

No files matched your search

+19 -5
View File
@@ -6,19 +6,33 @@
Matrix createMatrix(unsigned int rows, unsigned int cols)
{
}
Matrix matrix;
matrix.rows = rows;
matrix.cols = cols;
matrix.values = malloc(rows * cols * sizeof(MatrixType));
return matrix;
}
//gibt den vorher belegten Speicher wieder frei
void clearMatrix(Matrix *matrix)
{
}
if(matrix == NULL){
return;
}
for(int i = 0; i < values; i++){
free()
}
}
//schreibt einen Wert an eine bestimmte Stelle in der Matrix
void setMatrixAt(MatrixType value, Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
{
}
//Liest einen Wert aus der Matrix
MatrixType getMatrixAt(const Matrix matrix, unsigned int rowIdx, unsigned int colIdx)
{