Analyze JPEG File Size for Random Pictures Using Random Function in Mathematica
Tanvir Prince
Mathematics, Hostos Community College, City University of New York, USA
Abstract
Using the random function in Mathematica (a mathematical software), random numbers between 0 and 1 were generated which in turn used to create random pictures. The random values represent the gray scale of the black and white pictures. Thus hundreds of pictures were created randomly and compressed using JPEG algorithm. Then a directory list containing the file size is created and imported in the Microsoft excel worksheet to analyze. All the code is given in the paper that is used so that it can be carried out by any interested reader. As a byproduct, this can be used as a classroom activity or as a project for any college level mathematics courses.
Keywords:
random pictures, mathematica, JPEG compression
| [1] | In Courtesy of en.wikipedia.org. |
| |
| [2] | For more information about the software and to download the product the readers can visit www.wolfram.com. |
| |
| [3] | Image Compression. (2011). Image Compression: How Math Led to the JPEG2000 Standard. Retrieved from Image Compression: How Math Led to the JPEG2000 Standard. (2011). Retriwww.whydomath.org/node/wavlets/basicjpg.html. |
| |
| [4] | Group, S. (n.d.). JPEG Compression: What it is - when to use it - and when not to. Retrieved from Retrieved from the university of Oslo website: http://folk.uio.no/inf9540/SVD.pdf. |
| |
| [5] | Rahman Z., J. D. (n.d.). Image enhancement, image quality, and noise, Photonic Devices and Algorithms for Computing., (pp. VII, Proc. SPIE 5907). |
| |
| [6] | Prince, T., Franco, S., Salva, I., & Windolf, C. (2014). Mathematics Behind Image Compression. Journal of Student Research, 3(1), 46-62. Retrieved from http://www.jofsr.com/index.php/path. |
| |
| [7] | Purdue University. (n.d.). A Brief Introduction to Mathematica. http://www.cs.purdue.edu/homes/ayg/CS590C/www/mathematica/math.html |
| |
| [8] | Wolfram Mathematica. (2013). Hands-on Start to Mathematica. Retrieved from Wolfram: http://www.wolfram.com/broadcast/screencasts/handsonstart/. |
| |