transition from openCV to javaCV (first pass)