行进方阵和封装轮廓
这是一张图片:
可以使用行进方块算法编写一个给定上述输入图像的程序会产生以下输出:
两条链状线段,一条形成上述轮廓(山状),另一条形成封闭的圆形轮廓?
如果没有,您还建议如何做?
Here's an image:
Can one, using the marching squares algorithm, write a program that given an input image like above, produces the following output:
Two chained line segments, one forming the above contours (hill-like), the other one forming the encapsuled circle contour?
If not, how else would you recommend doing it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果行进方块算法类似于行进立方体,它会给出两条轮廓线。
如果示例图像代表您要处理的图像,您还可以仅相互减去相邻像素(请参阅:边缘检测)。
If the marching squares algorithm is like marching cubes, it will give you both contour lines.
You can also just subtract neighboring pixels from each other (see: edge detection), if the example image is representative of your images, that you want to process.