我需要找到哪些矩形区域在两幅图像之间更新。例如,我有这些图片:在图像中查找更新的矩形
first http://storage.thelogin.ru/stackoverflow/find-updated-rectangles-in-image/1.pngsecond http://storage.thelogin.ru/stackoverflow/find-updated-rectangles-in-image/2.png
ImageMagick的compare
告诉我,这个像素进行了更新:
compare http://storage.thelogin.ru/stackoverflow/find-updated-rectangles-in-image/3.png
所以我需要重新绘制这个地区(已概述他们的第一个):
compare http://storage.thelogin.ru/stackoverflow/find-updated-rectangles-in-image/4.png
通过慢速连接(57600波特)完成重绘,所以第一优先级是数据大小(魔术字一个字节,校验和一个字节,区域坐标六个字节,每个像素两个字节)。我可以使用哪种算法来查找这些区域?我认为,类似的东西在vnc和类似的软件中使用。
涂装设备是STM32F103 MCU与软件FSMC连接LCD,所以一切都没有那么快。 RLE的想法非常好:这将改善传输速度和喷绘速度。感谢您的链接,这正是我需要的! – vas3k
我不知道这是什么意思,但我很高兴我可以帮助!因为它似乎适用于您,将关于“草莓场”的链接移到了答案的正文中。 –