![]() |
![]() |
My image quilting program, quilting.cpp, takes 4 arguments: the sample texture, the block size, and the horizontal and vertical number of blocks in the image to be synthesized. My texture transfer program based on one iteration, texture.cpp, also takes 4 arguments: the underlying source image, overlying texture image, block size, and alpha value. My iterative texture transfer, transfer.cpp, takes no command line arguments and will run 5 iterations to generate pleasing transfers for the following three source/texture image combinations:
![]() Cary Grant |
![]() with sand |
![]() A castle |
![]() with clover |
![]() Trees |
![]() with fabric |
Image Quilting
Texture Transfer
I had a lot of fun playing with textures. In single iteration texture transfer, I noticed that block size had a much larger affect on the output image than alpha. Overall, I thought the iterative approach worked best. I followed the alpha values from the paper, and found 5 iterations to work well for my castle and the trees, but 3 and 4 iterations worked better for Mr. Grant most likely because the sand texture was so large. In my iterative approach I not only compared the texture blocks to the output of the last iteration, but I also compared the block to the original source image as well (i.e. after the first iteration I made two comparisons to calculate the overlap error for each texture block).
I also had some trouble getting my texture files to work on the suns. My Makefile will compile all the files, but Segmentation Faults may occur when they are executed. I found entering random cout comments helped the programs to run, an error that seemed totally bizarre and beyond my debugging prowess!
Move the mouse up/down to rotate the cube or sphere vertically (around the x-axis), left/right to rotate horizontally.
It is also possible in sphere.cpp to switch between the following 5 display modes:
![]() Cube with Mip Maps |
![]() Cube without Mip Maps |
|
![]() Wire frame of a sphere |
![]() Solid filled sphere | |
![]() Displaced globe of the earth |
![]() Africa misbehaving |