Dear all,<br>I am working with images in 3D, but I need to manipulate
these images in 2D. After some processing I get an index
SliceImageType::IndexType pixelIndex and I would like to create a 3D
image setting this index to 90. I don&#39;t know how to do it, because this
index has 2D and the image 3D. has anyone any suggestion?<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InputImageType::Pointer img = InputImageType::New();&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; img-&gt;SetRegions( input-&gt;GetLargestPossibleRegion() );<br><div id="1eq6" class="ArwC7c ckChnd">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; img-&gt;Allocate();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; img-&gt;FillBuffer( 0 );<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; img-&gt;SetPixel( ??, 90 );<br>
<br>Best regards<br>Bert</div>