Fixed float calculations in MPPMask

This commit is contained in:
Prianka Liz Kariat 2023-06-15 14:07:33 +05:30
parent c8f85ac060
commit a7f555fcc2

View File

@ -129,7 +129,7 @@ void copyData(const T *destination, const T *source, size_t length) {
}
float *data = allocateDataPtr(_allocatedFloat32Data, _width * _height);
for (int i = 0; i < _width * _height; i++) {
data[i] = _uint8Data[i] / 255;
data[i] = (float)_uint8Data[i] / 255;
}
return data;
}