You will need to download the following files:
imagefft.h- Header file for
ComplexFFTImageclass, which has a built-in FFT function.
imagefft.cc- Related source file.
lab3-skeleton.cc- Outline for the source file for all parts of this lab.
You will need the following image files.
top_student.png- a photo of the best student in ECE 418 Spring 2004.
cat_thoughts.png- undeniable proof that cats are conspiring to conquer the world.
Use the following instructions to get started.
lab3_skeleton.cc, naming them
lab3b.ccyou will be implementing part 1 of this lab (with zero-order hold and bilinear interpolation respectively).
lab3c.ccyou will implement all of part 2 of this lab.
In this lab, you will be using the
This is almost identical to the
ComplexImage class, except it has a built-in FFT function.
For example, if you want to transform the
ComplexFFTImage image you only need to type in:
And to reverse the transformation, you only need to type in:
Syntax for image interpolation.
User specifies coordinates of
top_left_column of rectangular region to be enlarged.
Suggested command line usage:
./lab3a top_student.png out_3a.png top_left_row top_left_column
./lab3b top_student.png out_3b.png top_left_row top_left_column
For Image decimation, the suggestion is that you set up your program to use the following syntax:
./lab3c input.png small_output.png restored.png difference.png filter_flag decimation_factor