<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>


<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.hmmessage P
{margin:0px;padding:0px;}
body.hmmessage
{font-size:10pt;font-family:Verdana;}
</style>





<style>
.hmmessage P
{margin:0px;padding:0px;}
body.hmmessage
{font-size:10pt;font-family:Verdana;}
</style>

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.&nbsp; Or somehow merge the two different datas into one AlgorithmOutput.&nbsp; Anyway, here's my idea of what I'm trying to do.&nbsp; Using VTK, C++, and I am new to VTK.<br><br><br>LOOP(imagenumber &lt; maximagenumber)<br>{<br>&nbsp;&nbsp;&nbsp; //Reads in one 2D DICOM image<br>&nbsp;&nbsp;&nbsp; vtkDICOMImageReader::SetFileName( "DICOMdata" imagenumber++);<br><br>&nbsp;&nbsp;&nbsp; //Set value for skin data only from my DICOM data<br>&nbsp;&nbsp;&nbsp; vtkContourFilter *skinExtractor = vtkContourFilter::New();<br>&nbsp;&nbsp;&nbsp; skinExtractor-&gt;SetInputConnection(reader-&gt;GetOutputPort());<br>&nbsp;&nbsp;&nbsp; skinExtractor-&gt;SetValue(0, -400);<br><br>&nbsp;&nbsp;&nbsp; //Extract the largest Region <br>&nbsp;&nbsp;&nbsp; vtkPolyDataConnectivityFilter *connect = vtkPolyDataConnectivityFilter::New();<br>&nbsp;&nbsp;&nbsp; connect-&gt;SetInputConnection(skinExtractor-&gt;GetOutputPort());<br>&nbsp;&nbsp;&nbsp; connect-&gt;SetExtractionModeToLargestRegion();<br><br>&nbsp; &nbsp; //Here is where I would like to build a final algorithmoutput from the accumulation <br>&nbsp;&nbsp;&nbsp; //of each image after its been filtered.&nbsp; &nbsp; &nbsp; <br>&nbsp;&nbsp;&nbsp; //Would like the following line to perform like an Addition assign operator but is<br>&nbsp;&nbsp;&nbsp; //there a function or something to create this effect?<br><br>&nbsp;&nbsp;&nbsp; (*FinalAlgorithmOutput) += (*CurrentImageFilterAlgorithmOutput);<br><br>&nbsp;&nbsp;&nbsp; //REPEAT<br>}<br><br>Now once out of the loop, i create my actors and windows then I build my DICOM code.&nbsp; Once data is displayed it should show the filtered 3d head.&nbsp; Any advice, suggestions, ideas about this is welcomed, thanks!<br><br /><hr />Lauren found her dream laptop.  <a href='http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290' target='_new'>Find the PC that’s right for you.</a></body>
</html>