Update BoundaryDetection.h