image processing working to segment three largest IR groups