[vtkusers] about minimizing memory usage
Lic. José M. Rodriguez Bacallao
jmrbcu at gmail.com
Mon Mar 14 10:24:17 EDT 2011
so, right now, the only solution is to use one reader per file and
concatenate they results as needed?
On 3/11/11, David Gobbi <david.gobbi at gmail.com> wrote:
> Usually the extents are set automatically by the pipeline. So for
> example you can use vtkImageClip after your reader to set the
> extent that will be read. But usually you would not even do that,
> because vtkImageMapper and vtkImageActor will automatically
> back-propagate the UpdateExtent that they require through the
> chain of filters in the pipeline.
>
> - David
>
>
> On Fri, Mar 11, 2011 at 3:03 PM, Lic. José M. Rodriguez Bacallao
> <jmrbcu at gmail.com> wrote:
>> and what about "Extents", how to set an extent to the image reader?
>>
>> On Fri, Mar 11, 2011 at 4:57 PM, David Gobbi <david.gobbi at gmail.com>
>> wrote:
>>> In general, VTK does not support sliding window cacheing like
>>> you are describing. It will unload the three images and then
>>> load three new images (where two of the images were ones that
>>> had previously been loaded). You would have to write your own
>>> VTK class to implement a cacheing system like the one that
>>> you want.
>>>
>>> - David
>>>
>>> On Fri, Mar 11, 2011 at 11:21 AM, Lic. José M. Rodriguez Bacallao
>>> <jmrbcu at gmail.com> wrote:
>>>> hi folks, I am writing a simple dicom viewer with vtk and gdcm. I am
>>>> using vtkGDCMImageReader to load my files in conjunction with
>>>> IPPSorter. For minimizing memory usage I need to have in memory just
>>>> three images from for example, 200, when the user need to see the
>>>> slice 3 + 1, then load the next slice and unload the old first loaded
>>>> slice from the old 3 slices and so on. Is something like a dynamically
>>>> moving update extent. How do I achieve that in vtk?.
>>>>
>>>> --
>>>> 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
>>>>
>>>
>>
>>
>>
>> --
>> 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