[vtkusers] How to display contents of vtkImageData
Elvis Dowson
elvis.dowson at mac.com
Fri Nov 14 12:50:27 EST 2008
Hi Rob,
Your suggestion worked perfectly! :-)
Here is the modified code snippet
# Fill image with some color values
set r 255
set g 0
set b 0
for {set i 0} {$i < 16} {incr i} {
for {set p 0} {$p < 16} {incr p} {
imageData SetScalarComponentFromFloat $i $p 0 0 $r
imageData SetScalarComponentFromFloat $i $p 0 1 $g
imageData SetScalarComponentFromFloat $i $p 0 2 $b
}
}
Best regards,
Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081114/fa7a56e1/attachment.htm>
More information about the vtkusers
mailing list