Photoshop 的磁性套索如何工作?

发布于 2024-10-05 04:42:14 字数 547 浏览 5 评论 0原文

看起来 GIMP 的 智能剪刀 是基于 SIGGRAPH '95 的一篇论文“用于图像合成的智能剪刀”,如其中所示来源中的评论。

然而,Photoshop 中的磁性套索有很大不同,而 GIMP 的工具为用户提供了单击顶点的选项另一方面,Photoshop 的磁性套索为用户提供了一种徒手运行的方式,并给出了介于计算机近似值和用户想要绘制的内容之间的东西。

从这种行为来看,很明显,磁性套索样式选择对于基于触摸的界面中的选择来说非常酷。关于磁性套索与 GIMP 工具有何不同的任何指示?有什么具体的论文/算法需要研究吗?

Seems like GIMP's intelligent scissor is based on a paper from SIGGRAPH '95 on "Intelligent Scissors for Image Composition", as seen in one of the comments in the source.

However Magnetic Lasso in Photoshop differs a lot, while GIMP's tool gives users an option to click vertices of desired figure and approximates along edges found in the image, photoshop's magnetic lasso on the other hand, gives users a way to run freehand and gives something between computerized approximation and what the user desired to draw.

Looking at this behavior its quite obvious that Magnetic Lasso style selection would quite cool for selection in touch based interfaces. Any pointers on how magnetic lasso differs from the GIMP's tool? Any specific papers/algorithms to look into?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

莫相离 2024-10-12 04:42:15

看起来 GIMP 的智能剪刀是基于 SIGGRAPH '95 的一篇关于“图像合成的智能剪刀”的论文,如源中的一条评论所示。

但是 Photoshop 中的磁性套索有很大不同,

智能剪刀算法的文档是这里

关于算法之间的关系,这篇文章说

软件公司 Adob​​e 与杨百翰大学的计算机科学家有着长期的合作关系,为 Live Surface 的开发研究提供了资助。 Barrett 和他的学生以“Intelligent Scissors”的名称开发了一款早期软件,已更名为 Magnetic Lasso,现在已合并到 5.0 Adob​​e PhotoShop 中,可以快速从图像中拉出二维对象。

Seems like GIMP's intelligent scissor is based on a paper from SIGGRAPH '95 on "Intelligent Scissors for Image Composition", as seen in one of the comments in the source.

However Magnetic Lasso in Photoshop differs a lot,

The document with the algorithm for Intelligent Scissors is here

Regarding the relation between algorithms, this article says

Software company Adobe, which has long had a relationship with BYU's computer scientists, helped fund the research for development of Live Surface. An earlier software, developed by Barrett and his students under the name Intelligent Scissors, was renamed Magnetic Lasso and is now incorporated into 5.0 Adobe PhotoShop, where it quickly yanks two-dimensional objects out of images.

行至春深 2024-10-12 04:42:15

我已经使用您提到的文章成功实现了磁性套索 - 用于图像合成的智能剪刀。我还实现了搜索区域的迭代扩展和“路径冷却”。

您可以在 www.Photopea.com 查看我的实现(拖放您自己的图像,滚动套索,选择磁性套索)。所以这是可能的,而且实现起来并不难:)

I have successfully implemented Magnetic Lasso using the article that you mentioned - Intelligent Scissors for Image Composition. I also implemented iterative extending of searched area and "path cooling".

You can see my implementation at www.Photopea.com (drag and drop your own image, roll over lasso, choose Magnetic Lasso). So it is possible and not that hard to implement :)

葬シ愛 2024-10-12 04:42:14

您可以研究的一种算法是Marching Squares

One algorithm you can look into is Marching Squares.

安穩 2024-10-12 04:42:14

<块引用>

磁性套索工具对于快速选择在高对比度背景下设置的复杂边缘的对象特别有用。

  1. 使用边缘检测算法检测图片中的边缘。
  2. 等待鼠标左键单击事件。
  3. 捕捉到最近的检测到的边缘并开始一条线段。

    3A。跟踪鼠标移动,捕捉到检测到的边缘。

    3B。如果单击鼠标左键,则从上一条线段的末尾开始一条线段或结束当前线段。

    3C。如果创建了线段,则使线与区域中检测到的边缘一致。

    3D。如果单击 ESC 键或鼠标右键,则通过创建从第一个点到最后一个点的线段来包围检测到的区域。

瞧,你有一个“磁性套索”。

The Magnetic Lasso tool is especially useful for quickly selecting objects with complex edges set against high-contrast backgrounds.

  1. Detect the edges in the picture using an edge detection algorithm.
  2. Wait for the left mouse click event.
  3. Snap to the nearest detected edge and begin a line segment.

    3A. Track mouse movement, snapping to detected edges.

    3B. If the left mouse button is clicked begin a line segment from the end of the previous one or finish the current one.

    3C. If a line segment was created, conform the line to the detected edges in the area.

    3D. If the ESC key or right mouse button is clicked, enclose the detected area by creating a line segment from the first point to the last point.

Voilà, you have a 'magnetic lasso'.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文