Difference between revisions of "Savy Cat"

From CDOT Wiki
Jump to: navigation, search
(Assignment 1)
(Project Name Goes here)
Line 1: Line 1:
 
{{GPU610/DPS915 Index | 20171}}
 
{{GPU610/DPS915 Index | 20171}}
= Project Name Goes here =
+
= Rotate90 =
 
== Team Members ==  
 
== Team Members ==  
 
# [mailto:ermarinz@myseneca.ca?subject=DPS915 Evan Marinzel]
 
# [mailto:ermarinz@myseneca.ca?subject=DPS915 Evan Marinzel]
Line 6: Line 6:
 
== Progress ==
 
== Progress ==
 
=== Assignment 1 ===
 
=== Assignment 1 ===
I kept things very simple and created a function that rotates an image 90° clockwise. I then profile rotating a tiny, medium, and large sized image file 12 times each.
+
I kept things very simple and created a function that rotates an image 90° clockwise.  
 +
 
 +
Then, I profile and evaluate performance of rotating a tiny, medium, and large sized image file 12 times each.
  
 
==== Dependencies ====
 
==== Dependencies ====
 
Two open-source utilities are required in order to run the project code:
 
Two open-source utilities are required in order to run the project code:
  
;[http://cimg.eu/ CImg]
+
:;[http://cimg.eu/ CImg]
 
+
:: Download and extract the CImg Library (Standard Package). This provides the template class used to store image information. The library contains many useful image manipulation functions and methods, including rotate, but we will only be making use of the CImg class and the Display function. Make sure your project include path can find CImg.h, which should be located in the root of the extracted files.
Download and extract the CImg Library (Standard Package). This provides the template class used to store image information. The library contains many useful image manipulation functions and methods, including rotate, but we will only be making use of the CImg class and the Display function. Make sure your project include path can find CImg.h, which should be located in the root of the extracted files.
+
:;[http://libjpeg.sourceforge.net/ libjpeg]
 
 
;[http://libjpeg.sourceforge.net/ libjpeg]
 
  
libjpeg provides the functionality of reading .jpg file data into a CImg object. It's not quite as strait forward as getting CImg, as you need to compile libjpeg from source. I used the most recent (Jan 2018) version named jpegsr9c.zip [http://www.ijg.org/files/ from this listing].
+
::libjpeg provides the functionality of reading .jpg file data into a CImg object. It's not quite as strait forward as getting CImg, as you need to compile libjpeg from source. I used the most recent (Jan 2018) version named jpegsr9c.zip [http://www.ijg.org/files/ from this listing].
  
If you have trouble building the solution, [https://stackoverflow.com/questions/46055720/cannot-load-any-image-with-cimg this article on Stackoverflow] helped me compile it.  
+
::If you have trouble building the solution, [https://stackoverflow.com/questions/46055720/cannot-load-any-image-with-cimg this article on Stackoverflow] helped me compile it.  
  
Once libjpeg has been built, it should result in creation of "libjpeg.lib". Be sure to link this file with the project code.
+
::Once libjpeg has been built, it should result in creation of "libjpeg.lib". Be sure to link this file with compilation of the project code.
  
=== Assignment 2 ===
+
==== Initial Code ====
=== Assignment 3 ===
+
;Rotate.h

Revision as of 05:06, 25 March 2018


GPU610/DPS915 | Student List | Group and Project Index | Student Resources | Glossary

Rotate90

Team Members

  1. Evan Marinzel

Progress

Assignment 1

I kept things very simple and created a function that rotates an image 90° clockwise.

Then, I profile and evaluate performance of rotating a tiny, medium, and large sized image file 12 times each.

Dependencies

Two open-source utilities are required in order to run the project code:

CImg
Download and extract the CImg Library (Standard Package). This provides the template class used to store image information. The library contains many useful image manipulation functions and methods, including rotate, but we will only be making use of the CImg class and the Display function. Make sure your project include path can find CImg.h, which should be located in the root of the extracted files.
libjpeg
libjpeg provides the functionality of reading .jpg file data into a CImg object. It's not quite as strait forward as getting CImg, as you need to compile libjpeg from source. I used the most recent (Jan 2018) version named jpegsr9c.zip from this listing.
If you have trouble building the solution, this article on Stackoverflow helped me compile it.
Once libjpeg has been built, it should result in creation of "libjpeg.lib". Be sure to link this file with compilation of the project code.

Initial Code

Rotate.h