CS155 Computer Graphics

Lab 0: Color shift

The purpose of this lab is to get you started on project 1. You are going to write your first filter, the color shift.
  1. Download the zipped skeleton code from the project page and unzip it.

  2. Move the ip2013 folder to the desktop and open it. You should see the Visual Studio (VS) icon. Double click on the icon to open the project.

  3. Click on the Build tab and select Build. The program will compile.

  4. Click on the Debug tab then select Start Without Debugging. Two windows will open, the other image processor (ip) interface (labeled hmc cs155 image processor) and a console window.

  5. Right click in the ip window. Choose File->Open. A message will appear in the console window asking for the filename of the image you want to open. Drag the test.bmp file from the ip2013 folder into the console window. The name of the file will appear. (You can also type the name in the console window but you need to include the entire path.) Press return. The test image will appear in the ip window.

  6. The skeleton code provides basic functionality for reading and writing images. The processing functions are up to you to create. Explore the menu for the possible options; if you select a processing function you will get a message that says the function is not yet implemented.

  7. Download the sample executable from the project page to your desktop. Run the executable and load the test image. Now select the color shift filter from the menu options. A "color shifted" version of the input image will display; this is the functionality you'll add to your image processor today.


Before you get started writing the color shift filter, let's look at the overall structure of the ip project.

Why all the fuss about constraining your edits to ip.cpp? We have an automated testing framework to grade your work. If you edit any file other than ip.cpp, you could break our testing system. That would not make us very happy. We'd be strongly inclined to share the pain. So please, constrain your edits to ip.cpp.

Now read over the requirements for color shifting in the project page and implement it!

Be sure to save your work. You can move your project folder to your charlie drive, to a drop box, or any other place you own. Do not leave it on the desktop of LSC computers! Because this is a shared environment, leaving your work behind could contribute to honor code violations. Delete your files before you log off!

You may try running your project from your charlie drive; this has caused problems in the past, which is why we recommend working on the desktop.

Last updated Jan. 2013