[vtkusers] vtkImageImport , vtkImageViewer : window black
Olaf Till
olaf.till at uni-jena.de
Thu Nov 6 16:59:05 EST 2008
On Thu, Nov 06, 2008 at 01:00:25PM +0100, Olaf Till wrote:
> Hi,
>
> I try to use VDK to render images from memory. As yet, I only get
> windows filled with black. The following is some example code, which
> produces a black window, although I thought that half of the image
> should be white. Can you give me a hint what is the reason?
>
> Olaf
>
> --- example code ---
>
> ...
>
> vtkImageViewer *viewer = vtkImageViewer::New();
> viewer->SetInputConnection(importer->GetOutputPort());
>
> ...
With
viewer->SetColorLevel(127.5);
viewer->SetColorWindow(255);
added it works now. Sorry.
More information about the vtkusers
mailing list