[vtk-developers] allow transparency in vtkImageAppend

David E DeMarle dave.demarle at kitware.com
Wed Jun 15 16:35:17 EDT 2011


Sorry for the late reply Dominik.

That feature sounds great. Please do send or point me to the patch and I
will commit it. If possible, prepare the patch with git, so you keep credit
in the log.

thanks,
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109


On Sat, May 28, 2011 at 6:41 AM, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

> Hi,
>
> I am appending multiple image blocks using vtkImageAppend. I need to
> use PreserveExtents = 1. My image blocks are overlapping and in some
> cases undesired overwriting takes place, e.g. when one of the blocks
> needed to be rotated/resampled. I am aware I could by hand create a
> target canvas of appropriate size and use vtkImageMathematics with
> proper masks, but that's just so much more coding and likely also much
> performance overhead. What I have done is added concept of
> transparency to the said vtkImageAppend, such that copying the data
> only takes place if the value is not declared transparent (integer) or
> does not lie within a range declared as transparent (floating).
>
> I was wondering if this could be merged with the current development
> version. If yes, I can provide a (very simple) patch along with a test
> data.
>
> Best regards,
> Dominik
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20110615/49f46039/attachment.html>


More information about the vtk-developers mailing list