Hi All<br><br><br>I was wondering what does one need to do to make vtkImageViewer work, since I am following the examples in the documentation, and I get no result. <br>My data is a 2D vtkImageData object of dimensions (2x2x1) (so 4 boxes), with 4 non-zero entries, with values:<br>
2D Slice value at 0 0: 3376<br>2D Slice value at 0 1: 305194<br>2D Slice value at 1 0: 334<br>2D Slice value at 1 1: 811<br><br>I'd like to render this image on the screen, but I only get a black output with my code:<br>
<br> vtkImageViewer *viewer = vtkImageViewer::New();<br> viewer->SetInput (my2DSlice);<br> viewer->SetZSlice (0);<br> // viewer->SetColorWindow(0.5);<br> viewer->SetColorLevel (0.001);<br> viewer->Render ();<br>
<br>What is the problem here? I know that one value is way larger than the others, but it should appear darker or lighter, and the others should be still visible.<br><br>Any ideas and hints will be appreciated.<br><br>Best,<br>
Adrian<br clear="all"><br>-- <br>---------------------------------------------------<br>Adrian Albert<br>School of Engineering and Science<br>Jacobs University Bremen<br>Germany<br>Tel.: 00494212003258