README~ 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. In this assignment you will read in an image and normalize it. All
  2. the instructions are in the file answer06.c.
  3. As a programmer you must know how to compile and test your own code.
  4. You are not supplied with a Makefile, and must develop your own
  5. system to build and test your program. I recommend using either
  6. a Makefile, or writing a bash-script to do the job. A bash script
  7. looks like this
  8. #!/bin/bash
  9. echo "Some command"
  10. echo "do something else
  11. They really are that simple. Writing a Makefile is also an important
  12. skill, and you have sample Makefiles from previous assignments to
  13. help you get started.
  14. To help test your code, you are supplied with 5 images in a
  15. custom image format called "ee264", and 9 corrupt test-cases.
  16. The "good" images are in the folder "images", and the corrupt
  17. test-cases are in the folder "images/corrupt-testcases".
  18. For your convenience, png versions of the "good" images are
  19. available in the "images/pngs" directory. You can view them in
  20. most image viewer programs.
  21. You should be able to successfully normalize the 5 "good" images,
  22. and successfully "return NULL" for the 9 corrupt test-cases.
  23. Open the corrupt test-cases in a hex editor and analyse them so
  24. that you can see exactly what is wrong with them.
  25. Please do not leave this assignment to the last minute.