[vtkusers] problem displaying 2D image(the image looks darker)
m26404030 at john.petra.ac.id
m26404030 at john.petra.ac.id
Tue Nov 13 22:12:54 EST 2007
thanx for the help Mark.. i have looked at it and i can change the
'brightness' of my display image with the function..
but, the question is : how can i specify the value in those functions
so that the display image looks exactly the same with the original one?
i think maybe u have had some experiments with those functions(maybe u
have tried it in vtkImageViewer).
thanx again..
Quoting Mark Wyszomierski <markww at gmail.com>:
> 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