Is there OpenCV colormap in python?

后端 未结 3 510
感动是毒
感动是毒 2020-12-20 22:23

I am aware of Matlab, matplotlib style colormap in OpenCV . The documentation explains its usage for C++. I was wondering if such an option exists for python using cv2 as w

3条回答
  •  难免孤独
    2020-12-20 22:35

    shame, it looks like it did not make it into the python api yet. but you could have a look at the implementation in modules/contrib/src/colormap.cpp, e.g. the jetmap is only a lookup-table, you could just steal it

提交回复
热议问题