Horizontal Histogram in OpenCV

前端 未结 4 1242
太阳男子
太阳男子 2020-12-19 14:15

I am newbie to OpenCV,now I am making a senior project related Image processing. I have a question: Can I make a horizontal or vertical histogram with some functions of Open

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 14:57

    The most efficient way to do this is by using the cvReduce function. There's a parameter to allow to select if you want an horizontal or vertical projection.

    You can also do it by hand with the functions cvGetCol and cvGetRow combined with cvSum.

提交回复
热议问题