[vtkusers] problem displaying 2D image(the image looks darker)
Mark Wyszomierski
markww at gmail.com
Sun Nov 11 14:24:57 EST 2007
Haven't looked at it in awhile but vtkImageMapper has two functions
SetColorWindow(), SetColorLevel() which probably do it.
Mark
On Nov 11, 2007 1:40 PM, <m26404030 at john.petra.ac.id> wrote:
> thanx for the reply..
> yeah, i know that there is a function in which we can specify
> window/level value in vtkImageViewer.
> but, in my application i use the classes (vtkRenderWindow,
> vtkRenderer, vtkRenderWindowInteractor,vtkImageMapper, vtkActor2D) not
> only for displaying 2D image. so, i want to do all of the job with
> those classes.. =p
> can i specify the window/level value in another way??(not using
> vtkImageViewer)
>
> thanx a lot..
>
>
>
> Quoting Mark Wyszomierski <markww at gmail.com>:
>
> > Did you try using vtkImageViewer2 which encapsulates all of that?
> > There may be a window/level value set on the source pixel data making
> > it appear darker than what you're used to seeing?
> >
> > Mark
> >
> > On Nov 11, 2007 12:26 PM, <m26404030 at john.petra.ac.id> wrote:
> >> hi all, i want to ask a question..
> >>
> >> i want to display a 2D bitmap image (.bmp)..
> >> i use vtkRenderWindow, vtkRenderer, vtkRenderWindowInteractor,
> >> vtkImageMapper, vtkActor2D, and also vtkBMPReader.
> >> i actually can display the image but the image looks darker than the
> >> original image. i dont know why.
> >> someone can tell me how to display the image correctly?
> >> _______________________________________________
> >> This is the private VTK discussion list.
> >> Please keep messages on-topic. Check the FAQ at:
> >> http://www.vtk.org/Wiki/VTK_FAQ
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >>
> >
>
>
>
More information about the vtkusers
mailing list