Common Image Filters in C++


#1

In manual, I find such python codes to set up cartoon effect:
# set up cartoon effect
self.__separation = 1
self.filters = CommonFilters(self.win, self.cam)
self.filters.setCartoonInk(separation=self.__separation)

however, I can’t find the API in C++ manual or API reference to realized the same effect.
So, is there any API in C++ to set up filters? if it is, please tell me.

Thanks in advance.


#2

There is no equivalent high-level API (yet; we are making plans to introduce a high-level API for C++).

However, you can look into the source code of CommonFilters.py and FilterManager.py to see how the buffers are set up. You will just have to set up the buffer creation and the fullscreen quads yourself.


#3

Thank you very much, Mr.rgb, I get it