[vtkusers] how to change image order

Lic. José M. Rodriguez Bacallao jmrbcu at gmail.com
Tue Dec 22 09:14:57 EST 2009


this:

> Should I show a 3D volume over time, or should I show a movie
> of a specific 2D slice over time.

join to this:

> There is no filter to reorganize the vtkImageData

are my problem, I need to apply a different image order to a loaded
vtkImageData and I don't want to reread the images again with the new
order. Do I have to read every slice separately, sort the slices and
use vtkImageAppend to form and a vtkImageData again?

On 12/22/09, David Gobbi <david.gobbi at gmail.com> wrote:
> On Tue, Dec 22, 2009 at 2:48 AM, Mathieu Malaterre
> <mathieu.malaterre at gmail.com> wrote:
>> On Mon, Dec 21, 2009 at 6:36 PM, David Gobbi <david.gobbi at gmail.com>
>> wrote:
>>> On Mon, Dec 21, 2009 at 10:31 AM, John Drescher <drescherjm at gmail.com>
>>> wrote:
>>>>> sorry but I don't see how vtkImageFlip could help me to, for example:
>>>>> I have a vtkImageData obtained from vtkGDCMImageReader, the images are
>>>>> sorted by the dicom instance number tag, then, I need to change the
>>>>> sort order key to for example, acquisition time tag and then display
>>>>> the images with this new order.
>>>>>
>>>>
>>>> Normally the with dicom CT images difference is just flipping the
>>>> image. However I can imagine cases where that will not work.
>>>>
>>>> John
>>>
>>> I've had exactly the same issue with DICOM (not specifically the
>>> GDCMReader though).  There is no filter to reorganize the vtkImageData
>>> slices with strides and such.  I had to read in the data
>>> slice-by-slice (i.e. a different reader for each slice) and use
>>> vtkImageAppend to put it together in the right order.
>>
>> Looks like a pretty cool feature for your vtkImage proposal ? An image
>> does not need to be contiguous, thus allowing user to shuffle each
>> slices around ?
>>
>> Mathieu
>
> Hey, I never thought of that!  But yes, if an image is stored with a
> different memory pointer for each slice, then reordering the series on
> the fly is easy.
>
>    David
> _______________________________________________
> 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
-----------------------------------------------------------------



More information about the vtkusers mailing list