Update PartsBasedDetector.cpp