英语翻译
英语翻译
If the spheres are not allowed to touch,the solution of the problemstarts by determining which points are background (black) points.To do this,
we pick a black point on the boundary of the image and determine all black
points connected to it using a connected component algorithm(Section 9.5.3).
These connected components are labels with a value different from 1 or 0.The
remaining black points are interior to spheres.We can fill all spheres with
white by applying the hole filling algorithm in Section 9.5.2 until all
interior black points have been turned into white points.The alert student
will realize that if the interior points are already known,they can all be
turned simply into white points thus
fillingthe spheres without having to do region filling as a separate procedure.
请不要用谷歌翻译及有道翻译充数,
如果不接触球面,此题可以从这里入手,首先选定一点为背景点(黑点),也就是说,我们在图像的边缘标记一个黑点,并运用相邻元素方法选定所有连接此点的黑点(见章节9.5.3).在这些连接的元素上均标记0至1不等的数值.剩下未标记的就是球面以内的黑点.我们运用空洞填充算法把球面填充白色直至球面内所有的黑点变成白点(见章节9.5.2).如果球面内的点都是已知的,留心观察的学生也就会发现这些点可以很简单的转化成白点,因而他们就可以不必另外做区域填充这个步骤,直接填充球面便可.
记得给分啊,楼主