OpenCV: Moved calculation to start after view appears.