[vtkusers] Smoothing iso-dose overlay boundary

Xiaofeng Z xf10036 at hotmail.com
Tue Jun 29 11:37:40 EDT 2010


Hi vtkusers,

 

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.

 

The code that places the overlay are as following:

 

vtkLookupTable* table = vtkLookupTable::New();

table->SetRange(min, max); // image intensity range

table->SetValueRange(0.5, 1.0); // from black to white

table->SetSaturationRange(1.0, 1.0);

table->SetHueRange(0.666, 0.0);

table->SetAlpha(0.4);

table->SetRampToLinear();

table->Build();

table->SetTableValue(0,0,0,0,0);

 

doseReslice = vtkImageReslice::New();

doseReslice->SetOutputDimensionality(2);

doseReslice->SetResliceAxes(reslice->GetResliceAxes());

doseReslice->AddInput(dose);

// Map the image through the lookup table

vtkImageMapToColors *color = vtkImageMapToColors::New();

color->SetLookupTable(lut);

color->SetInputConnection(doseReslice->GetOutputPort());

color->Update();

// create an actor

vtkImageActor *actor = vtkImageActor::New();

actor->SetInput(color->GetOutput());


Xiaofeng

 		 	   		  
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100629/f6e3bedc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rtdose.png
Type: image/png
Size: 177292 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100629/f6e3bedc/attachment.png>


More information about the vtkusers mailing list