Made changes to OpenCVFindMatlab suggested by SpecLad