Experiment of the Effect of Zooming on Image Sizes

Tanvir Prince, Feissal Traore

American Journal of Numerical Analysis OPEN ACCESSPEER-REVIEWED

Experiment of the Effect of Zooming on Image Sizes

Tanvir Prince1,, Feissal Traore2

1Mathematics, Hostos Community College, City University of New York, USA

2Hostos Community College, City University of New York, USA

Abstract

Using a fixed digital camera, pictures of various scenes were taken using different level of zoom. All the other variables were kept constant and only the zooming effect was analyzed. At the end of the day, the sequence of pictures was saved in the hard drive and the image sizes were analyzed. We conclude the zooming effect on the sizes of the images.

Cite this article:

  • Tanvir Prince, Feissal Traore. Experiment of the Effect of Zooming on Image Sizes. American Journal of Numerical Analysis. Vol. 3, No. 2, 2015, pp 36-38. http://pubs.sciepub.com/ajna/3/2/1
  • Prince, Tanvir, and Feissal Traore. "Experiment of the Effect of Zooming on Image Sizes." American Journal of Numerical Analysis 3.2 (2015): 36-38.
  • Prince, T. , & Traore, F. (2015). Experiment of the Effect of Zooming on Image Sizes. American Journal of Numerical Analysis, 3(2), 36-38.
  • Prince, Tanvir, and Feissal Traore. "Experiment of the Effect of Zooming on Image Sizes." American Journal of Numerical Analysis 3, no. 2 (2015): 36-38.

Import into BibTeX Import into EndNote Import into RefMan Import into RefWorks

At a glance: Figures

1. Introduction

Imagine a world without pictures. It will be quite dull and some cases impossible to understand as someone says, “A picture says a thousand words”. Nowadays images are everywhere- from newspapers to internet. In actuality, an image is nothing but consists of a lot of pixels [5]. For black and white pictures, each pixel contains a numerical value between 0 and 1 which represent its gray level – 0 being completely white and 1 being completely black.

Figure 1. Gray scale color for the value from 0 to 1

In the “Figure 1” above, we see the corresponding gray scale color for the value from 0 to 1 broken down into 10 pieces. For a color picture, each pixel contains a vector of length three, where the value represent the magnitude of red, green and blue. Here red, green and blue are the primary colors [3] from which all the other colors can be created.

In “Figure 2”, we see some examples of color pixels created for various values of RGB (Math is Fun, n.d.) scale. The exact numerical value of each pixel color value is given below. To learn more about it, please read (Rahman Z.), (White), (College, n.d.) [14] and (Center). For a very quick introduction, redears are refered to [8].

The reader should compare Figure 2 with those values to have a feeling of RGB numerical value with the actual color. We use Mathematica software to do our experiment and also uses Microsoft excel to analyze our data. All the pictures were saved in JPEG (Group, n.d.) format to maintain the uniformity. The redears can use Mathematica (Purdue University, n.d.) software, a very powerful computer algebra system, to play around with images. More information on this software can be found on Wolfram website [16].

2. Experiment

The experiment consisted on taking pictures of different places, objects, or scenes with a digital camera using 5 level of various zoom. The digital camera we used had a 5X optical zoom length with a minimum focal length of 3.5mm, and the maximum focal length of 5.6mm (1X=3.5mm, 2X=4.0mm, 3X=4.5mm, 4X=5.0mm, 5X=5.6mm).

Every object or scenes have been photographed from a fixed place, from the same distance, without flash or other variable other than the zoom. We pictured 20 different scenes with the 5 different zoom options (100 pictures in total), and stored each scene pictures in a folder.

Each image’s data has been store on a chart table with the corresponding zoom in order for us to compare.

After getting all the data, we compared them and calculated the ratio [5].

With the help of excel, a graph was sketched based on de zoom type and the ratio. An average of all images of the same zoom was calculated.

After calculating the average, a ratio of the average has been calculated. A graph have been sketched to illustrate the relation between zoom and the size of the picture (Figure 3).

3. Analyze Data

After analysis of each image from each scene, we found out that the size of the first image on which we didn’t apply any zoom is the lowest. The size of the second image with the zoom 2X increased slightly in some scenes, and up to 1.3 times the size of the first image in others. The third and up images mostly followed the ratio a little more or less. It goes up as the zoom number increase forming a curve close to the square root function in some cases or a linear function in others. But most of the images ratio was not linear nor followed a special function. However, the overall average data showed an increase in the size very close to linear.

Furthermore, some of the image scenes didn’t follow the rule. But if we give a closer look, the size re-increases in almost the same flow after it decreased. After close analysis, other factors like density of the object to photograph, the colors, and also the amount of element taken in count while the zoom is going over, can influence the image size too. After those factors are out of reach when zooming closer, the size re-increased at the same flow as it should be.

4. Observation

Overall, the size of images increases according to the zoom applied (Figure 4). But all the image scenes didn’t have the same evolution in the size increase. A lot of natural factors like color, exposition, and light, have an influence on the size of the picture. Some of the scenes had a graph close to the graph of a square root function, and others seem to be close to a linear one’s. However, the graph of the average size per zoom shows an almost linear function (Figure 5). But no matter what the graph looks like, the size of pictures with a greater zoom still increased most of the time.

But there are some outliers: Some images don’t follow the rule; like stated before, may be because of other factors like color and number of material in the picture. Some pictures have a lot of things when the zoom is out, and when we zoom in it reduce the density. Reason why it can’t follow necessarily.

Figure 5. Linear graph of the average size of pictures per zoom

In the Figure 6, the first picture had a lot of color and different object in the background. But as far as we zoom in, those objects are reduced and the image contains only the person and very few objects in the background. That caused the size of the second picture to decrease slightly. But, when it came to the point where only the person and less objects are present, the image size increased back again on the third and over. The graph shows the variation of the ratio based on the size of the first picture. One thing to point is the fact that the size of images 3, 4, and 5 increased gradually.

5. Conclusion

After analysis and observations, we could affirm that the zoom applied on a picture has an effect on its size. The more we zoom in a picture from the same point we took the first picture, the heavier the picture become. The scale of increase of the picture doesn’t follow all the time the same equation. In average, the size of pictures increases almost linearly.

However, some pictures don’t follow it because of different factors like color concentration, number of objects in the background susceptible of change while zooming. But it is to note that even if those pictures size decrease on a stage, the size starts increasing back as normal when there is no more interference.

References

[1]  Center, N. A. (n.d.). Perceptual Optimization of Wavelet Image Compression. (n.d.). Department of Electrical Engineering, UCLA.
In article      
 
[2]  College, H. M. (n.d.). Change of Basis. Retrieved from Math Totorial Website: http://www.math.hmc.edu/calculus/tutorials/changebasis/changebasis.pdf.
In article      
 
[3]  Cooper, I., & Lorenc, C. (2006). Image Compression Using Singular Value Decomposition. Retrieved from Retrieved from College of the Redwoods: http://msemac.redwoods.edu/~darnold/math45/laproj/fall2006/iancraig/SVD_paper.pdf.
In article      
 
[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.
In article      
 
[5]  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.
In article      
 
[6]  Math is Fun. (n.d.). Retrieved from http://www.mathsisfun.com/divisibility-rules.html.
In article      
 
[7]  Mathematics, S. f. (2011). Why Do Math? Retrieved from Image Compression: How Math Led to the JPEG2000 Standard: http://www.whydomath.org/node/wavlets/basicjpg.html.
In article      
 
[8]  Prince, T. F. (2014). Mathematics Behind Image Compression. Journal of Student Research, 3(1), 46-62.
In article      
 
[9]  Purdue University. (n.d.). A Brief Introduction to Mathematica. Retrieved from http://www.cs.purdue.edu/homes/ayg/CS590C/www/mathematica/math.html.
In article      
 
[10]  Rahman Z., J. D. (n.d.). Image enhancement, image quality, and noise, Photonic Devices and Algorithms for Computing., (pp. VII, Proc. SPIE 5907 ).
In article      
 
[11]  Space, N. A. (n.d.). National Aeronautics and Space Administration. Retrieved from National Aeronautics and Space Administration: www.nasa.gov.
In article      
 
[12]  Spacetelescope. (2013). Spacetelescope.org. Retrieved from Spacetelescope.org: https://www.spacetelescope.org/projects/fits_liberator/improc/.
In article      
 
[13]  Stewart, G. W. (1993). On The Early History of the Singular Value Decomposition.
In article      
 
[14]  Strang, G. (2009). Introduction to Linear Algebra (4th ed.). Wellesley-Cambridge Press.
In article      
 
[15]  White, W. A. (n.d.). Data Compression for Full Motion Video Transmission. Conference on Advanced Space Exploration Initiative Technologies, (pp. 1-11).
In article      
 
[16]  Wolfram Mathematica. (2013). Hands-on Start to Mathematica. Retrieved from Wolfram: http://www.wolfram.com/broadcast/screencasts/handsonstart/.
In article      
 
  • CiteULikeCiteULike
  • MendeleyMendeley
  • StumbleUponStumbleUpon
  • Add to DeliciousDelicious
  • FacebookFacebook
  • TwitterTwitter
  • LinkedInLinkedIn