09-23-2011 02:38 PM
Hi every body
I have a question, Actually I want to read an image and work with it
the sample example that my device company provided me with it, is :
but I couldn`t underestand the function of 3 function of :
boolean(0,1) , " unasigned Byte Integer" and "rotate"
I really appreciate if anyone could explain me what is the difference between of input image and output image? or why we must this conversion
thanks
Morteza
09-23-2011 03:10 PM
The picture functions put out a 1-Bit pixmap which are either True or False on each pixel. ? 1:0 converts the array of booleans to an array of 1's or 0's. The output of that is an array of I16's.
The U8 converts that to an array of U8's. Rotate -1 converts that so that all the original Trues, which then became 1's, are now 128's. All the original Falses, then became 0's, then stay zero. So now you have a 2-D array of 128's and 0's. That could possibly give some color in an 8-bit bitmap.
Why was all this done? Who knows. What happens after the piece of VI you showed?