Generate roi statistics 4 pr

Pull request for GenerateROIstatistics