HUMAN IMAGE MATTING BASED ON CONVOLUTIONAL NEURAL NETWORK AND PRINCIPAL CURVATURES
필름·전자재료 · (13) 프리즘 필름
기본 정보
- 저자
- DOI
- 10.5194/isprs-archives-xliv-2-w1-2021-183-2021
- 저널
- The international archives of the photogrammetry, remote sensing and spatial information sciences/International archives of the photogrammetry, remote sensing and spatial information sciences
- 발행년도
- 2021
- 발행기관
- Copernicus Publications
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.5194/isprs-archives-xliv-2-w1-2021-183-2021
- 토픽
- Color Science and Applications
- OpenAlex ID
- W3159411188
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 16,287자
본문 펼치기
섹션 본문 14문단 · 11,150자
(제목 없음)
1Image matting often requires advanced image processing, especially in conditions, when small details such as hair are present in the image. In this article the hybrid method for human image matting based on convolutional neural network and principal curvatures is proposed. The U-Net based neural network is used to predict a rough foreground segmentation mask. Then the obtained foreground mask is refined by principal curvatures method to process the elongated hair-like structures. Test results show that the proposed method can improve the coarse human segmentation.
INTRODUCTION
2Image matting is an important problem in computer vision and has many applications. It is an ill-posed problem, where only the input image without any other information is available. The goal of image matting is to decompose the input color image I into two components: the foreground F and the background B. At each pixel i:
3where λi ∈ [0, 1] is the alpha matte for pixel i. The foreground color Fi, background color Bi and matte estimation λi are unknown, so at each pixel i we have 3 equations with 7 unknown values (I, F , and B have 3 color channels). The first approaches to solve the image matting problem were based on classical methods of image processing and various heuristics. In the article (Chuang et al., 2001), the authors apply a probabilistic approach modeling the distribution of the foreground and background colors using Gaussians and then, using the maximum likelihood method, select the foreground and background. Authors of Poisson matting (Sun et al., 2004) formulate the problem of natural image matting as one of solving Poisson equations with the matte gradient field. Poisson matting estimates the gradient of matte from the image, then reconstructs the matte by solving Poisson equations. They formulation is based on the assumption that intensity change in the foreground and background is smooth. The authors propose a semiautomatic approach to approximate matte from an image gradient given a user-supplied trimap. In the article (Wang and Cohen, 2007), the authors propose a robust matching algorithmto avoid the rapid degradation of performance when foreground and background patterns become complex. The basis of their algorithm contains a robust color sampling method that not only estimates the foreground and background colors for unknown pixels, but also analyze the confidence of the samples. Only high confidence samples are chosen to contribute to the matting energy function which is minimized by a Random Walk. The energy function also contains a neighborhood term to enforce the smoothness of the matting. Combining the optimized color sampling method with propagation-based approaches, authors propose an iterative optimization process to select truly mixed pixels from all the unmarked ones, and estimate alpha values for them in closed form at each iteration. In the article (He et al., 2010a) the fast algorithm for high quality image matting based on the use of large kernel matting Laplacian matrices is proposed. The algorithm perfoms an efficient method to solve the linear system with the large kernel matting Laplacian. Using the large kernel helps to speed up the constraint propagation, reduce the time of the linear solver for convergence, and improve the matting quality. To further accelerate the algorithm, the authors use a KD-tree based technique to decompose the trimap so that they can assign an adaptive kernel size to each sub-trimap. Thus, the number of iterations can be fixed beforehand and the running time of the whole algorithm is only linear to the number of the unknown pixels. The algorithm can be also useful in other image processing applications using the matting Laplacian, such as haze removal (He et al., 2010b), spatially variant white balance (Hsu et al., 2008), and intrinsic images (Bousseau et al., 2009). Recent approaches to deep learning have shown promising results. In the article Deep Image Matting (Xu et al., 2017), authors propose a new deep learning-based algorithm that consists of two parts. The first part is a deep convolutional encoderdecoder network that takes an image and the corresponding cropping as input and predicts the alpha matte color of the image. The second part is a small convolutional network that refines the alpha predictions of the first network to have more accurate alpha values and sharper edges. In the article (Lutz et al., 2018), the authors present the generative adversarial network (GAN) for natural image matting. Generator network is trained to predict visually appealing alphas with the addition of the adversarial loss from the discriminator that is trained to classify well-composited images. Human image matting enables accurate separation of humans from their backgrounds. The most difficult problem in human image matting is to catch complicated semantic details like human hair. Some of the state-of-the-art matting algorithms require human intervention in the form of trimap or scribbles to generate the alpha matte form the input image. In (Liu et al., 2020), the use of coarse annotated data coupled with fine annotated data to boost end-to-end semantic human matting is proposed. No trimaps as extra input are used. The mask prediction network estimates the coarse semantic mask, and then a quality unification network unifies the quality of the previous coarse mask outputs. A matting refinement network takes in the unified mask and the input image to predict the final alpha matte.
4In this paper, we propose a new hybrid human image matting method based on deep learning and mathematical methods. Two approaches, convolutional neural network (CNN) and heuristics for refining specific semantic objects like hair are combined. At first, we apply a convolutional U-Net based neural network to get the coarse segmentation of the foreground and background. Then we find the edges of the foreground using the mathematical morphology (erosion and dilation). Next, in the target area obtained from the previous step, we apply the principal curvatures method to process the elongated hair-like structures. The principal curvatures method shows great performance in biometric segmentation (Tikhonova and Pavelyeva, 2020), (Safronova and Pavelyeva, 2020), (Choi et al., 2009). This method is based on calculating the eigenvalues and eigenvectors of Hessian matrix at the target points. The eigenvalues can show the structure is at the current point of image. We find oblong objects using heuristic eigenvalue estimation. Finally, we combine results from CNN and principal curvatures method and show that principal curvatures method improves the results obtained by CNN-only method.
HYBRID METHOD FOR IMAGE MATTING
5We propose a two-step method for human image matting. The first stage is the selection of the foreground by neural network. We use supervised training with labeled data (Fig. 1). At the second stage the mask is refined using principal curvatures method.
CNN Segmentation
6To determine the preliminary segmentation mask, we use convolutional neural network based on U-Net architecture (Ron- (Fig. 2). Binary cross-entropy is used as a loss function, Adam optimizer (Kingma and Ba, 2014) for optimization. There are many labeled datasets of images in the public domain. We use the Flickr dataset of portrait images collected by (Shen et al., 2016), with 1300 images as train set, 200 images as validation set, and 321 images in the test set. This dataset has the rough ground truth segmentation that can be improved. The training is conducted through 200 epochs. To increase the quality of CNN we use augmentations of images in the training data, such as random crops and horizontal flip augmentation. However, the neural network trained on the source data is not able to distinguish the thin objects such as hair due to the small size of them and rough labeled segmentation data. Then, to accurate distinguish such details we highlight regions of interest as the border of the foreground obtained by CNN. This border we find using mathematical morphology operations, such as erosion and dilation. Dilation and erosion are the basic operations in mathematical morphology. The dilation operation usually uses a structuring element for probing and expanding the shapes contained in the input image. An erosion operation typically uses a structuring element to explore and reduce the shapes contained in the input image. The result in Fig. 3 shows the obtained region of interest that is used in principal curvatures method.
7(a) (b)
Principal curvatures method
8The image can be represented as a three-dimensional surface, taking the intensity at each point as the value of the z-coordinate. Let L(x, y) be the Gaussian smoothed image. Local characteristics of the image L(x, y) at the point (x, y) can be determined using the Hessian matrix The Hessian matrix is a square matrix of second-order partial derivatives of a scalar-valued function, or scalar field. It describes the local curvature of a function:
9H(x, y) = Lxx(x, y) Lxy(x, y) Lyx(x, y) Lyy(x, y) .
10(2)
11Let |λ1| > |λ2| be the eigenvalues of H(x, y), and ν1, ν2 be the corresponding eigenvectors. Then two principal directions, the directions of the maximum and minimum curvatures, are determined by two eigenvectors ν1 and ν2. Two eigenvalues, λ1 and λ2, represent the principal curvatures (Fig. 4). The tubularshaped regions have maximum principal curvature higher than other regions, and vector ν1 is directed across the tubular direction, vector ν2 -along the tubular direction. At each starting point of the region of interest, found as the border of the CNN-based foreground, the eigenvalues and eigenvectors of the Hessian matrix are calculated. If the point satisfies the rule |λ 1 | |λ 2 | > γ, the next step of the algorithm is applied at a point located in the direction of the vector ν2 at a unit distance from the previous point. The algorithm stops if the condition |λ 1 | |λ 2 | > γ is not performed. Thus, in areas that are complicated to segment by the neural network, we obtain segmentation using principal curvatures method by moving along direction of vector ν2 . Visualization of the vector field of the image corresponding to vector ν2 is shown in Fig. 5. Fig. 6 shows the curves obtained by the principal curvatures method.
RESULTS
12We combine the results of CNN and principal curvatures method and show that principal curvatures method improves the results obtained by CNN-only method. Test results are shown in Fig. 7. Since the ground truth labeling is rough, the numerical estimates between the ground truth segmentation masks and the obtained results may not be informative.
13The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, Volume XLIV-2/W1-2021 4th Int. Worksh. on "Photogrammetric & computer vision techniques for video surveillance, biometrics and biomedicine", 26-28 April 2021, Moscow, Russia
CONCLUSION
14In the article the hybrid method for portrait image matting is proposed. It is shown that the principal curvatures method can improve the rough human segmentation. The proposed hybrid approach could be promising for image matting with the more complex convolutional neural network architectures.
참고문헌 12건
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Light mixture estimation for spatially varying white balance ACM Transactions on Graphics · Association for Computing Machinery · 2008 10.1145/1360612.1360669
- User-assisted intrinsic images ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1618452.1618476
- Fast matting using large kernel matting Laplacian matrices 2010 10.1109/cvpr.2010.5539896
- Finger vein extraction using gradient normalization and principal curvature Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2009 10.1117/12.810458
- A Bayesian approach to digital matting 2005 10.1109/cvpr.2001.990970
- Optimized Color Sampling for Robust Matting 2007 10.1109/cvpr.2007.383006
- Poisson matting ACM Transactions on Graphics · Association for Computing Machinery · 2004 10.1145/1015706.1015721
- Deep Image Matting arXiv (Cornell University) · Cornell University · 2017
- Boosting Semantic Human Matting with Coarse Annotations arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2004.04955
- Hybrid Iris Segmentation Method Based on CNN and Principal Curvatures Proceedings of the 30th International Conference on Computer Graphics and Machine Vision (GraphiCon 2020) Part 1 · MONOMAX Limited Liability Company · 2020 10.51130/graphicon-2020-2-3-31
- Unsupervised Palm Vein Image Segmentation Proceedings of the 30th International Conference on Computer Graphics and Machine Vision (GraphiCon 2020) Part 1 · MONOMAX Limited Liability Company · 2020 10.51130/graphicon-2020-2-3-40