Hi,<br> I want to render an object by volume rendering.And I need vtkConnectivityFilter to remove smallest unconnected objects.<br>The input of vtkConnectivityFilter is imagedata, the output is unstructuredgrid data, but the input of my "volumeMapper"(vtkVolumeRayCastMapper *volumeMapper) is imagedata.The following is the error:<br><br>error C2664: 'SetInput' : cannot convert parameter 1 from 'class vtkUnstructuredGrid *' to 'class vtkImageData *'<br><br><br>How to solve it?<br>Thanks<br><font style='font-size:14.8px'> </font>
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr>
<td height="1" bgcolor="#09448E"> </td>
</tr>
<tr>
<td height="22"><font style='font-size:14.8px'><a href="http://www.126.com" target="_blank" style="text-decoration: none ;">·<b><font color=red>1.5G
</font></b>全国最大空间——网易126免费邮箱 http://www.126.com 火热抢注中>>> </a></font></td>
</tr>
<tr>
<td height="22"><font style='font-size:14.8px'><a href="http://www.126.com" target="_blank" style="text-decoration: none ;"> 体验30兆超大附件发送,享受100%卡巴斯基专业杀毒……更多超G感受等您来体验!</a>
</font></td>
</tr>
</table>
<font style='font-size:14.8px'><br>
<br>
<a href="http://www.126.com" target="_blank" style="text-decoration: none ;"><br>
</a></font> <font style='font-size:14.8px'> </font>