[vtkusers] Smoothing iso-dose overlay boundary
Lodron, Gerald
Gerald.Lodron at joanneum.at
Wed Jun 30 04:07:23 EDT 2010
Hi
Simply resample the image to the size of the CT image using vtkResampleImagefilter with an higher order interpolation (e.g. linear).
best regards
________________________________
Von: vtkusers-bounces at vtk.org [vtkusers-bounces at vtk.org] im Auftrag von Xiaofeng Z [xf10036 at hotmail.com]
Gesendet: Dienstag, 29. Juni 2010 17:37
An: VTK
Betreff: [vtkusers] Smoothing iso-dose overlay boundary
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. Get started.<http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3>
More information about the vtkusers
mailing list