claude cosc428 from past papers

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/99

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 10:42 PM on 5/28/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

100 Terms

1
New cards

RGB colour space — model

A cube with orthogonal Red, Green, Blue axes; black at origin, white opposite, greys on the diagonal; colours combine additively.

2
New cards

RGB — strengths

Matches capture/display hardware (sensors and monitor sub-pixels are RGB); simple; native image storage format.

3
New cards

RGB — weaknesses

Not perceptually uniform; channels highly correlated so lighting changes shift all three; unintuitive to specify a colour.

4
New cards

RGB — typical use

Image acquisition, storage and display.

5
New cards

HSV colour space — model

Cylinder/cone: Hue = angle (the colour), Saturation = radius (vividness), Value = height (brightness).

6
New cards

HSV — key strength

Separates chromaticity from intensity, so hue is robust to lighting changes — good for colour segmentation.

7
New cards

HSV — weaknesses

Singularities (hue undefined when unsaturated, S undefined at V=0); hue wraps at 0/360°; not perceptually uniform.

8
New cards

HSV — typical use

Colour pickers, image editing, colour-based object segmentation.

9
New cards

CIE colour space — basis

Device-independent, derived from human colour-matching experiments (CIE 1931 XYZ; CIELAB perceptually uniform).

10
New cards

CIE chromaticity diagram

The horseshoe of all visible colours; spectral colours on the curved edge; device gamuts are regions inside it.

11
New cards

CIELAB

L* lightness, a* green↔red, b* blue↔yellow; engineered so Euclidean distance ≈ perceived colour difference (ΔE).

12
New cards

CIE — strengths

Device-independent standard; spans all visible colour; perceptually uniform (Lab); basis of colour management.

13
New cards

CIE — weaknesses

Not directly displayable; abstract; needs conversion; computationally heavier.

14
New cards

Colour gamut

The set of colours a device can reproduce — a triangle/region inside the CIE horseshoe; differs per device.

15
New cards

One-line colour summary

RGB matches hardware, HSV matches human intuition (robust segmentation), CIE matches the science (device-independent, uniform).

16
New cards

Bayer filter

A camera mosaic: 50% green, 25% red, 25% blue photosites; full RGB per pixel is interpolated (demosaiced).

17
New cards

Why extra green in Bayer

Mimics the human eye's greater luminance sensitivity in the green region.

18
New cards

Cones

Retinal colour receptors (L/M/S ≈ R/G/B) active in good light (photopic); concentrated in the fovea.

19
New cards

Rods

Retinal monochrome receptors; very light-sensitive (scotopic), good for motion/low light; dominate the periphery; no colour.

20
New cards

Fovea

Central retinal region packed with cones; gives sharp, colour, high-acuity vision.

21
New cards

Blind spot

Region with no receptors where the optic nerve exits the retina.

22
New cards

Camera colour distribution

Perfectly regular, uniform grid (Bayer pattern repeated identically everywhere).

23
New cards

Retina colour distribution

Non-uniform: foveal cones, peripheral rods, blind spot, very few S (blue) cones.

24
New cards

Camera sensitivity

Roughly linear response, fixed dynamic range, uniform across the sensor.

25
New cards

Retina sensitivity

Logarithmic/non-linear with huge adaptive dynamic range (pupil, photochemical, neural); rods vs cones split the range.

26
New cards

Camera resolution

Uniform across the whole sensor.

27
New cards

Retina resolution

Very high only in the fovea, falling off toward periphery; eye uses saccades to point the fovea at regions of interest.

28
New cards

Retinal compression

~126M receptors feed only ~1M optic-nerve fibres — heavy pre-processing in the retina.

29
New cards

Saccades

Rapid eye movements that point the high-acuity fovea at successive points of interest.

30
New cards

Convolution

Slide a kernel over an image; each output pixel = weighted sum of its neighbourhood.

31
New cards

Gaussian filter

A low-pass smoothing kernel that blurs and suppresses noise/high frequencies.

32
New cards

Laplacian operator

A high-pass second-derivative operator (∇²) that responds strongly to edges; noise-sensitive on its own.

33
New cards

Laplacian of Gaussian (LoG)

Smooth with a Gaussian then take the Laplacian; finds edges as zero-crossings without amplifying noise.

34
New cards

Sharpening kernel structure

Large positive centre with negative surround (high-pass / unsharp mask).

35
New cards

Unsharp masking formula

sharpened = original − k·∇²(Gaussian ∗ image): add back a scaled Laplacian of the smoothed image.

36
New cards

Sharpening at an edge

Produces overshoot on the bright side and undershoot on the dark side, steepening the transition (raises local contrast).

37
New cards

Sharpening in flat regions

Laplacian ≈ 0, so the pixels are essentially unchanged.

38
New cards

Does sharpening add information?

No — a deterministic filter on the same pixels adds no new information; perceived detail rises but actual information doesn't (can even fall).

39
New cards

Why sharpened image looks more detailed

The visual system reads enhanced edge contrast (over/undershoot, like Mach bands) as more detail; the gain is perceptual (acutance).

40
New cards

Mach bands

Perceived over/undershoot at edges caused by lateral inhibition in the visual system.

41
New cards

Structuring element (SE)

A small shape with a marked origin used to probe a binary image in morphology.

42
New cards

Erosion rule

Keep a foreground pixel only if the SE fits entirely inside the object; otherwise remove it. Shrinks objects.

43
New cards

Dilation rule

Add a background pixel if the SE (origin on it) touches/overlaps the object. Grows objects.

44
New cards

Erosion effect

Shrinks objects, removes thin protrusions, deletes blobs smaller than the SE.

45
New cards

Dilation effect

Grows objects, fills small gaps/notches, can join nearby components.

46
New cards

3×3 square SE

8-connected; isotropic erode/dilate including diagonals.

47
New cards

Plus/cross SE

4-connected; up/down/left/right only, ignores diagonals.

48
New cards

Horizontal 1×3 SE

Anisotropic; erosion removes only left/right edge columns, dilation grows only horizontally.

49
New cards

Opening

Erosion then dilation; removes small specks while preserving larger objects' size (denoising).

50
New cards

Closing

Dilation then erosion; fills small holes/gaps and joins close components.

51
New cards

Tracking definition

Estimating an object's state (e.g. position + velocity) over time from noisy measurements.

52
New cards

Kalman prediction step

Use the motion model to project state and covariance forward → a-priori estimate; uncertainty grows.

53
New cards

Kalman data association

Decide which measurement belongs to which track via predicted measurement + validation gate / Mahalanobis distance.

54
New cards

Kalman correction step

Fuse prediction and measurement via the Kalman gain → a-posteriori estimate; uncertainty shrinks.

55
New cards

Kalman gain

Weights prediction vs measurement by their relative covariances; small when measurements are noisy.

56
New cards

Kalman smoothing

Blends measurements with predictions over time; full smoothers (RTS) run backward using future data to refine past estimates.

57
New cards

Kalman assumptions

Linear model and Gaussian noise (the EKF only approximates non-linearities).

58
New cards

Particle filter

Represents the state distribution with weighted samples (Condensation algorithm).

59
New cards

Particle filter advantage 1

Handles non-linear, non-Gaussian models that break the Kalman assumptions.

60
New cards

Particle filter advantage 2

Maintains multi-modal distributions / multiple hypotheses — robust to clutter, ambiguity and occlusion.

61
New cards

Why prediction raises uncertainty

Propagating through an imperfect motion model adds process noise, so covariance grows.

62
New cards

Why correction lowers uncertainty

Fusing an independent measurement adds information, shrinking covariance below either source alone.

63
New cards

Loss function

The differentiable objective optimised during training (drives gradient descent), e.g. cross-entropy, MSE.

64
New cards

Evaluation metric

The (often non-differentiable) measure of real-world quality judged on held-out data, e.g. accuracy, F1, mAP.

65
New cards

Loss vs metric — same example

Regression using MSE (or MAE) as both the training loss and the reported metric.

66
New cards

Loss vs metric — different example

Classification: cross-entropy loss but accuracy/F1 metric; detection: box+class loss but mAP metric.

67
New cards

Why not optimise accuracy directly

Accuracy is step-like / non-differentiable, giving no usable gradients; use a smooth surrogate like cross-entropy.

68
New cards

IoU

Intersection-over-Union = overlap area ÷ union area of predicted and ground-truth boxes; measures localisation.

69
New cards

mAP

Mean Average Precision: averages precision over recall per class at IoU thresholds; the standard detection metric.

70
New cards

Accuracy for object detection

Poor: ignores localisation (IoU), mishandles FP/FN, inflated by class imbalance (background ≫ objects).

71
New cards

Class imbalance problem

A trivial majority-class predictor scores high accuracy while missing the rare class of interest.

72
New cards

90% accuracy trap

With rare objects, a detector that finds little still scores ~90% by ignoring background; use mAP/precision-recall instead.

73
New cards

Oscillating loss — overnight?

No; non-decreasing loss means it isn't learning. Likely causes: learning rate too high, or data/label/architecture problems.

74
New cards

Learning rate too high

Updates overshoot the minimum, causing the loss to bounce/oscillate instead of converging.

75
New cards

Partial annotation problem

Un-annotated objects are treated as background, penalising correct detections — corrupts training. Annotate fewer images fully.

76
New cards

Overfitting

Training loss falls while validation loss rises; fix with early stopping, regularisation, augmentation, or more data.

77
New cards

Self/unsupervised — when not to use 1

When ample high-quality labels exist and supervised learning is simpler and better.

78
New cards

Self/unsupervised — when not to use 2

When the pretext features don't transfer, compute cost is too high, or guaranteed/interpretable performance is needed.

79
New cards

Image correspondence self-supervision 1

Free supervisory signal from known transforms, stereo geometry, or adjacent video frames — no manual labels.

80
New cards

Image correspondence self-supervision 2

Abundant unlabelled data (video, stereo, multi-view).

81
New cards

Image correspondence self-supervision 3

Built-in consistency constraints (photometric, cycle-consistency, epipolar geometry) act as the loss.

82
New cards

CV pipeline template

Acquire → Pre-process → Segment/Detect → Extract features → Classify/Track/Measure → Output.

83
New cards

Viola–Jones / Haar cascade

Fast classical face/object detector using Haar features + cascade of classifiers.

84
New cards

HOG + SVM

Histogram-of-Oriented-Gradients features classified by an SVM; classic pedestrian/object detector.

85
New cards

YOLO / SSD / Faster R-CNN

CNN-based object detectors producing bounding boxes + class labels.

86
New cards

Hough transform

Detects parametric shapes (lines, circles) by voting in parameter space.

87
New cards

Otsu thresholding

Automatically picks a global threshold that separates foreground/background by maximising between-class variance.

88
New cards

Connected components

Labels groups of connected foreground pixels into separate blobs/objects.

89
New cards

Homography

A perspective transform between two planes; used to warp/rectify (e.g. plate correction, AR overlay).

90
New cards

Optical flow (Lucas–Kanade)

Estimates per-point motion between frames; used for tracking.

91
New cards

Pose estimation tools

OpenPose / MediaPipe / PoseNet output body keypoints/skeletons.

92
New cards

Dynamic Time Warping (DTW)

Aligns and compares time sequences of differing speed; used for pose/gesture similarity.

93
New cards

Drone face-tracking pipeline

Face detect (Haar/CNN) → init tracker (KCF/Kalman) → centroid offset from centre → PID drone control.

94
New cards

Licence plate pipeline

Detect plate (edges/YOLO) → perspective-correct (homography) → segment chars → OCR (CNN/Tesseract).

95
New cards

Colour-segmentation pipeline

RGB→HSV → hue threshold → morphological cleanup → connected components/contours → measure or classify.

96
New cards

Mussel/size measurement pipeline

Segment object → fit ellipse / major axis → calibrate pixels→mm with a reference → output size.

97
New cards

Seven-segment reading pipeline

Threshold display → perspective-correct → split digit cells → test which of 7 segments are on → decode.

98
New cards

Why HSV beats RGB outdoors

Hue is largely invariant to brightness; RGB clusters shift with lighting because channels are correlated.

99
New cards

Coasting during dropouts

When no measurement arrives, run prediction only (propagate by motion model) and let uncertainty grow until re-acquisition.

100
New cards