Added comment
Fixed bug in rectangular ROI