<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi all,<br><br>Is vtkBlend extremely resource intensive? I have a following piece of code running: FinalImage is a vtkImageData object, MTImage is a vtkImageData object, and blend1 is a vtkImageBlend object.<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; blend1-&gt;SetStencil(dataToStencil-&gt;GetOutput());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; blend1-&gt;AddInput(MTImage);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; blend1-&gt;AddInput(BlackImage);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; blend1-&gt;SetOpacity(0,0.5);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; blend1-&gt;SetOpacity(1,0.5);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if(OutOfView)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FinalImage = MTImage;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FinalImage = blend1-&gt;GetOutput();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FinalImage-&gt;Update();<br><br>The fps of my display decreases dramatically whenever the output from blend is requested. Is this behaviour expected? Thanks in advance.<br><br>Cheers,<br>Alexis Cheng<br>Electrical Engineering<br>University of British Columbia<br>                                               </body>
</html>