DOI QR코드

DOI QR Code

적응적 타일링 및 블록 매칭을 통한 포토 모자이크 알고리즘

Photomosaic Algorithm with Adaptive Tilting and Block Matching

  • 서성진 (국립금오공과대학교 컴퓨터소프트웨어공학과) ;
  • 김기웅 (국립금오공과대학교 컴퓨터소프트웨어공학과) ;
  • 김선명 (국립금오공과대학교 컴퓨터소프트웨어공학과) ;
  • 이해연 (국립금오공과대학교 컴퓨터공학부)
  • 투고 : 2011.09.15
  • 심사 : 2011.11.01
  • 발행 : 2012.02.29

초록

모자이크란 여러 가지 빛깔의 재료를 조각조각 붙여서 무늬나 영상을 만드는 기법을 말하며, 최근에는 디지털 이미징 기술의 발달로 인하여 사진을 이용하여 영상을 만드는 포토 모자이크 기술들이 활용되고 있다. 본 논문에서는 적응적 타일링 및 블록 매칭을 통하여 포토 모자이크 영상을 만드는 컴퓨터 알고리즘을 제안한다. 제안한 알고리즘은 사진 데이터베이스의 생성 단계와 포토 모자이크 생성 단계로 구성된다. 사진 데이터베이스란 모자이크에 사용되는 사진(또는 타일)을 의미하며, 타일을 $4{\times}4$로 분할한 후에 각 영역의 RGB 평균값을 특징값으로 저장한다. 포토 모자이크 생성 단계는 입력 영상에 대하여 기 설정된 블록 크기로 분할한 후에 특징을 추출하는 과정, 인접한 블록들 사이의 유사도를 비교하여 병합하는 적응적 타일링 과정, 적응적 타일링을 통해 생성된 블록들을 사진 데이터베이스의 타일들과 유클리드 차이로 유사도를 비교하여 유사한 타일을 찾는 블록 매칭 과정 및 매칭된 타일의 명암값을 해당 블록의 명암값으로 교체하여 영상의 유사도를 높이는 밝기값 조정 과정으로 구성된다. 또한 인접 블록간 타일의 중복성을 최소화하는 기법을 적용하여 영상의 품질도 향상하였다. 제안한 알고리즘의 성능을 분석하기 위하여 안드레아 모자이크 소프트웨어와 비교하였고, 정량적인 분석 및 정성적인 분석에 있어서 제안한 알고리즘이 우수한 것으로 나타났다.

Mosaic is to make a big image by gathering lots of small materials having various colors. With advance of digital imaging techniques, photomosaic techniques using photos are widely used. In this paper, we presents an automatic photomosaic algorithm based on adaptive tiling and block matching. The proposed algorithm is composed of two processes: photo database generation and photomosaic generation. Photo database is a set of photos (or tiles) used for mosaic, where a tile is divided into $4{\times}4$ regions and the average RGB value of each region is the feature of the tile. Photomosaic generation is composed of 4 steps: feature extraction, adaptive tiling, block matching, and intensity adjustment. In feature extraction, the feature of each block is calculated after the image is splitted into the preset size of blocks. In adaptive tiling, the blocks having similar similarities are merged. Then, the blocks are compared with tiles in photo database by comparing euclidean distance as a similarity measure in block matching. Finally, in intensity adjustment, the intensity of the matched tile is replaced as that of the block to increase the similarity between the tile and the block. Also, a tile redundancy minimization scheme of adjacent blocks is applied to enhance the quality of mosaic photos. In comparison with Andrea mosaic software, the proposed algorithm outperforms in quantitative and qualitative analysis.

키워드

참고문헌

  1. Wikipedia, "Mosaic", http://en.wikipedia.org/wiki/Mosaic
  2. P. Haeberli, "Paint by Numbers: Abstract Image Representation," Proc. of the Annual Conference on Computer Graphics and Interactive Techniques, 1990, pp.207-214.
  3. G. Di Blasi and G. Gallo, "Artificial Mosaic," The Visual Computer, Vol.21, No.6, 2005, pp.373-383. https://doi.org/10.1007/s00371-005-0292-4
  4. A. Hausner, "Simulating Decorative Mosaics," Proc. of the Annual Conference on Computer Graphics and Interactive Techniques, 2001, pp.573-580.
  5. S. Battiato, G. Di Blasi, G. M. Farinella, and G. Gallo, "A Survey of Digital Mosaic Techniques," Proc. of Eurographics Italian Chapter Conference, 2006, pp.129-135.
  6. R. Silvers and M. Hawley, "Photomosaics," Henry Holt and Co., Inc. New York, 1997.
  7. A. W. Klein, T. Grant, A. Finkelstein, and M. F. Cohen, "Video Mosaics," Proc. of International Symposium on Non Photorealistic Rendering, 2002, pp.21-28.
  8. G. Di Blasi and M. Petralia, "Fast Photomosaic," Proc. of International Conference in Central Europe on Computer Graphics, Visualization and Computer Vision, 2005.
  9. "Andrea Mosaic", http://www.andreaplanet.com/ andreamosaic/