Displaying image and converting to grayscale - OpenCV for Android, Java API

前端 未结 4 977
陌清茗
陌清茗 2021-02-06 18:07

I\'m writing an Android app in Eclipse that uses the OpenCV4Android API. How can I display a Mat image easily, for debugging only? In C++, according to the OpenCV

4条回答
  •  被撕碎了的回忆
    2021-02-06 18:52

    Summary:

    Convert image to grayscale: Imgproc.cvtColor(image, image, Imgproc.COLOR_BGR2GRAY);

    Display image: see here and here.

提交回复
热议问题