[vtkusers] blending DICOM images
Bill Lorensen
bill.lorensen at gmail.com
Tue Feb 18 19:21:41 EST 2014
Does not work, does not help.
On Feb 18, 2014 6:52 PM, "Sam Raby" <rabysam28 at gmail.com> wrote:
> Hello,
>
> I am using vtkBlendImage to overlay two DICOM images. The two images are
> already perfectly co-registered.
>
> To overlay them, I am using the following code, but it does not work well.
> Would you advice if there is any problem with the code? Thanks!
>
> reader1->SetDirectoryName("/home/dicomDIR1");
>
> reader1->Update();
>
>
> reader2->SetDirectoryName("/home/dicomDIR2");
>
> reader2->Update();
>
>
> blend->AddInputConnection(reader1->GetOutputPort());
>
> blend->AddInputConnection(reader2->GetOutputPort());
>
>
> blend->SetOpacity(0,0.5);
>
> blend->SetOpacity(1,0.5);
>
> imageViewer->SetInputConnection(blend->GetOutputPort());
>
> imageViewer->SetSlice(oneSlice);
>
>
>
>
>
>
>
>
> _______________________________________________
> 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/20140218/137ae831/attachment.html>
More information about the vtkusers
mailing list