using explicit keyword in the ERStat constructor for safe contruction
using Rect for storing the bounding box instead of an integer array
removed extra cv:: scope qualifiers for better readability
removed some unnecessary ERStat members as they are easily computable from others