fix memory leak: opencv will not manage the memory user allocated for the Mat objects.