[vtkusers] Set Different Opacity Value to Different GrayScale to DisplayImage
Hongsongyang
hongsongyang at 163.com
Sat Jun 8 11:28:22 EDT 2013
David,
Thank you very much for your example.
Actually, the example you list could not meet my requirement at all.
If I set the background as Green, if the opacity value is 0 of some pixel.
I want this pixel displayed as background color, but not the white color at
all.
I want to know if there is a way to implement real opacity mechanism but not
the mask mechanism.
Thank you very much.
Best regards,
Hongsongyang
> -----Original Message-----
> From: David Doria [mailto:daviddoria at gmail.com]
> Sent: Monday, June 03, 2013 7:49 PM
> To: Hongsongyang
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] Set Different Opacity Value to
> Different GrayScale to DisplayImage
>
> On Mon, Jun 3, 2013 at 5:00 AM, Hongsongyang
> <hongsongyang at 163.com> wrote:
> > Dear All:
> > Currently, we can set different opacity value to
> different actors.
> > However, if we only display one gray scale image. Could we set
> > different opacity value to different Gray scale pixel
> points? If it is
> > possible, some useless points in a image will not be shown
> or in transparent state.
> >
> > (Color Image is the same problem, whether we could set different
> > opacity value to different RGB pixel points).
> >
> > Thanks a lot.
> >
> > Best regards.
> > Hong Songyang
>
> I believe this is what you're looking for:
>
> http://www.vtkedge.org/Wiki/VTK/Examples/Cxx/Images/Transparency
>
> David
More information about the vtkusers
mailing list