Call for Papers
About the Journal
Editorial Board
Publication Ethics
Instructions for Authors
Announcements
Current Issue
Back Issues
Search for Articles
Categories
Search for Articles
 

JCSE, vol. 18, no. 2, pp.93-115, 2024

DOI: http://dx.doi.org/10.5626/JCSE.2024.18.2.93

TGMatting: Automatic Image Matting Based on Trimap Generation

Jianming Wang, Xiao Jiang, Yuhang Zhang, Jiting Yin, and Zizhong Yang
School of Mathematics and Computer, Dali University, Dali, China; Yunnan Provincial Key Laboratory of Entomological Biopharmaceutical R&D, Dali University, Dali, China/ School of Mathematics and Computer, Dali University, Dali, China/ Dali Forestry and Grassland Science Research Institute, Dali, China/ Yunnan Provincial Key Laboratory of Entomological Biopharmaceutical R&D, Dali University, Dali, China

Abstract: At present, automatic image matting methods primarily focus on portraits and hard edge targets, which gives them a limited ability to deal with low-resolution, complex, and blurred non-portrait targets. To address these issues, the current paper proposes an automatic image matting method called TGMatting. This method automatically optimizes Trimap generation through three modules: the U2S-Net pre-segmentation module, which is based on the U2-Net network, enhances segmentation by removing null convolutions and reducing oversampling interference; the BGTrimap module, which is also based on U2-Net, refines edge regions using optimized dilation-erosion methods and Manhattan distance for seed point sparsification, thus ensuring accurate region growth and background information removal; and in the last module, edges are transformed into mixed-pixel regions using Sobel operator and non-local-means denoising binarization, and a Trimap map is automatically generated by combining OTSU segmentation with pre-segmentation results, thus achieving fully automated processing. Finally, a transparency mask is obtained via FBAMatting, which enables interaction-free automatic matting. The experimental results demonstrate that the improved U2S-Net network reduces MAE by 0.003 on the SOD-Spider test set, enhances accurate detection of significant regions in low-resolution images compared to U2S-Net, and reduces BGTrimap's sum of absolute difference value by about 10% compared to other Trimap generation methods in IFMatting and KNN Matting.

Keyword: Image matting; Trimap generation; Deep learning; Saliency object detection (SOD)

Full Paper:   323 Downloads, 320 View

 
 
ⓒ Copyright 2010 KIISE – All Rights Reserved.    
Korean Institute of Information Scientists and Engineers (KIISE)   #401 Meorijae Bldg., 984-1 Bangbae 3-dong, Seo-cho-gu, Seoul 137-849, Korea
Phone: +82-2-588-9240    Fax: +82-2-521-1352    Homepage: http://jcse.kiise.org    Email: office@kiise.org