[vtkusers] vtkImageViewer's
Lic. José M. Rodriguez Bacallao
jmrbcu at gmail.com
Mon Nov 30 11:03:11 EST 2009
anyone?
On 11/28/09, Lic. José M. Rodriguez Bacallao <jmrbcu at gmail.com> wrote:
> What I thought is to connect various data source readers
> (vtkGDCMImageReader) to a single vtkImageColorViewer and display the
> images of just one reader at a given time and swap the current
> displayed reader with the user interaction, for example, in an DICOM
> image series viewer, I will have a reader per serie and a
> vtkImageColorViewer displaying one of those series, then when the user
> chose to display another loaded serie, I will change the current
> displayed serie in the vtkImageColorViewer from the old one to the one
> the user want to display in the vtkImageColorViewer.
> Is this possible, fast, viable? what do U recommend?
>
> On 11/28/09, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
>> Q2 & 3 are much harder. AFAIK there is always an hardcoded limit to
>> the number of OpenGL context you can create. So you can try on your
>> side, and try to create multiple vtkRenderWindow and check when this
>> will start failing.
>>
>> Last time I played with it, it would start failing around 450 contexts:
>> http://wxvtk.cvs.sourceforge.net/viewvc/wxvtk/wxVTK/Sample/wxVTKNotebook.cxx?view=log
>>
>> If you ever plan to swap two imageviewer, you should look at the
>> SetDisplayId / SetWindowId to quickly exchange two views.
>>
>> HTH
>>
>> On Sat, Nov 28, 2009 at 2:17 PM, Lic. José M. Rodriguez Bacallao
>> <jmrbcu at gmail.com> wrote:
>>> thanks, and what about questions 2 and 3?
>>>
>>> On 11/28/09, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
>>>> May I suggest you reread the FAQ:
>>>> http://catb.org/~esr/faqs/smart-questions.html#prune
>>>>
>>>> Thanks.
>>>>
>>>> As for your question vtkImageViewer and vtkImageViewer2 from a user
>>>> point of view are very different object. vtkImageViewer will display
>>>> 2D images (glDrawPixels), while vtkImageViewer2 will display texture.
>>>> There basically no reason to use vtkImageViewer IMHO, since texture on
>>>> any hardware accelerate card will be just as fast (if not faster) as
>>>> glDrawPixels.
>>>>
>>>> In GDCM, I chose to use vtkImageViewer2, since vtkImageViewer would
>>>> not handle Spacing of my images. However there is a slight issue with
>>>> Window Level implementation in vtkImageViewer2, so I had to create
>>>> this vtkImageColorViewer. I believe there is post in vtk-dev which
>>>> explains why I could not directly 'fix' vtkImageViewer2.
>>>>
>>>> HTH
>>>>
>>>> On Fri, Nov 27, 2009 at 8:05 PM, Lic. José M. Rodriguez Bacallao
>>>> <jmrbcu at gmail.com> wrote:
>>>>> no one?
>>>>>
>>>>> On 11/27/09, Lic. José M. Rodriguez Bacallao <jmrbcu at gmail.com> wrote:
>>>>>> hi folks, I got a few questions:
>>>>>>
>>>>>> 1- What is the difference between vtkImageViewer, vtkImageViewer2 and
>>>>>> from gdcm, vtkImageColorViewer?
>>>>>>
>>>>>> 2- If I have N vtkGDCMImageReader's and one ImageViewer (from those
>>>>>> above), how do I dynamically swap the actual viewed image in the
>>>>>> viewer from one of the readers to another?
>>>>>>
>>>>>> 3- If I need to show multiples DICOM image series, which is the best
>>>>>> way to do it (I am thinking about the resource consumption), several
>>>>>> ImageViewer's for each reader or one ImageViewer and dynamically
>>>>>> change his input?
>>>>>>
>>>>>> PS: I am using python, pyqt4 and gdcm.
>>>>>>
>>>>>> --
>>>>>> Lic. José M. Rodriguez Bacallao
>>>>>> Centro de Biofisica Medica
>>>>>> -----------------------------------------------------------------
>>>>>> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos
>>>>>> lo
>>>>>> mismo.
>>>>>>
>>>>>> Recuerda: El arca de Noe fue construida por aficionados, el titanic
>>>>>> por profesionales
>>>>>> -----------------------------------------------------------------
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Lic. José M. Rodriguez Bacallao
>>>>> Centro de Biofisica Medica
>>>>> -----------------------------------------------------------------
>>>>> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
>>>>> mismo.
>>>>>
>>>>> Recuerda: El arca de Noe fue construida por aficionados, el titanic
>>>>> por profesionales
>>>>> -----------------------------------------------------------------
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>> Follow this link to subscribe/unsubscribe:
>>>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Mathieu
>>>>
>>>
>>>
>>> --
>>> Lic. José M. Rodriguez Bacallao
>>> Centro de Biofisica Medica
>>> -----------------------------------------------------------------
>>> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
>>> mismo.
>>>
>>> Recuerda: El arca de Noe fue construida por aficionados, el titanic
>>> por profesionales
>>> -----------------------------------------------------------------
>>>
>>
>>
>>
>> --
>> Mathieu
>>
>
>
> --
> Lic. José M. Rodriguez Bacallao
> Centro de Biofisica Medica
> -----------------------------------------------------------------
> Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo
> mismo.
>
> Recuerda: El arca de Noe fue construida por aficionados, el titanic
> por profesionales
> -----------------------------------------------------------------
>
--
Lic. José M. Rodriguez Bacallao
Centro de Biofisica Medica
-----------------------------------------------------------------
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.
Recuerda: El arca de Noe fue construida por aficionados, el titanic
por profesionales
-----------------------------------------------------------------
More information about the vtkusers
mailing list