[Insight-users] Setting RGB components
Rick Giuly
rgiuly at gmail.com
Thu Jul 9 04:05:07 EDT 2009
Hello All,
Is there a simple way to set the R, G, and B components of an image?
Or, as a backup plan, is there a simple way to set the components of a
vector image with 3 components.
The user guide talks about setting pixels one at a time but I'm looking
for something like
rgbImage.SetRed(image1)
rgbImage.SetBlue(image2)
rbbImage.SetGreen(image3)
or for a vector image, which I could convert to rgb
vectorImage.SetComponent0(image1)
vectorImage.SetComponent1(image2)
vectorImage.SetComponent2(image3)
I noticed there's a section in the manual about Extracting Components
from Vector Images but I didn't find one about setting the components.
(I'm using WrapITK and python.)
-Rick
More information about the Insight-users
mailing list