Fixed float calculations in MPPMask
This commit is contained in:
parent
c8f85ac060
commit
a7f555fcc2
|
@ -129,7 +129,7 @@ void copyData(const T *destination, const T *source, size_t length) {
|
||||||
}
|
}
|
||||||
float *data = allocateDataPtr(_allocatedFloat32Data, _width * _height);
|
float *data = allocateDataPtr(_allocatedFloat32Data, _width * _height);
|
||||||
for (int i = 0; i < _width * _height; i++) {
|
for (int i = 0; i < _width * _height; i++) {
|
||||||
data[i] = _uint8Data[i] / 255;
|
data[i] = (float)_uint8Data[i] / 255;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user