[vtkusers] VolumeRendering Window Width and Window Level

Mallikarjun K mallikarjun49 at gmail.com
Thu Sep 24 01:09:57 EDT 2015


Hi Sankhesh,
Thanks for your suggestions.  Actually  I want to modify the existing
 color transfer function and Opacity transfer function interactively  on
left mouse+move on the volume.

Thank you

With Kind Regards,
Mallikarjun

On Thu, Sep 24, 2015 at 3:06 AM, Sankhesh Jhaveri <
sankhesh.jhaveri at kitware.com> wrote:

> Hello Mallikarjuna,
>
> vtkInteractorStyleImage provides events for window level changes. See:
> http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html
>
> You can add an observer to the vtkCommand::WindowLevelEvent or
> vtkCommand::EndWindowLevelEvent and change the functions as you like. On a
> side note, if all you are changing is the window width and level, you can
> just pass those values to
> vtkFixedPointVolumeRayCastMapper::SetFinalColorWindow() and
> SetFinalColorLevel().
>
> Hope that helps.
>
>
> Warm regards,
> Sankhesh
>
>
>
> On Wed, Sep 23, 2015 at 2:48 PM, Mallikarjun K <mallikarjun49 at gmail.com>
> wrote:
>
>> Hi Aashish,
>>
>> I have created a simple program which does volume rendering using
>> vtkfixedpointraycastmapper. Now what I am trying to achieve is that when I
>> change the window/level by left mouse click+drag on the renderwindow, then
>>  want to change the color volume characteristics by means of window/level.
>>
>> I used vtkInteractorstyleimage interactor style to change the
>> window/level  on left mouse click+drag and in a call back I am getting the
>> window and level using
>> vtkInteractorStyleImage::GetWindowLevelCurrentPosition. Based on these w/l
>>  I want to change/modify the color transferfunction and opacity transfer
>> function.
>>
>> please can you suggest me how can I achieve it.
>>
>> Thank you in advance.
>>
>>
>>
>> On Wed, Sep 23, 2015 at 11:23 PM, Aashish Chaudhary <
>> aashish.chaudhary at kitware.com> wrote:
>>
>>> Can you describe more in detail what you are trying to do? We have
>>> piecewise method for transfer functions. What value you set for each step
>>> depends on what is needed.
>>>
>>> - aashsih
>>>
>>> On Tue, Sep 22, 2015 at 12:28 AM, Mallikarjun K <mallikarjun49 at gmail.com
>>> > wrote:
>>>
>>>>
>>>> Hi Everyone,
>>>>
>>>> How can I set color transfer function and opacity transfer function
>>>> based on window width and window level ?
>>>>
>>>>
>>>>
>>>> Thanks in advance..
>>>>
>>>> Regards,
>>>> Mallikarjun
>>>>
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Please keep messages on-topic and check the VTK FAQ at:
>>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>>
>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>>>
>>>>
>>>
>>>
>>> --
>>>
>>>
>>>
>>> *| Aashish Chaudhary | Technical Leader         | Kitware Inc.
>>>   *
>>> *| http://www.kitware.com/company/team/chaudhary.html
>>> <http://www.kitware.com/company/team/chaudhary.html>*
>>>
>>
>>
>>
>> --
>> *With Kind Regards:*
>> Mallikarjuna K,
>> 07795531103/09908238861.
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>


-- 
*With Kind Regards:*
Mallikarjuna K,
07795531103/09908238861.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150924/2e5804f2/attachment.html>


More information about the vtkusers mailing list