[vtkusers] ImagePlaneWidget - Wrong Colors!
dean.inglis at camris.ca
dean.inglis at camris.ca
Sun Jul 4 11:46:19 EDT 2004
Istvan,
try adjusting the window/level settings either by
right mouse button action or by setting the window/level
programatically based on the input data's scalar range:
double * range = v16->GetOutput()->GetScalarRange();
window = range[1] - range[0];
level = 0.5*(range[0] + range[1]);
for (i=0;i<3;i++)
{
vImagePlaneWidget[i]->SetWindowLevel(window, level);
}
If your input data has high or low end spurious data values that
are not really a part of what you are interested in, you may want
to threshold the input first or be more specific.
Dean
More information about the vtkusers
mailing list