convert BGR to RGB
add c++ code