10-23-2012 10:49 AM
Hi,
I have a problem during converting my array.
I've a 1D array of long 32-bit integers.
I would like to convert them to a 1d array of unsigned byte 8-bit integers.
I'm trying to use the u8 conversion block but the output I get is a 1D array as i accepted, but all my element values are changed into zero instead of keeping the original.
somebody can help me?
Solved! Go to Solution.
10-23-2012 10:53 AM - edited 10-23-2012 10:54 AM
Hi koekie,
1) You will get problems to convert I32 numbers greater than 255 (or smaller than 0) into U8 values, both get coerced into the possible U8 range!
2) You don't say what values you try to convert.
3) Do you actually want to typecast your array instead of converting? What kind of resulting data do you really need?
10-23-2012 11:19 AM
Hi,
Indeed the numbers are just between 0 and 255..
I forgot it for a moment.
Scaled all the values between 0 and 255 and now it works well..
Tanks