All entries for Thursday 02 November 2006

November 02, 2006

Loading times

If anyone has tried the code that I emailed out to to group a few days ago with the images that were attached they will have found that the program takes probably about 30 seconds to process a single picture. Initially I thought this purely because I didn’t program the code to be efficient. However, after Chris’ comment on using other images I tried it out on some other images and it seems that the program will process pictures of a similar resolution and even higher quality in well under a second.

It looks like the source of the problem is with the way Photoshop encoded the pictures when I resized them. For this reason I suggest that everyone open up the pictures in MS Paint and save them as a bitmap.


How to compile with CImg.h

OK

The compiler that I have been using comes with bloodshed Dev C++

Dev C++ can be downloaded from
Here Dev C++

Install Dev C++ then ignore the IDE that comes with it just use the compilers that it installs in C:\Dev-C++\Bin

And CImg.h can be downloaded from (Tweaked by me to work on Windows)
Here CImg.h

Extract the CImg.zip files and place them in C:\Dev-C++\Bin

This is because unfortunatly I have not been able to find a way of compiling any of the examples without them being in the bin, even with the bin folder being in the enviroment variables.

To compile the tutorial example load CMD
cd C:\Dev-C++\Bin
g++ -o tutorial.exe tutorial.cpp -O2 -lgdi32

This will take about 40sec to compile but does make quite a cool program,

Give it a go let me know if you get stuck, this should allow you to then start playing around with CImg and see if we can use it for out project!

Anthony


November 2006

Mo Tu We Th Fr Sa Su
Oct |  Today  | Dec
      1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30         

Search this blog

Tags

Galleries

Most recent comments

  • The reflective writing is submitted individually so make sure you submit it yourself tomorrow mornin… by on this entry
  • Yeh Ant's charts look great. Not sure – Ant reckons 1650 max (10% over), so if anyone has any sugges… by on this entry
  • Wow, the report looks really good :) Do you think it will matter too much if it is a couple of hundr… by on this entry
  • nice, overs better than under ;) by on this entry
  • I'll do the other bits then: introduction/overview of person tracking, testing/problems (if Ant+Hoi … by Matt on this entry

Blog archive

Loading…
Not signed in
Sign in

Powered by BlogBuilder
© MMXX