330 likes | 525 Views
PHOTO MOSAIC. 組員: B98902041 李庚道 B98902047 徐 哲 B98902107 古長霖. WHAT IS PHOTO MOSAIC ?. 圖片來源 : http://www.ou-online.com/blog/?p=366. HOW WE DO IT – Generate the features . STEP 1 Find a sufficient amount of photos in .raw format. HOW WE DO IT – Generate the features .
E N D
PHOTO MOSAIC 組員: B98902041 李庚道 B98902047 徐 哲 B98902107 古長霖
WHATISPHOTOMOSAIC? 圖片來源:http://www.ou-online.com/blog/?p=366
HOW WEDO IT – Generate the features • STEP 1 Find a sufficient amount of photos in .raw format
HOW WEDO IT – Generate the features • STEP 2 Compress each image into the size of 8x8, 16x16 and 32x32 pixels. We called those compressed images tiles.
HOW WEDO IT – Generate the features • STEP 3 Divide the 8x8(or 16x16, 32x32) tileinto 5 regions(R1~R5)
HOW WEDO IT – Generate the features • STEP 4 Generate the features(R,G,B,Y,I,Q) of each region(There are 30 features in each tile), and write the features in a .txt file
HOW WEDO IT – Generate the features • Introduction of YIQ color space YIQ is the color space used by NTSC color TV system. Y: Brightness I: In-phase (Change from orange to blue) Q: Quadrature-phase (Change from purple to green)
HOW WEDO IT – Preprocess for the input image • STEP 1 Compress the input image into the image which both its length and width can be divided by 32
HOW WEDO IT – Preprocess for the input image • STEP 2 Divide the modified image into several 8x8 (16x16, 32x32) images.
HOW WEDO IT – Feature comparison • STEP 1 Calculate the distance between each 8x8 (16x16, 32x32) segment of the input image and the tiles.(We used two kinds of formula)
HOW WEDO IT – Feature comparison • STEP 2 Find the tile in our database which has the shortest distance with the 8x8(16x16, 32x32) segment of the input image and replace it with the tile.
Result • Input Image
Result • Input Image after size modification
Result • Mosaic using 32x32 tile
Result • Mosaic using 16x16 tile
Result • Mosaic using 8x8 tile
Result • 32x32 tile • Original image • 16x16 tile • 8x8 tile
Result • 32x32 tile • 16x16 tile • 8x8 tile • Original image
Discussion – Different distance formula • Formula 1: • Original image • Formula 2:
Discussion – Different distance formula • Distance1 • Distance2 • Mosaic with 1200 32x32 tiles in the database
Discussion – Different distance formula • Distance1 • Distance2 • Mosaic with 1200 16x16 tiles in the database
Discussion – Different distance formula • Distance1 • Distance2 • Mosaic with 1200 8x8 tiles in the database
Discussion – Different distance formula • Distance1 • Distance2 • Mosaic with 4886 32x32 tiles in the database
Discussion – Different distance formula • Distance1 • Distance2 • Mosaic with 4886 16x16 tiles in the database
Discussion – Different distance formula • Distance1 • Distance2 • Mosaic with 4886 8x8 tiles in the database
Discussion – Different database • Original image
Discussion – Different database • Mosaic with 500 16x16 tiles in the database
Discussion – Different database • Mosaic with 1200 16x16 tiles in the database
Discussion – Different database • Mosaic with 4886 16x16 tiles in the database
Discussion – Different database • Mosaic with 500 8x8 tiles in the database
Discussion – Different database • Mosaic with 1200 8x8 tiles in the database
Discussion – Different database • Mosaic with 4886 8x8 tiles in the database