Open main menu

CDOT Wiki β

Changes

Savy Cat

280 bytes added, 16:06, 27 March 2018
Rotate90
::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 itfor Windows 7. I used nmake from the Visual Studio command prompt, which uses the tool win32.mak, which can be acquired from the Windows developer toolkit v7.0.
::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.
==== Profiling Using gprof ====
In order to get performance information using gprof, copy the CImg folder containing all source files to matrix. CImg is a cross-platform library and should work as is. To get the libjpeg library file (libjpeg.a), we need to download the Unix formatted package jpegsrc.v9c.tar.gz [http://www.ijg.org/ from their homepage] and copy the original source files this to matrix and re. To extract the contents, issue the command:  tar -compile for Unixxzf jpegsrc.v9c.tar. gz  
=== Assignment 2 ===
=== Assignment 3 ===
93
edits