Home
Name Modified Size InfoDownloads / Week
readme.txt 2012-12-23 3.5 kB
main.c 2012-12-23 21.7 kB
main.exe 2012-12-23 31.3 kB
license.txt 2012-12-23 35.8 kB
debugd note(23122012).txt 2012-12-23 114 Bytes
Totals: 5 Items   92.5 kB 10
1.Team and Member info:
  Team number: Team 11-05-06
  Project name: PGM Image Processor
  Course name & years: Introduction to Computer Programming (ICP), 2012-2013 Semester 1
  Member names & SIDs:
a. Ma Yiu Tong,Matthew	10557917	b. member 1	10550669	c. member 2	10549913	d. member 3	10554967
2.Objective:
  To design and develop a standalone console-based C program, PGM Image Processor, that is able to process P2-type (ASCII-type) PGM greyscale image files. The program can be used for reading (input), creating, writing (output), viewing, ID marking and giving effects to digital images in PGM P2-type format.
3.Usage:
  To run this program, you can either open icp321-11-05_Team06.exe or compile icp321-11-05_Team06.c in Dev-C++(refer to the instruction in 4.Comilation)and run. A menu will be showed when the icp321-11-05_Team06.exe is opened.
Option'r': -read (Input) a PGM file (P2-type), store image content in memory, and display the raw data. 
     1.input file name 	2.image stored in memory	     3.display pixel data
Option'c': -create a new image and store image content in memory.  
     1.input file name	     2.input height,width and max greyscale level
     3.input pixel data	     4.image stored in memory	     5.create and save file
Option'w': write (output) the current image stored in the memory to a new PGM file. 
     1.input file name	     2.create and save file
Option'v': display the stored image with user-specified characters that represent pixel values. 
     1.input a sequence of characters using for represent the pixel values	
     2.display image in character-view mode
Option'm': embed the course code and student ID in the image. 
     1.choose project member's SID or input other SID	
     2.course code and SID will be embedded in image	     3.image stored in memory
Option'e': give some special effects to the image.
     1.choose effect	     2.display effect image	     3.image stored in memory
Option'q': -Exit the program.
***Only option ¡¥r¡¦,¡¥c¡¦ and 'q' are executable at the beginning of the program.
4.Compilation:
  This program is compiled with IDE Dev-C++ (version 4.9.9.2) in Windows 7.
  To compile, open the file "icp321-11-05_Team06.c" with Dev-C++, then press F9.
  Ps. You may download Dev-C++ in the following URL:
      http://www.bloodshed.net/download.html
5.File List:
  1.Folder(Codes and Files): icp321-11-05_Team06
        -Source files: icp321-11-05_Team06.c
        -Executable file: icp321-11-05_Team06.exe
        -readme file: readme.txt
  2.Folder(Testing Images): icp321-11-05_Team06_testim
        -Folder: orgIm  --edward.pgm, usa.pgm, usb.pgm
        -Folder: outIm  --cc9.pgm, edward.pgm, edward_blur.pgm, edward_bright.pgm, edward_dark.pgm, edward_large.pgm, edward_m1.pgm, edward_m2.pgm, edward_m3.pgm, edward_m4.pgm, edward_m5.pgm, edward_negative.pgm, edward_rotation.pgm, edward_small.pgm
  3.File(Project Presentation Powerpoint): icp321-11-05_Team06_Present.ppt
  4.File(Appendix): process flow charts.pdf
  5.File(Project Submission Form): ICP_ProjSubForm_321-11-05_TEAM06_12S1.doc      
6.Known Errors:
Cannot mange input file with extension ¡§.pgm¡¨ and ¡§P2¡¨ descriptor, but invalid PGM file content.


License:
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Source: readme.txt, updated 2012-12-23