Scan-flood Fill(SCAFF): an Efficient Automatic Precise Region Filling Algorithm for Complicated Regions

06/08/2019
by   Yixuan He, et al.
0

Recently, instant level labeling for supervised machine learning requires a considerable number of filled masks. In this paper, we propose an efficient automatic region filling algorithm for complicated regions. Distinguishing between adjacent connected regions, the Main Filling Process scans through all pixels and fills all the pixels except boundary ones with either exterior or interior label color. In this way, we succeed in classifying all the pixels inside the region except boundary ones in the given image to form two groups: a background group and a mask group. We then set all exterior label pixels to background color, and interior label pixels to mask color. With this algorithm, we are able to generate output masks precisely and efficiently even for complicated regions as long as boundary pixels are given. Experimental results show that the proposed algorithm can generate precise masks that allow for various machine learning tasks such as supervised training. This algorithm can effectively handle multiple regions, complicated `holes' and regions whose boundaries touch the image border. By testing the algorithm on both toy and practical images, we show that the performance of Scan-flood Fill(SCAFF) has achieved favorable results.

READ FULL TEXT

page 1

page 4

page 6

page 8

research
10/05/2022

Inharmonious Region Localization via Recurrent Self-Reasoning

Synthetic images created by image editing operations are prevalent, but ...
research
11/04/2019

Superpixel-Based Background Recovery from Multiple Images

In this paper, we propose an intuitive method to recover background from...
research
06/20/2016

A New Parallel Algorithm for Two-Pass Connected Component Labeling

Connected Component Labeling (CCL) is an important step in pattern recog...
research
12/28/2017

Efficient Parallel Connected Components Labeling with a Coarse-to-fine Strategy

This paper proposes a new parallel approach to solve connected component...
research
04/18/2022

Neural Space-filling Curves

We present Neural Space-filling Curves (SFCs), a data-driven approach to...
research
12/07/2021

Learning Pixel-Adaptive Weights for Portrait Photo Retouching

Portrait photo retouching is a photo retouching task that emphasizes hum...

Please sign up or login with your details

Forgot password? Click here to reset