如何获得"老照片"在OpenCV中效果呢? [英] how to get the "old picture" effect in openCV?

查看:404
本文介绍了如何获得"老照片"在OpenCV中效果呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在OpenCV中新。我想提出申请,图像变换为一个老照片的效果。任何人可以帮助我的算法?或者是有什么样code这个?我用C语言...

I am new in opencv. I am trying to make an application to transform an image to an "old picture" effect. can anybody help me with the algorithm? or is there any sample code for this? I am using C language...

推荐答案

图像变换,包括使用的矩阵运算的。

Image transformations, including converting to sepia ("old picture" style), can be accomplished using matrix operations.

修改:一个名为五谷效应不同的转换可以通过每一帧上绘制完成:

EDIT: A different transformation called "grain effect" can be accomplished by drawing on each frame:


  1. 在大约X和Y轴的任意位置的灰尘白色规格,

  2. ,在一个随机的x轴位置横跨框架的整体高度的白条,和;

  3. 一个圆形的闪烁从随机强度框架的中心跨越了。

是一个很好的教程为基于闪存的版本。只是翻译什么做有成C。

This is a good tutorial for a flash-based version. Just translate what's done there into C.

这篇关于如何获得"老照片"在OpenCV中效果呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆