# vtkImageAppendComponents can be used for several 3D Image Data

**URL:** https://discourse.vtk.org/t/vtkimageappendcomponents-can-be-used-for-several-3d-image-data/3845
**Category:** Support
**Created:** [July 24, 2020, 1:29am UTC](https://discourse.vtk.org/t/vtkimageappendcomponents-can-be-used-for-several-3d-image-data/3845 "2020-07-24T01:29:21Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sharon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.vtk.org/u/sharon)
#### Post date: [July 24, 2020, 1:29am UTC](https://discourse.vtk.org/t/vtkimageappendcomponents-can-be-used-for-several-3d-image-data/3845/1 "2020-07-24T01:29:21Z")

</div>

Dear All,  
I have two 3D image data with same dimension, both of them have separate scalar, which can apply different color transfer function.  
What i want to do is merge the two 3D Image Data together with final color is blended by the two input image data color.

what is the suggest way to do it in vtk?

I found vtkImageAppendComponents seems can do this, but i am not very sure…

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.vtk.org/user_avatar/discourse.vtk.org/cory.quammen/32/6751_2.png) [@cory.quammen](https://discourse.vtk.org/u/cory.quammen)
#### Post date: [July 24, 2020, 3:52pm UTC](https://discourse.vtk.org/t/vtkimageappendcomponents-can-be-used-for-several-3d-image-data/3845/2 "2020-07-24T15:52:29Z")

</div>

[`vtkImageBlend`](https://vtk.org/doc/nightly/html/classvtkImageBlend.html) is more appropriate.

---

<div class="post-metadata">

### Author: ![sharon](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/s/67e7ee/32.png) [@sharon](https://discourse.vtk.org/u/sharon)
#### Post date: [July 25, 2020, 6:49am UTC](https://discourse.vtk.org/t/vtkimageappendcomponents-can-be-used-for-several-3d-image-data/3845/3 "2020-07-25T06:49:55Z")

</div>

Thank you Cory very much!  
I will have a try!

Thanks and Best Regards!
