Efficiently passing Mat object in different classes
I am currently doing a project which has around 6-7 classes and requires me to use an image across multiple classes.
The project code that I am referring to write my own code , does it by saving the image and loading it across different classes.
What doubt I have is
Is this method efficient or I should set class variables and clone the image for the other classes.
Which one of them will be efficient.