Changes

Jump to: navigation, search

BETTERRED

811 bytes added, 13:03, 2 March 2017
Linux
Compile the binaries using the following command:
g++ -O2 -std=c++0x -Wall -pedantic [your chosen file name].cpp -o gblur
Run the compiled prigram
./gblur cinque_terre.bmp cinque_terre_BLURRED.bmp 3.0 3.0
The command line arguments are structured as follows:
[input image filename].bmp [output image filename].bmp [x - sigma value] [y - sigmea value]
====Mac OS X====
To compile and run the program:
# Navigate to the directory you want to run the program in.
# Save [http://matrix.senecac.on.ca/~cpaul12/cinque_terre.bmp this] image and place it directory you will be running the program from.
# Copy the Linux version of the main source code above and paste it into a [your chosen file name].cpp file.
# Copy the Linux version of the header source code above and paste it into a file named windows.h.
Compile the binaries using the following command:
clang++ -O2 -std=c++0x -Wall -pedantic [your chosen file name].cpp -o gblur
Run the compiled prigram
./gblur cinque_terre.bmp cinque_terre_BLURRED.bmp 3.0 3.0
147
edits

Navigation menu