rework methods based off of opencv matrix