OpenCV ::无缝克隆错误

时间:2017-08-08 07:45:34

标签: opencv image-processing

我有一个问题,我有这样的输入图像:

enter image description here

我不得不删除前额图像中那条鲜明对比的水平线。

所以尝试模糊,过滤等但没有任何效果。所以最后我使用了无缝克隆。我得到了这样的结果:

enter image description here

这几乎解决了我的问题。但是,如果您浏览documentationtutorial,则可以正确解释无缝克隆的参数。

我们有m <- matrix( colSums(data[-1], na.rm=T), nrow=2, byrow=T, dimnames = list(c("games", "tv"), c("alone", "withOthers", "remotely")) ) m # alone withOthers remotely # games 2 1 6 # tv 4 4 1 chisq.test(m) # # Pearson's Chi-squared test # # data: m # X-squared = 6.0381, df = 2, p-value = 0.04885 克隆到另一个srcImage。对于我的问题,我把srcImage作为完全白色和尖锐线周围的矩形。 (下面是白色图像,按住光标查看)。

Image below

所以我的问题是这是如何工作的,就像在任何其他图像中,如果我有而不是白色图像,它会给我一个致命的错误。为什么它只适用于白色图像?

0 个答案:

没有答案