What is the meaning of following code line in opencv?

前端 未结 2 638
盖世英雄少女心
盖世英雄少女心 2021-02-06 12:44

What does this code line means and how can I convert this code into javacv?

gray = Scalar::all(255);

This is whole code which related to this

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-06 13:29

    As I mentioned in my comment, it is used to set the gray image to white.

    What is its benefit? It can be said only if we know what is this code for or see the full code.

    Regarding Java, OpenCV has now some android samples, in which you can find Java codes.

    You can check them. I saw a similar function there : mWhilte = Scalar.all(255);

    Also check the JavaCV samples : http://code.google.com/p/javacv/wiki/OpenCV2_Cookbook_Examples_Chapter_2

提交回复
热议问题