Object oriented pipeline functionality for opencv