HI 5323 Session 2

Overview:

  1. Lecture 1: Introduction to C++ Pt. 1 (PDF file)
  2. Lecture 2: Image Display and Histograms (PDF file)
  3. Homework Assignment 1


Resources and Assignments:


1. Lecture 1: Introduction to C++ Pt. 1

Click on the listed web sites at the end of the file to get more free information on C++. Also, we provide an additional C++ tutorial here. Note, the tutorial consists of two separate MS Word and Powerpoint files. It starts with the MS Word document and continues with the Powerpoint. We have included the working examples (in the Code folder) and we have documented in the MS Word and Powerpoint files, which example corresponds to the material. Please respect the copyright of the material, posted by permission.


3. Homework Assignment 1

Please submit handwritten notes at the beginning of session 4:

Problem 1: Image Basics (15 pts) A certain graphical environment uses icons that are 32 by 32 pixel images, and each pixel is one of 16 colors. How many different icons are there? Assuming that one in a million of the possible icons is potentially useful, how large a piece of paper would be required to print them all side by side at 100 pixels per inch? If this this turns out to be impractical, how may 8-by-10 (inch) prints would it take to catalogue them? If the paper is 0.01 inch thick, how tall will the stack of prints be? (Assume that the 8-by-10 prints cannot contain partial icons).

Problem 2: Histograms (15pts) A film image shows a dark-colored barn with a light colored roof against a bright sky. Sketch what its histogram might look like if it were (a) properly digitized, (b) digitized with gain set too low, (c) digitized with gain set too high, (d) digitized with too much offset, (e) digitized with too little offset, and (f) digitized with too much gain and offset. Assume that 0 is dark and 255 is light. (Label where each major component of the image is located in the histogram).