Location of multiple masked area

use connectedComponent and read these tutorials