I found in Matlab, uint8(n) / uint8(255) == 0 when n <127, while uint8(n) / uint8(255) == 1 when n >=127. I don't know how this happened. Since in C/C++, it should be 0 as long as numerator is less than denominator.
Can anyone help me, please?
Thanks!