davrosyoung / pixelmagic Goto Github PK
View Code? Open in Web Editor NEWExperimentation with the java pixel level image libraries
Experimentation with the java pixel level image libraries
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title>MCI - Multi Coloured Image</title> </head> <body> <h1>Multi Coloured Image</h1> <h2>Prerequisites</h2> <ul> <li>Check you have java installed: issue <font face="fixed,mono,courier">java -version</font> from the command line, it should be version 1.7 or above.</li> <li>Check you have ant installed: issue <font face="fixed,mono,courier">ant -version</font> from the command line, it should be version 1.6 or above.</li> </ul> <h2>How to</h2> <h3>Install</h3> <p>expand the <font face="fixed,mono,courier">mci_bundle.zip</font> file into a directory of your choice, it will be run from that directory.</p> <h3>Run</h3> <p> <b>With ant:</b> To produce a multi coloured image named <font face="fixed,mono,courier"><i>poc.png</i></font> in the <font face="fixed,mono,courier">images/</font> directory, issue the following command; <br> <font face="fixed,mono,courier">ant poc</font> <br> To verify that an image contains only unqiue pixels, issue the following command; <br> <nr> <font face="fixed,mono,courier">ant verify -Dimage=<i>name</i></font> </nr> <br> Where <font face="fixed,mono,courier"><i>image</i></font> is the name of the image to be verified, it shall default to poc.png if not specified. </p> <p> <b>Without ant:</b> <ul> <li>Create default image: <font face="fixed,mono,courier">java -jar dist/mci.jar</font></li> <li>Create named image in specific directory: <font face="fixed,mono,courier">java -Dimage.dir=/volumes/x07/mydir -jar dist/mci.jar freddy.png</font> - the order of the arguments is important!</li> <li>Verify default image: <font face="fixed,mono,courier">java -classpath dist/mci.jar au.com.polly.mci.ImageVerifier poc.png</font></li> </ul> <br> </p> The result should look something like;<br> <hl> <img src="images/poc.png" width="800" height="400"/> </hl> <h3>Run unit tests</h3> <p> Requires ant to be installed (I actually run the tests successfully within Intelli-J too). From the top level directory invoke the following command; <br> <font face="fixed,mono,courier">ant test</font> <br> </p> <h2>Manifest</h2> <ul> <li><font face="fixed,mono,courier">readme.html</font> - this file</li> <li><font face="fixed,mono,courier">mci.jar</font> - classes containing the application</li> <li><font face="fixed,mono,courier">mci_test.jar</font> - unit test classes and image files</li> <li><font face="fixed,mono,courier">images/</font> - test images</li> <li><font face="fixed,mono,courier">src/</font> - source code for the application</li> <li><font face="fixed,mono,courier">tests/</font> - source code for the unit tests</li> <li><font face="fixed,mono,courier">build.xml</font> - ant build file</li> </ul> </body> </html>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.