选择颜色范围并创建该范围的矢量图
来自一个新手的提问。是否可以设计一个工具来选择颜色范围并在给定范围内创建矢量图以集成到 Flash 工具中?基本上是模仿 Photoshop 中魔杖工具效果的功能,但创建所选范围的矢量轮廓。任何对此有帮助的阅读材料将不胜感激。
A question from a novice. Is it possible to design a tool to select color range and create a vector map within that given range to integrate into a flash tool? basically a feature that mimics the wand tool effect in photoshop, but creating a vector outline of the range selected. Any reading material to help with this would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在寻找
2D分割
,如果您想要选择图像中的所有所选颜色,或者洪水填充
,如果您想要找到某个初始点周围的区域,其中所有颜色都在所需的范围内。当您说矢量图时,我想您指的是要选择的像素的轮廓。在这种情况下,找到所需的像素然后进行绘制可能比显式创建一个多边形来包含它们更容易。
I think you are looking for either
2D segmentation
, if you want all the selected colors in the image to be selected, orflood fill
if you want to find the region surrounding some initial point where all the colors are in the desired range.When you say vector map, I imagine you mean the outline of the pixels to select. In which case it's probably easier to find the pixels you want and then draw round then rather than explicitly creating a polygon to contain them.