<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>
&nbsp;<BR>
I need to overlay a iso-dose on top of a CT image.&nbsp; The dose are computed in a&nbsp;grid much coarser (2.5x2.5 pixel size) than the CT image (0.98x0.98 pixel size).&nbsp; Consequently, the&nbsp;boundary of the overlay appeared not smooth (see the attached image).&nbsp; I would like to know what filter to use to smooth the boundary.<BR>
&nbsp;<BR>
The code that places the overlay are as following:<BR>
&nbsp;<BR><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
vtkLookupTable* table = vtkLookupTable::New();<BR>
table-&gt;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-&gt;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-&gt;SetSaturationRange(1.0, 1.0);<BR>
table-&gt;SetHueRange(0.666, 0.0);<BR>
table-&gt;SetAlpha(0.4);<BR>
table-&gt;SetRampToLinear();<BR>
table-&gt;Build();<BR>
table-&gt;SetTableValue(0,0,0,0,0);<BR></FONT></FONT>
&nbsp;<BR><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
doseReslice = vtkImageReslice::New();<BR>
doseReslice-&gt;SetOutputDimensionality(2);<BR>
doseReslice-&gt;SetResliceAxes(reslice-&gt;GetResliceAxes());<BR>
doseReslice-&gt;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-&gt;SetLookupTable(lut);<BR>
color-&gt;SetInputConnection(doseReslice-&gt;GetOutputPort());<BR>
color-&gt;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-&gt;SetInput(color-&gt;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>