Used new normalize functions since we already have it

This commit is contained in:
Martin Opat 2025-01-09 11:54:46 +01:00
parent b107a2a6de
commit 7cf829a20a
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ int main() {
std::cout << "minVal: " << minVal << " maxVal: " << maxVal << std::endl;
for (int i = 0; i < VOLUME_WIDTH * VOLUME_HEIGHT * VOLUME_DEPTH; i++) {
hostVolume[i] = (hostVolume[i] - minVal) / (maxVal - minVal);
hostVolume[i] = normalize(hostVolume[i], minVal, maxVal);
}
// Allocate + copy data to GPU