SetTheShape opencv reshape function is a nightmare