<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1505" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hello every one,</FONT></DIV>
<DIV><FONT size=2> I am using vtkCutter to extract slices of an
image volume.I want to get the grey slice. But I don't know how to
do.</FONT></DIV>
<DIV><FONT size=2>Using the following program, I can get the colored
slice.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>vtkImageMapToColors *mapToColors =
vtkImageMapToColors::New();<BR>
mapToColors->SetInput(reader2->GetOutput());//reader->GetOutput()<BR>
mapToColors->SetLookupTable(luk);<BR>
<BR> vtkCutter *cutter =
vtkCutter::New();<BR>
cutter->SetInput(mapToColors->GetOutput());//mapped image
volume<BR> cutter->SetCutFunction(plane);
<BR> <BR>
vtkPolyDataMapper *cutMapper = vtkPolyDataMapper::New();<BR>
cutMapper->SetInput(cutter->GetOutput()); <BR> <BR>
vtkActor *cutActor = vtkActor::New();<BR>
cutActor->SetMapper(cutMapper);</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>However, when using the following program, I still get colored
slice.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> vtkCutter *cutter =
vtkCutter::New();<BR>
cutter->SetInput(reader2->GetOutput());// original image
volume</FONT></DIV>
<DIV><FONT size=2>cutter->SetCutFunction(plane);
<BR> <BR>
vtkPolyDataMapper *cutMapper = vtkPolyDataMapper::New();<BR>
cutMapper->SetInput(cutter->GetOutput()); <BR> <BR>
vtkActor *cutActor = vtkActor::New();<BR>
cutActor->SetMapper(cutMapper);</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>How can get the grey slice?</FONT></DIV>
<DIV><FONT size=2>If you know, please let me know.</FONT></DIV>
<DIV><FONT size=2>Thanks.</FONT></DIV>
<DIV><FONT size=2>Diao xian fen</FONT></DIV></BODY></HTML>