<div dir="ltr">Dear all,<br><br> I just rewritten the c++ PolyDataToImageData<br> example(<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataToImageData" target="_blank" rel="noreferrer">http://www.vtk.org/<wbr>Wiki/VTK/Examples/Cxx/<wbr>PolyData/PolyDataToImageData</a>)<br> to python. And I have changed nothing, just simply rewrite the c++ code to<br> python code. However, the python file only produce a black image<br> (256x257x256, 8bit). I used imageJ to open the produce the .mhd file. The<br> VTK version on my machine is 7.1. Does anybody know the reason for it? How<br> can I solve it?<br><br> best,<br> Siming</div>