See above the complete list. In this post i would like to discuss what happens when cv mat is passed around. To tackle this issue opencv uses a reference counting system.