[vtkusers] flatten a multiblock dataset

Dominik Szczerba dominik at itis.ethz.ch
Tue Oct 28 11:44:37 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Oh yes, I am most interested (and promise to contribute any improvements
back to you)

thanks,
Dominik

Michael Jackson wrote:
> 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:
> 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
> 
_______________________________________________
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

> _______________________________________________
> 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


- --
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

iD8DBQFJBzNl/EBMh9bUuzIRAqJlAJ9e+AZZR9TZZjgwt+ir+VNsQHFX/wCfVISF
7To5QxatzCtdFudS3ClzsZA=
=9uzu
-----END PGP SIGNATURE-----



More information about the vtkusers mailing list