Oct 2011

Practise Problems for Labtest 3

Labtest03 takes place Thurs, Nov 3, Fri Nov 4, Mon Nov 7.

Given two images, can you come up with a way to determine:
-whether they the same size (horizontally or vertically)?

-which pixels are the same and which pixels are different (matching according to position)
Given two images with the same dimensions, could you iterate over all of the pixels in one image and do a comparison to the corresponding pixel in the other image?
-could you do the same even if the two images were of two different sized?

if pixels are different, how might one or the other be modified to:
-match the other
-be the average of the two with respect to any or all of the RGB components
-be the sum of the two, wrt to any or all of the RGB values

Could you do the above conditionally?
e.g., for only some rows or some columns?

Could you implement "near matching" instead of "complete matching" for the pixels? think about how to characterize how "close" the colour of two pixels.

Notice re: Lecture 13 (Oct 27)

The quiz that had been planned for Thursday Oct 27 will be postponed to Tuesday Nov 1, in consideration of the delay in the posting of the Lecture 12 materials.

Memory Diagram Sample Questions

In response to student requests, some sample questions have been put in the document repository.
There is a version without the answers and a version with the answers.
Enjoy!

The Midterm Exam

Date: Tuesday, Oct 18th

Location:

For students with student numbers that are even: Accolade Building East Room 002
For students with student numbers that are odd:
Accolade Building East Room 007

Time:
start time: 10:10am. This allows approx 10 minutes to walk from Ross, South Building, Room S203 (location of lectures).
end time: 10:55am
duration: 45 minutes

Weight: 20%

Format:
  • a closed book exam
  • short-answer comprehension questions, similar to the format of those found in the review questions at the end of Chapter 1 and Chapter 2
  • short-answer questions about contracts. Given a particular contract and a scenario, be able to describe the responsibilities of the client and the implementer. Apply this knowledge in order to attribute liability.

Topics:
All the material that has been covered in the assigned readings and labtests up until Thursday, Oct 6th.
This includes:
  • assigned readings from the textbook and related material discussed in lecture
  • concepts covered in labtest I
  • material discussed in lecture that pertains to working with Images

Good luck!

There will be a short lecture immediately following the midterm, to take place in one of the midterm rooms from 11-11:20am.
Attendance at this lecture is strongly recommended since we will cover material and concepts that will be included on the labtest (Thurs, Oct 20; Fri Oct 21; Mon Oct 24)

About the img package

Some folks are running into difficulties using the jar file containing the img package.
The source files are now posted at http://www.cse.yorku.ca/course/1710/files/
You can bring them into your eclipse project directly.

How To Compile and Run the L8 Examples

  1. Download the following http://www.cse.yorku.ca/course/1710/files/imagePackage.jar
  2. Put imagePackage.jar in the same directory as the lecture examples (whichever project you created for them)
  3. Add the jar file as an external jar on the build path. Here's how to do it:
    • select Project -> Properties -> Java Build Path (item on left, third from top) -> Libraries (third tab from left).
    • Select "Add External JARs" from among the buttons on the right.
    • Navigate to file and select it

Regularly Scheduled TA Office Hours

Hi all,

the TA will hold office hours as follows:

Tuesdays, 2pm
Wednesdays 11am

The office hours will be held in CSE1002 (if it is booked for another class, then the office hours will take place in CSE1006).
You can come and get any questions you have answered and/or review your answers from the labtests.