<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Dear All,<div class=""><br class=""></div><div class="">This is my first subject on this mailing list. I am currently developing a tool using the JAVA wrapper for VTK.</div><div class="">I am reading an image and creating a vtkImageData from this input file.</div><div class="">Since the input image contains Z elevation data, I create three arrays that I add to the pointData of the vtkImageData:</div><div class=""><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>img.GetPointData().AddArray(z);</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>img.GetPointData().AddArray(meanZ);</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>img.GetPointData().AddArray(sigmaZ);</div></div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><br class=""></div><div class="">So far, so good, if I write the file (or look in debug mode) I can see my three arrays in the Point Data of my img object.</div><div class=""><div apple-content-edited="true" class=""><div class="" style="line-height: normal;">However I would like to use a vtkImageShrink3D filter on image, with the following lines:</div><div class="" style="line-height: normal;"><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>vtkImageShrink3D shrink = <span class="" style="color: rgb(147, 26, 104);">new</span> vtkImageShrink3D();</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>shrink.SetShrinkFactors(shrinkFactor, shrinkFactor, 1);</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>shrink.<span class="" style="text-decoration: underline;">SetInputData</span>(<span class="" style="text-decoration: underline; color: rgb(3, 38, 204);">img</span>);</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>shrink.AveragingOff();</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>shrink.Update();</div><div class="" style="margin: 0px; font-size: 11px; line-height: normal; font-family: Monaco;"><span class="Apple-tab-span" style="white-space: pre;"> </span>vtkImageData outputImg = shrink.GetOutput();</div><div class=""><br class=""></div></div><div class="" style="line-height: normal;">In the output of this filter I only get one array which is called ImageScalar ! My three initial arrays have been deleted by the filter.</div><div class="" style="line-height: normal;">I would like to see my three arrays being passed through the filter like it is the case with other filters.</div><div class="" style="line-height: normal;">Could someone help me to solve this issue?</div><div class="" style="line-height: normal;"><br class=""></div><div class="" style="line-height: normal;">Regards,</div><div class="" style="line-height: normal;"><br class=""></div><div class="" style="line-height: normal;">Vincent</div></div></div></body></html>