Why do we transfer the image into double?
2 views (last 30 days)
More Answers (1)
Paul Hoffrichter on 4 Dec 2020
MATLAB when using mixed mode arithmetic, will try to save memory.
250 + 10 = 260, right?
>> x =double(250) + uint8(10);
In other languages, like C/C++, the rule is to maximize precision. Avoid mixed mode arithmetic unless you need it. There is no error or warning provided, by default, in the above code.