0

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...

Book Of Zeus
  • 49,509
  • 18
  • 174
  • 171
Sayak
  • 339
  • 1
  • 6
  • 19

1 Answers1

3

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. White specs of dust at random locations about the x- and y- axis,
  2. A white bar that spans the whole height of the frame at a random x-axis location, and;
  3. A circular flicker spanning out from the center of the frame of a random intensity.

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

jmkeyes
  • 3,751
  • 17
  • 20
  • sepia is not exactly an "old picture" effect. there is one more effect that i found... "old movie" effect. how to achieve that? – Sayak Apr 20 '11 at 08:23
  • Edited the post and added another option for "Grain effect". Check out Wikipedia to learn about film grain for more about it. – jmkeyes Apr 20 '11 at 22:32