[vtkusers] vtkImageAccumulate

Beate Aistleitner B.Aistleitner at irl.cri.nz
Mon Nov 11 15:54:17 EST 2002


hi,

thanks for all your quick responses to my first question. unfortunately
getting an histogram doesn't work with the help of your examples either. i
just get an empty window. is there anything wrong with this snippet of code?

    vtkImageReader reader = new vtkImageReader();
    reader.SetFilePrefix("H:/vtkdata/headsq/half");
    reader.SetDataExtent(0, 255, 0, 255, 1, 93);

    vtkImageAccumulate hist = new vtkImageAccumulate();
    hist.SetComponentExtent(0, 255, 0, 255, 1, 93);
    hist.ReleaseDataFlagOff();
    hist.SetInput(reader.GetOutput());
    hist.Update();

    vtkImageViewer viewer = new vtkImageViewer();
    viewer.SetInput(hist.GetOutput());
    viewer.GetRenderer().SetBackground(1, 1, 1);
    viewer.Render();

thanks for your help,
Beate


*************************************************************** 
CAUTION: This email message and any attachments contain 
information that is CONFIDENTIAL and may be LEGALLY PRIVILEGED. 
If you are not the intended recipient any use, disclosure or 
copying of this message or attachments is strictly prohibited. 
If you have received this email message in error, please notify 
us immediately and erase all copies of the message and 
attachments. Thank you. 
*************************************************************** 




More information about the vtkusers mailing list