获取图像变化算法

发布于 2024-12-29 22:18:32 字数 300 浏览 1 评论 0原文

我必须将图像从 client1(称为服务器)传输到 client2(称为客户端)。 现在,要传输的图像一直在变化,我只想传输包含变化的图像的一小部分,这样客户端就可以替换,这样可以节省时间和流量。

Q1.他们有现有的文章和/或算法吗?

我有以下想法,但需要帮助:

  • 保存最后发送的图像

  • 每次图像更改时,在保存的图像和新图像之间进行异或,然后发送更改< /p>

Q2。 Windows 中是否有任何快速/现有的 API 可以提供图像异或?

I have to transmit an image from client1 (named as server) to client2 (named as client).
Now, the image to be transmit changed all the time, and I want to trasmit only small pieces of the image which include the changes, so client will be able to replace, and by this to save time and traffic.

Q1.Is their any existed article and or algorithm?

I come with the following Idea, but need help:

  • save the last images sent

  • Each time the image changed, do XOR between saved and new one, then send the changes

Q2. Is their are any fast/existed API in windows that can provide the image XOR?

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

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

发布评论

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

评论(1

花心好男孩 2025-01-05 22:18:32

您可以查看VNC 使用的协议。尤其是链接的论文。

您还可以将绘制命令直接发送到客户端而不是生成的图像,但这取决于您的用例。

You can check out the protocol used by VNC. Especially the linked papers.

You could also send the draw-commands directly to the client instead of the generated image, but that depends on your use-case.

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