Download presentation
Presentation is loading. Please wait.
Published byTerence Whitehead Modified over 9 years ago
1
Mosaic Creator Lance Finfrock CS 470
2
Introduction A Mosaic is hundreds or thousands of pictures comprised to make one picture.
3
Specifications Develop an algorithm that builds a mosaic Provide a logical user interface Provide an Interactive Mosaic viewer Allow the user to save and print their mosaics
4
Mosaic Creation Algorithm Divide the original picture into thousands of smaller sections Find the difference between each section and mosaic pieces Choose the best piece
5
Finding the difference between each section and piece For every pixel in the original section and the Mosaic piece find the difference between each color value
6
Choosing the best piece Take the piece with the minimal difference The option without duplicates –After a piece is chosen, take it out of the pile not to be chosen again The option with duplicates –When a piece is chosen, place it back in the pile to be chosen again
7
Blending Take each pixel color from the original picture and the mosaic pieces and combine them together
8
Graphical User Interface Preview Window Number of Pictures Found Amount of Divisions Allow Duplicates Best Picture Match
9
Interactive Viewer
10
Saving and Printing Saving –Three different sizes of JPEG images –Store as a.mosaic to be opened again in the Interactive viewer Printing –Prints to the size of the page
11
Requirements Java Virtual Machine 1.4.1 or higher 128 MB of RAM or higher 1.0 GHz or higher processor speed 800 by 600 or greater Screen resolution JPEG or GIF images only
12
System Architecture Main Window Display Mosaic Algorithm Interactive Viewer Open Mosaic File Finder Save Print
13
Incremental Prototyping Incremental Prototyping was used because : –GUI needed to be user friendly –Did not have a good grasp on what was possible –Needed to test program on other systems Red Hat MAC Other windows machines
14
Conclusion I learned: –Programming techniques : Threads Create a usable GUI Manipulation of images Printing and saving of images –How to design a large project from the ground up
15
Questions ?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.