I got it figured out but can you tell me if this is the most elegant way to do what i'm doinghere is the code i made id like to remove all the code i can save the formats and get it to do the same thing....the -> is a macro for foreign-slot-value its pure nothing else was added

the functions are all pure wrappers for the opencv functions below not sure if you need these