[vtkusers] flatten a multiblock dataset
Michael Jackson
mike.jackson at bluequartz.net
Tue Oct 28 11:28:56 EDT 2008
Dominik,
I had a project that did something similar earlier this year. We
had a bunch of "Tiled" images in an HDF5 file that we combined into a
single vtkImageData object as we read them from the HDF5 file. If you
are interested let me know and I will send a link to the code.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
www.bluequartz.net
On Oct 28, 2008, at 10:51 AM, Burlen Loring wrote:
> As far as I know there is no silver bullet.
>
> You could make one large image data (this is your flat dataset) with
> extents large enough to enclose all leaves of your source multi
> block then walk the source multiblock's tree copying data from each
> leaf into the correct region of the flat dataset. Because you have
> overlapping regions you'll have to make the right choices about
> which regions of which blocks are copied. I don't know if this is
> the best way, just an idea.
>
> vtkHierarchicalBoxDataSet could be used to visualize overlapping
> image data without copying it around. It can blank out regions that
> are covered.
>
>
> Dominik Szczerba wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> What would be the best way to flatten a multiblock (overlapping,
>> different extents) dataset? (something like append filter, but for
>> image
>> data). I did not find any appropriate subclass of
>> vtkMultiblockDataAlgorithm.
>>
>> AND/OR
>>
>> Can a (overlapping/different extents) vtkMultiblockDataSet return a
>> full
>> (flat) arbitrary extent of interest?
>>
>> Thanks,
>> Dominik
>>
>> - --
>> Dominik Szczerba, Ph.D.
>> Computational Physics Group
>> Foundation for Research
>> on Information Technologies in Society
>> http://www.itis.ethz.ch
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2.0.4-svn0 (GNU/Linux)
>> Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
>>
>> iD8DBQFJBtpC/EBMh9bUuzIRAiYOAKDN7IS+co0sqQVb5CwInRO8jhSbtwCgjF9G
>> i1nIenXYCOBuQ06QzXuoJf4=
>> =r9uh
>> -----END PGP SIGNATURE-----
>> _______________________________________________
>> 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
>>
>
>
> --
> Burlen Loring
> Kitware, Inc.
> R&D Engineer
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-371-3971 x137
>
> _______________________________________________
> 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