This is my first time here.
I'm currently trying to write a class for post-processing images by going through all pixels and doing stuff to the colours there.
My idea is to add methods like posterize() or rgbSplit() etc. When they are initialized it won't go through all pixels for each effect because that's not very performant. I want it to kind of store the fact that it should process these effects in the given chain later when I use a method called process().
But therefore I'd have to kinda store the reference to the effects' code in a list (like a vector), right? Because then I could go into the for-loop of the x and y-coordinates and add another for-loop there that goes through all methods that should be applied to the pixels.
The problem is, I have no idea how to store a method in a vector. Is that even possible? or are vectors only for objects? Or can I somehow "objectify" a method? Or what would be the thing that I have to do now?