[Insight-users] setting image color

David Doria daviddoria at gmail.com
Mon Oct 24 13:37:44 EDT 2011


On Mon, Oct 24, 2011 at 1:09 PM, David Brayford <dbrayford at gmail.com> wrote:
> I have an image but would like to be able to set the color to red and
> modify the opacity values so I can overlay it on top of another image.
>
> Something like image.setColor(1.0, 0.0, 0.0) and image.setOpacity(0.3)
>
> David

You could use a itk::Image<itk::RGBPixel>. If you are doing the
overlaying in VTK, you should set the opacity there.

David


More information about the Insight-users mailing list