Counting holes in Binary Image using Region Filling Algorithm

join shbcf.ru