<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi vtkusers,<BR>
<BR>
I need to overlay a iso-dose on top of a CT image. The dose are computed in a grid much coarser (2.5x2.5 pixel size) than the CT image (0.98x0.98 pixel size). Consequently, the boundary of the overlay appeared not smooth (see the attached image). I would like to know what filter to use to smooth the boundary.<BR>
<BR>
The code that places the overlay are as following:<BR>
<BR><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
vtkLookupTable* table = vtkLookupTable::New();<BR>
table->SetRange(min, max); </FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// image intensity range<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
table->SetValueRange(0.5, 1.0); </FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// from black to white<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
table->SetSaturationRange(1.0, 1.0);<BR>
table->SetHueRange(0.666, 0.0);<BR>
table->SetAlpha(0.4);<BR>
table->SetRampToLinear();<BR>
table->Build();<BR>
table->SetTableValue(0,0,0,0,0);<BR></FONT></FONT>
<BR><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
doseReslice = vtkImageReslice::New();<BR>
doseReslice->SetOutputDimensionality(2);<BR>
doseReslice->SetResliceAxes(reslice->GetResliceAxes());<BR>
doseReslice->AddInput(dose);<BR>
</FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// Map the image through the lookup table<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
vtkImageMapToColors *color = vtkImageMapToColors::New();<BR>
color->SetLookupTable(lut);<BR>
color->SetInputConnection(doseReslice->GetOutputPort());<BR>
color->Update();<BR>
</FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// create an actor<BR></FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
vtkImageActor *actor = vtkImageActor::New();<BR>
actor->SetInput(color->GetOutput());<BR></FONT></FONT><BR><BR>Xiaofeng<BR><BR>                                            <br /><hr />The New Busy is not the old busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3' target='_new'>Get started.</a></body>
</html>