[vtkusers] Addition Assign AlgorithmOutput? Merge?

Michael Jackson mike.jackson at bluequartz.net
Wed Jun 3 12:19:31 EDT 2009


vtkAppendDataset.

_________________________________________________________
Mike Jackson                  mike.jackson at bluequartz.net
BlueQuartz Software                    www.bluequartz.net
Principal Software Engineer                  Dayton, Ohio



On Jun 3, 2009, at 12:03 PM, Chris N wrote:

> I have an idea about filtering all my DICOM images of a human head  
> in the format of *.DCM before creating my actor from  
> vtkAlgorithmOutput, one feature I'm not sure about is if or how vtk  
> can perform an addition assign like operation with AlgorithmOutput.   
> Or somehow merge the two different datas into one AlgorithmOutput.   
> Anyway, here's my idea of what I'm trying to do.  Using VTK, C++,  
> and I am new to VTK.
>
>
> LOOP(imagenumber < maximagenumber)
> {
>     //Reads in one 2D DICOM image
>     vtkDICOMImageReader::SetFileName( "DICOMdata" imagenumber++);
>
>     //Set value for skin data only from my DICOM data
>     vtkContourFilter *skinExtractor = vtkContourFilter::New();
>     skinExtractor->SetInputConnection(reader->GetOutputPort());
>     skinExtractor->SetValue(0, -400);
>
>     //Extract the largest Region
>     vtkPolyDataConnectivityFilter *connect =  
> vtkPolyDataConnectivityFilter::New();
>     connect->SetInputConnection(skinExtractor->GetOutputPort());
>     connect->SetExtractionModeToLargestRegion();
>
>     //Here is where I would like to build a final algorithmoutput  
> from the accumulation
>     //of each image after its been filtered.
>     //Would like the following line to perform like an Addition  
> assign operator but is
>     //there a function or something to create this effect?
>
>     (*FinalAlgorithmOutput) += (*CurrentImageFilterAlgorithmOutput);
>
>     //REPEAT
> }
>
> Now once out of the loop, i create my actors and windows then I  
> build my DICOM code.  Once data is displayed it should show the  
> filtered 3d head.  Any advice, suggestions, ideas about this is  
> welcomed, thanks!
>
> Lauren found her dream laptop. Find the PC that’s right for you.  
> _______________________________________________
> 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




More information about the vtkusers mailing list