• No results found

Line Art Colorization Based on Explicit Region Segmentation

N/A
N/A
Protected

Academic year: 2022

Share "Line Art Colorization Based on Explicit Region Segmentation"

Copied!
8
0
0

Laster.... (Se fulltekst nå)

Fulltekst

(1)

E. Eisemann, K. Singh, and F.-L Zhang (Guest Editors)

Line Art Colorization Based on Explicit Region Segmentation –Supplemental Material–

Ruizhi Cao, Haoran Mo, and Chengying Gao Sun Yat-sen University

1. Translation between Region Map and Skeleton Map We propose an explicit segmentation fusion mechanism, which uti- lizes regional segmentation information stored in skeleton maps to alleviate the color bleeding effects. The skeleton map firstly intro- duced in DanbooRegion dataset [ZJL20] is not a conventional (1D) skeleton, but a translation of a region map essentially. The trans- lation is performed because skeleton maps are learnable and can be directly predicted by a neural network given a line art. On the contrary, the region maps are unlearnable and cannot be predicted because regions are unordered and represented by random colors, and thus L1 loss is meaningless.

Region to Skeleton.Given a region map of a line art image, the skeleton map is generated by: First, detect the edge of the annotated regions of the line art. Then, extract the skeleton of the regions.

Afterwards, combine the region edge (as background) and region skeleton (as foreground). Finally, the skeleton map is produced by applying a smoothing operation to the combined image, which is similar to a distance transformation.

Skeleton to Region.Given a skeleton map, binarization oper- ation is first employed to produce a watershed marker. We use a threshold of 0.549 for the binarization because it works well with our datasets. Next, we use the watershed algorithm [NP14] with the generated marker to obtain the region map.

2. Post-processing

Although segmentation information allows the colorization net- works to generate better colorized results by reducing color bleed- ing artifacts, other kinds of artifacts may still be produced, such as unnatural motley or checkerboard artifacts. We propose an optional post-processing method to further reduce these kinds of artifacts in small areas.

The post-processing method is mainly based on the region maps.

Our approach generates a colorized image ˆyas well as a skeleton map ˆs. With the conversion introduced in Section1, we obtain the corresponding region map ˆrfrom ˆs. With the segmented regions and the output result ˆy, we fill each region with the median color sampled from all pixels inside that region. This step erases all the edges, and the result is a flat painting style image ˆfwithout edges.

image ˆfby Eq.(1) to obtain the final result ˆo:

ˆ oi,j=

i,j xi,j>180

(1−α)fˆi,j+αxi,j xi,j≤180 , (1) where ˆoi,j, ˆfi,jandxi,jare the RGB values in the(i,j)pixel in ˆo,

fˆ, andx, respectively.αis a scalar and set to 0.4.

Results of applying post-processing are shown in Figure1.

3. More Results

3.1. Effectiveness of Avoiding Color Bleeding

Figure2shows the results of avoiding color bleeding and improve- ment on color contrast.

3.2. Performance of Fusion Mode

Figure3shows the results of the two fusion modes of segmentation information.

In Figure4, we show some examples where the “Direct Con- catenation” mode works better than the “Dual-branch” mode. For example, in the top row example, the color of the neck from “Dual- branch” mode is weird. In the example from the second row, there exists inconsistent color in the tiptoe with “Dual-branch” fusion mode.

3.3. Reference-based Colorization

Figure5and Figure6show the results of reference-based coloriza- tion compared with MUNIT [HLBK18].

References

[HLBK18] HUANGX., LIUM.-Y., BELONGIES., KAUTZJ.: Multi- modal unsupervised image-to-image translation. InProceedings of the European conference on computer vision (ECCV)(2018), pp. 172–189.

[KJPY19] KIMH., JHOOH. Y., PARKE., YOOS.: Tag2pix: Line art colorization using text tag with secat and changing loss. InProceedings of the IEEE/CVF International Conference on Computer Vision(2019),

(2)

(a) Line Art (b) Skeleton Map (c) Region Map (d) Ours (e) Flat Filling (f) Post-processing

blue_bow, blue_neckwear, blush, blue_eyes, light_brown_hair, white_background, white_dress

blonde_hair, blush, blue_eyes, white_background, white_dress blonde_hair, blush, brown_eyes, red_skirt, white_background, white_bow, white_shirt

black_neckwear, blonde_hair, blue_eyes, white_background, white_shirt

black_skirt, pink_background, pink_eyes, pink_hair, white_legwear, white_shirt

blue_dress, purple_hair, red_eyes, white_background black_hair, blush, red_eyes, white_background

black_legwear, blush, brown_eyes, white_background, white_hair

Figure 1: Post-processing of alleviating artifacts based on region maps. Flat painting style (e) and line art (a) added result (f).

(3)

(a) Line Art (b) Skeleton Map (c) Region Map (d) Tag2pix (e) Ours

blush, brown_hair, red_eyes, white_background

black_legwear, blue_eyes, blue_hair, blush, grey_background blue_eyes, blue_hair

blue_skirt, brown_eyes, brown_hair, red_neckwear, white_background

blue_hair, blush, red_eyes, white_background

black_hair, brown_eyes, red_bow, red_skirt, white_background, white_legwear, yellow_neckwear

blush, brown_eyes, brown_hair, white_background blue_eyes, purple_hair

(4)

(a) Line Art (b) Skeleton Map (c) Region Map (d) Tag2pix (e) Direct Concatenation(f) Dual-branch

black_dress, black_hair, blue_eyes, blush, red_ribbon, white_background, white_shirt

blue_hair, blush, red_eyes, red_ribbon, white_background, white_dress blonde_hair, blush, green_eyes, white_background

blue_eyes, blush, silver_hair, white_background

brown_hair, red_eyes, white_background, white_legwear

pink_eyes, pink_hair, red-framed_eyewear

black_legwear, blue_eyes, red_hair, red_neckwear, red_skirt, white_background, white_shirt

black_dress, black_gloves, black_neckwear, blonde_hair, blue_eyes, blush, black_legwear, white_background

Figure 3: Effectiveness of the two fusion modes of the segmentation information.

(5)

(a) Line Art (b) Ours (Concat) (c) Ours (dual-branch)

black_legwear, blush, brown_eyes, white_background, white_hair black_eyes, black_hair, blue_background, white_shirt

black_ribbon, blonde_hair, green_eyes, white_background, white_bow

Figure 4: Examples where “Direct Concatenation” mode (“Concat”) works better than “Dual-branch”.

(6)

(a) Line Art (b) Skeleton Map (c) Region Map (d) Reference Image (e) MUNIT (f) Ours

Figure 5: Results on reference-based line art colorization. Our results are from model by incorporating MUNIT [HLBK18] with explicit segmentation information in a direct concatenation mode.

(7)

(a) Line Art (b) Skeleton Map (c) Region Map (d) Reference Image (e) MUNIT (f) Ours

Figure 6: Results on reference-based line art colorization. Our results are from model by incorporating MUNIT [HLBK18] with explicit segmentation information in a direct concatenation mode.

(8)

[NP14] NEUBERTP., PROTZEL P.: Compact watershed and preemp- tive slic: On improving trade-offs of superpixel segmentation algorithms.

In2014 22nd international conference on pattern recognition(2014), IEEE, pp. 996–1001.

[ZJL20] ZHANGL., JI Y., LIUC.: Danbooregion: An illustration region dataset. InEuropean Conference on Computer Vision (ECCV)(2020).

Referanser

RELATERTE DOKUMENTER

It proposes an intermediate step between segmentation and recognition that extracts objects from the relevant class based on similarity between their distance function and the

Information about the normal vectors can be incorporated in the segmentation model (3) both by defining appropriate region fitting functions D i , i = 1, ..., n, and weight functions

Höhne, Vascular Shape Segmentation and Structure Extraction Using a Shape-Based Region-Growing Model, Medical Image Computing and Computer- Assisted Intervention (MICCAI) 98;

We use erosion and dilation operators to manipulate and smooth an initial region segmentation tiling; we choose tile colors from the palette of heraldic tinctures; and finally,

Aim- ing at creating skeleton based skins, researchers 2,3 proposed a simple but novel technique called Skeleton Subspace De- formation (SSD), in which the surface vertices are moved

We here employ SOM for the arrangement of posture data included in motion files, and call the resulting map of pos- tures a motion map, which is used in constructing a graphical

Rendering the nucleus channel using a gray-scale map makes it possible to visualize a segmentation mask by rendering each region in a different color.. The combination of

From left to right: Volume rendering of the CT scan, iso-surface of the segmentation, the skeleton, a histogram of the branch lengths, and a histogram of the branching