Update BasicRegDetection.cpp