在OpenCV中置换图滤镜 [英] Displacement Map Filter in OpenCV
问题描述
我很好奇,想知道如何能够实现这里展示使用了OpenCV的效果。我认为这是某种形式的置换图滤镜,但我不是100%肯定。
I'm curious to know how one can implement the effect demonstrated here using OpenCV. I think it's some sort of displacement map filter but I'm not 100% sure.
后,移动鼠标,看看背景图像移动(这是我在寻找的效果)。
After that page has fully loaded, move the mouse around to see the background image move (it's the effect I'm looking for).
这可能吗?我怎么会去这样做呢?
Is it possible? How would I go about doing it?
注意:这里还有这里显示同样的效果另一个页
Note: there's also another page displaying the same effect here.
推荐答案
这是近2年,因为我问过这个问题,我认为这是时间来回答吧。
It's been almost 2 years since I've asked this question and I think it's time to answer it.
在来源$ C $ C 实现OpenCV的使用此过滤器可以在我的GitHub库。
The source code that implements this filter using OpenCV can be found on my GitHub repository.
的实施是基于<一个href=\"http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/DisplacementMapFilter.html\">documentation的Adobe FlashDisplacementMapFilter的 。您可以比较我的实现对Flash教程这里提供的结果:置换图滤镜和放大器;动画,它使用的的Flash 8专业版的和的 ActionScript 2的的。
还有一个教程中,我推荐大家阅读: Psyark的DisplacementMapFilter教程。这是旧的,但准确的。
The implementation is based on the documentation of Adobe Flash' DisplacementMapFilter. You can compare the results of my implementation to the Flash tutorial available here: Displacement Map Filter & Animation, which uses Flash 8 Pro and ActionScript 2. There's another tutorial I recommend people to read: Psyark’s DisplacementMapFilter Tutorial. It's old but accurate.
< IMG SRC =http://i.stack.imgur.com/36ekf.jpg宽度=150HEIGHT =200>
这篇关于在OpenCV中置换图滤镜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!