some multicore code and some opencv code