html5-img
1 / 15

Mosaic Creator

Mosaic Creator. Lance Finfrock CS 470. Introduction. A Mosaic is hundreds or thousands of pictures comprised to make one picture. Specifications. Develop an algorithm that builds a mosaic Provide a logical user interface Provide an Interactive Mosaic viewer

stuart
Télécharger la présentation

Mosaic Creator

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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 Print Open Mosaic Main Window Display Interactive Viewer Mosaic Algorithm File Finder Save

  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 ?

More Related