<div dir="ltr"><div>Hi all,<br><br></div>I often do something similar when reading data originally from a text table. In this case I need to turn 3 arrays into a single 3-component uchar array for the purpose of RGB
coloring. I found that I can also use the following python calculator
expression to accomplish this goal (assuming the arrays are named 'R',
'G', 'B' respectively). This assumes the values are already scaled
between 0-255.<br><br>hstack([inputs[0].PointData['R'], inputs[0].PointData['G'], inputs[0].PointData['B']]).astype(uint8)<br clear="all"><br><div class="gmail_extra">-- <br><div dir="ltr">Casey B. Goodlett, Ph.D.<br>
Technical Leader<br>Kitware, Inc. - North Carolina Office<br><a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a><br>
<a href="tel:%28919%29%20969-6990%20x310" value="+19199696990" target="_blank">(919) 969-6990 x310</a></div>
</div></div>