[vtkusers] Smoothing iso-dose overlay boundary

Jothy jothybasu at gmail.com
Tue Jun 29 12:40:59 EDT 2010


I think you should interpolate the dose to  a finer resolution ( by changing
spacing).

Jothy

On Tue, Jun 29, 2010 at 4:37 PM, Xiaofeng Z <xf10036 at hotmail.com> wrote:

>  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>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100629/13a256da/attachment.htm>


More information about the vtkusers mailing list