how to get the “old picture” effect in openCV?

后端 未结 1 906
半阙折子戏
半阙折子戏 2021-01-07 14:51

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 cod

相关标签:
1条回答
  • 2021-01-07 15:21

    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.

    0 讨论(0)
提交回复
热议问题