CS155 Computer Graphics
Lab 1: Color shift
The purpose of this lab is to get you started on project 1 and to write a simple color shift filter
-
Download the zipped skeleton code for the project page and unzip it
-
Download Project 1 sample executable to your desktop.
-
Create a new Visual Studio Project for project 1.
-
From the start menu select Microsoft Visual Studio 8. If you've never used Visual Studio before, it may ask what type
of development you do; answer C++.
-
Choose the File tab then select New -> project.
-
On the left pane of the window that appears check product type: C++, win32.
-
In the right pane of the same window choose Win32 Console Application.
-
For the location enter the name proj1 and choose the Desktop location.
-
On the left pane of the new window that appears click on Application Settings.
-
In the right pane of the same window check Empty project.
-
Click finish.
-
Go to the proj1 folder on the desktop. You should now see the Visual Studio (VS) icon. Double click the icon to open the
project.
-
Drag all the files in the unzipped skeleton code folder to the proj1 folder.
-
In the left pane of the VS window, you should see three empty folders for Header Files, Resource Files, and Source Files.
Drag the header files from the proj1 folder into the header folder. Drag the source files into the source folder.
-
Click on the Build tab and select Build. The program should compile.
-
Click on the Debug tab then select Start Without Debugging.
-
Right click in the window labeled hmc cs155 image process. Choose File->Open. In the command window enter test.bmp. (If not try pre-pending ../ to the filename.)
-
Now write a shift the colors of an image routine in ip.cpp. In other words, (a) the green channel of the output image will be the
same as the red channel of the input image, (b) the blue channel of the output image will be the same as the green channel of the input
image, (c) etc.. NOTE: do not edit anything but ip.cpp.
Last updated Sept. 10