MCS4304 · Topic 1Introduction to Computer Vision
1
Introduction to Computer VisionCV vs IP vs CG · pipeline · images · resolutions Practise · 14 Qs MCQ · 14

Exam card

  • Computer Vision (CV) = enabling computers to extract information from images & video — recognising objects, detecting people, reading text, identifying faces.
  • Human vs computer vision: human vision is a biological perception system; CV computationally reproduces useful aspects of that perception.
  • Three related fields: Image Processing is image → image (enhance/filter/restore), Computer Graphics is model → image (render/animate), and CV is image → meaning (detect/recognise/segment/track).
  • CV pipeline: Capture → Pre-processing → Feature representation → Analysis → Decision (raw pixels in, a decision out).
  • Digital image = a 2-D function I(x, y); in a digital image x, y and the intensity I are all finite & discrete — a finite grid of pixels, each with a location and a grey/intensity value.
  • Five resolutions: pixel, spatial, spectral, temporal, radiometric. Colour models: RGB (additive), CMY (subtractive), HSI/HSV (closer to human description).

Key diagram

humanbrain“cat”PCalgorithm“cat”CV reproduces useful parts of human perception

Key terms

computer visionimage processing (image → image)computer graphics (model → image)image → meaningCV pipelineI(x, y)finite & discretepixelgrey levelpixel / spatial / spectral / temporal / radiometric resolutionRGB (additive)CMY (subtractive)HSI / HSV

What this topic covers

  1. What is computer vision? (and how does it relate to human vision)
  2. CV vs Image Processing vs Computer Graphics
  3. What is a digital image — pixels & grey levels
  4. The five resolutions & colour models

Deep summary

Everything here follows the Topic 1 slides; each part shows its slide numbers. Parts marked added are study aids we wrote, not lecture content.

1 · The pipeline on one picture Topic 1 · slides 3–4, 8

Capturecamera imagePre-processingnoise removedFeaturesedgescarcarAnalysisdetect “car”decision2 cars aheadDecision2 cars ahead
swipe to see the whole diagram

Slide 8’s five stages on the kind of street photo shown on slide 4. Capture gets the pixels from a sensor or camera. Pre-processing removes noise (the white specks). Feature representation keeps what matters, such as edges and colours. Analysis classifies and detects (“car”). The decision is the output.

The “2 cars ahead” decision is an example we chose; the slide names the stage only.

2 · Compare: two lists of steps, and where image processing sits Topic 1 · slides 6, 8, 32

Slide 8 · CV pipelineSlide 32 · fundamental steps of DIPCapturePre-processingFeature representationAnalysisDecisionImage capturingPreprocessingFeature extractingRecognitionDecision has no match on slide 32IP tasks (slide 6)
swipe to see the whole diagram

The lecture gives the steps twice. Slide 8 has five stages for a CV pipeline; slide 32 has four fundamental steps of digital image processing. They line up one to one, and only slide 8 adds a final decision.

Why it matters: the IP tasks on slide 6 (filtering, noise removal, contrast enhancement, restoration) are exactly what the pre-processing stage does. So CV uses image processing inside its pipeline, then goes further to extract meaning.

3 · Worked exercise: read a grey-level grid Topic 1 · slide 17

1020304020508060308015070406070100width = 4 pixelsheight = 44 × 4 = 16 pixelsbrightest: 150row 3, column 3darkest: 10row 1, column 1

Slide 17 asks five questions about this grid. Each number is a pixel’s grey level (intensity), so a bigger number means brighter.

  1. Width = 4 (pixels per row)
  2. Height = 4 (rows)
  3. Pixels = 4 × 4 = 16
  4. Brightest = 150 (row 3, column 3)
  5. Darkest = 10 (row 1, column 1)

This is what slide 13 means by “a finite number of components, each with a particular location and value”.

4 · Grey levels: how many shades? Topic 1 · slides 15–16, 28

2 levels4 levels8 levels16 levels1 bit2 bits3 bits4 bits… up to 256 levels (8 bits), as on slide 15Bartline (1920s): 5 levels, later 15 (slide 28)

Slide 15 shows the same black-to-white ramp with 2, 4, 8 … 256 levels. Slide 16 shows a face with fewer and fewer levels: with very few levels, smooth skin turns into flat patches, and at 2 levels the face is just black and white.

History link (slide 28): the first newspaper picture system, the Bartline cable (1920s, London → New York), could send only 5 intensity levels, later 15.

added The bits column: n bits give 2n levels, so 8 bits = 256.

5 · Resolution: pixel vs spatial Topic 1 · slides 18–20

pixel resolution (slide 19)spatial resolution (slide 20)16 × 164 × 4fine detailblurred

Slide 18 lists five resolutions; slides 19–20 show two of them. Pixel resolution is how many pixels the image has: the same car with fewer pixels turns into blocks. Spatial resolution is how much fine detail the image shows: the same face can have the same pixel count but look blurred.

Slide 18 also names spectral, temporal and radiometric resolution without examples; in short: bands of colour captured, frames over time, and grey levels per pixel (as in section 4).

6 · Colour models: adding light vs adding ink Topic 1 · slides 21–26

RGB · additive (slide 23)CMY · subtractive (slide 24)R+G = yellow · all three = whiteC+M = blue · all three = blackEach ink absorbs one light (slide 25)inkabsorbsreflectscyanredgreen + bluemagentagreenred + blueyellowbluered + greenno ink = white · all three inks = black
swipe to see the whole diagram

Slide 21 splits colour models into additive and subtractive. RGB (slide 23) adds coloured light: red + green = yellow, and all three give white. CMY (slides 24–25) adds ink, and each ink absorbs one light: cyan absorbs red, magenta absorbs green, yellow absorbs blue. More ink means less light, and all three give black.

HSV (slide 26) is drawn as a cone: hue is the angle around it, saturation the distance from the centre, value the height.

7 · Where image processing came from, and where it is used Topic 1 · slides 9, 27–31

1920sBartline cablenewspapers · London → New York1960s · 1964first capable computersRanger 7 images corrected1970smedical imagingCAT / CTslides 28–30
swipe to see the whole diagram

Origins: newspaper pictures over the Bartline cable (1920s) → the first computers able to do real image processing (1960s; in 1964 Ranger 7’s images were corrected for distortion) → medical use in the 1970s (CAT / CT).

Two aims of IP (slide 27): improve pictures for human interpretation, and process image data for storage, transmission and machine perception.

Fields (slide 31): character recognition · machine vision for assembly and inspection · military reconnaissance · fingerprints · satellite images for weather · X-ray and gamma-ray imaging. CV applications (slide 9): smartphone camera, photo search, medical diagnosis, robotics, autonomous vehicles, satellite imagery.

8 · Exam traps Topic 1 · slides 6–8, 17, 19–20, 21–25 added

  • IP vs CV: IP outputs an image; CV outputs information (slide 6). Noise removal alone is IP, not CV.
  • Graphics is the reverse: it creates images from models (slide 7); it doesn’t read them.
  • Brightest = biggest number in a grey-level grid (slide 17), not the pixel in the middle.
  • Pixel ≠ spatial resolution: more pixels doesn’t always mean more detail (slides 19–20).
  • RGB adds light, CMY absorbs it: all three RGB = white, all three CMY inks = black (slides 23–25).

9 · Quick check Topic 1 · slides 6, 8, 17, 25 added

Q1. Which stage of the pipeline would remove the white specks in a photo, and is that IP or CV?
Pre-processing (slide 8). Removing noise is an image-processing task (slide 6), used inside the CV pipeline.
Q2. A 3 × 5 grey-level image: how many pixels? If its values are 12–240, which is the brightest?
3 × 5 = 15 pixels. The brightest pixel is the one with value 240 (slide 17 logic).
Q3. Magenta ink on white paper: which light does it absorb, and which does it reflect?
It absorbs green and reflects red + blue, which we see as magenta (slide 25).

Exam questions · 14 Practise these 14

Q1Define computer vision and give examples of tasks it performs. How does it relate to human vision?
Computer vision is the field concerned with enabling computers to extract information from images and video. Example tasks: recognising objects, detecting people, reading text and identifying faces. It relates to human vision as follows — human vision is a biological perception system, and CV attempts to computationally reproduce useful aspects of that perception.
Q2Distinguish computer vision, image processing and computer graphics.
Image Processing manipulates/transforms images to improve or restore them (filtering, noise removal, contrast enhancement, restoration) — image → image. Computer Graphics generates images and visual content from 2D/3D models and scenes (rendering, animation, visualisation) — model → image. Computer Vision understands and interprets images, extracting meaningful information (detection, recognition, segmentation, tracking) — image → meaning. CV is the "understanding" field and is essentially the inverse of graphics.
Q3What is a digital image? Explain pixels and grey levels, and the stages of the CV pipeline.
An image is a 2-D function I(x, y). In a digital image x, y and the intensity I are all finite, discrete quantities — a finite number of components, each with a location and a value. Each element is a pixel (picture element); a grey level is its intensity/brightness value. The CV pipeline runs Capture → Pre-processing → Feature representation → Analysis → Decision — raw pixels in, a decision out.
Q4Name the five types of image resolution and the main colour models.
The five resolutions are pixel (total pixels/dimensions), spatial (detail per area), spectral (bands/colours captured), temporal (frames over time) and radiometric (bits per intensity → number of grey levels). Colour models: RGB — additive (mixing light); CMY — subtractive (mixing inks/pigments); and HSI/HSV (hue, saturation, intensity/value) which is closer to how humans describe colour.
Q5Apply · An automatic number-plate reader at a toll gate: describe what happens at each of the five CV pipeline stages.
CapturecameraPre-procdenoiseFeaturesplate+edgesAnalysisCAB-1234Decisionopen gatetoll gate: raw pixels in → decision out
Topic 1 slide 8 Capture: the camera takes a picture of the car. Pre-processing: remove noise and fix the contrast (night, rain). Feature representation: find the plate region and the edges and shapes of each character. Analysis: recognise the characters ("CAB-1234"). Decision: look up the plate and open the gate or charge the toll. Exam tip: name all five stages in order, then give one line each for this system.
Q6Classify · Is each task Image Processing (IP), Computer Vision (CV) or Computer Graphics (CG)? (a) sharpening a blurred photo (b) a phone unlocking with your face (c) rendering a 3-D game scene (d) removing noise from an X-ray (e) counting cars in a traffic video.
imageIPimagea · dimageCVmeaningb · emodelCGimagec
Topic 1 slides 6–7 (a) IP: image → better image. (b) CV: image → identity. (c) CG: model → image. (d) IP: image → cleaner image. (e) CV: video → a number. The rule: look at the output. An image means IP, information means CV, and making an image from a model means CG.
Q7Calculate · An image is 640 × 480 pixels with 8 bits per pixel. (a) How many pixels? (b) How many grey levels? (c) How much storage, uncompressed?
640 × 480= 307,200 px× 8 bits≈ 300 KB2⁸ = 256 grey levels
Topic 1 slides 13–15, 18 (a) 640 × 480 = 307,200 pixels. (b) 28 = 256 grey levels (0 = black … 255 = white). (c) 307,200 × 8 bits = 307,200 bytes ≈ 300 KB. Show the working: pixels × bits ÷ 8 = bytes. added The storage part goes one step beyond the slides.
Q8Calculate · How many bits per pixel are needed for (a) 16 grey levels (b) 2 grey levels? What do you see when a face image drops from 256 levels to 4?
2 levels · 1 bit4 levels · 2 bits16 levels · 4 bits
Topic 1 slides 15–16 (a) 24 = 16, so 4 bits. (b) 21 = 2, so 1 bit (a binary, black-and-white image). With 4 levels, smooth shading turns into flat patches with visible steps (false contours), as on slide 16. Fewer levels means less smooth brightness, not fewer pixels.
Q9Explain · Two images are both 1000 × 1000 pixels, but one shows much more detail. How is this possible?
sharpblurredsamepixelspixel res. equal · spatial res. differs
Topic 1 slides 18–20 They have the same pixel resolution (the pixel count) but different spatial resolution (how much fine detail per area is actually captured). Blur, a poor lens, focus or up-scaling a small image all give many pixels with little detail. Trap: more pixels ≠ more detail.
Q10Match · Match each to its type of resolution: (a) a satellite sensor capturing 7 bands (b) CCTV recording 30 frames per second (c) a 12-bit medical X-ray (d) a 12-megapixel phone camera (e) a sharp vs a blurred face of the same size.
a7 bandsspectralb30 fpstemporalc12-bitradiometricd12 MPpixelesharp/blurspatial
Topic 1 slide 18 (a) spectral: how many bands or colours. (b) temporal: frames over time. (c) radiometric: bits per pixel, so 212 = 4,096 grey levels. (d) pixel: the total pixel count. (e) spatial: detail per area.
Q11Colour · What colour do you get? (a) RGB light: red + green (b) red + blue (c) green + blue (d) CMY inks: cyan + yellow (e) all three CMY inks.
RGB light: adds → whiteCMY ink: absorbs → black
Topic 1 slides 21–25 (a) yellow (b) magenta (c) cyan: RGB is additive, so light is added. (d) green: cyan absorbs red and yellow absorbs blue, so only green is reflected. (e) black: all light is absorbed. CMY is subtractive: ink takes light away.
Q12Explain · Why do screens use RGB but printers use CMY?
screenemitspaper + inkwhiteR+Badditivesubtractive
Topic 1 slides 21–25 A screen emits light, so colours are made by adding red, green and blue light (additive; all three = white). Paper reflects light, so colours are made by inks that absorb (subtract) parts of white light (subtractive; all three = black). added Real printers add a separate black ink (K → CMYK), because C+M+Y gives a muddy black. The slides show CMY only.
Q13Describe · Describe the three components of the HSV model using its cone, and give one reason to prefer HSV over RGB.
SHVH = angle (which colour)S = distance (purity)V = height (brightness)black at the tip
Topic 1 slide 26 Hue is the angle around the cone (which colour: red, green …). Saturation is the distance from the centre (how pure or vivid; centre = grey). Value is the height (how bright; bottom = black). Why: it is closer to how people describe colour. added Example: to find "all red objects" you can select by hue alone, so shadows and highlights don't break it. In RGB, brightness is mixed into all three numbers.
Q14Outline · Outline three milestones in the history of image processing, and state the two main aims of image processing.
1920sBartline 5→15 levels1964Ranger 7 correction1970sCAT / CTaims: human interpretation · storage/transmission/machine perception
Topic 1 slides 27–28, 30 1920s: the Bartline cable sent newspaper pictures London → New York, with only 5 grey levels, later 15. 1964: Ranger 7 Moon images corrected for distortion by computer (the first real computer image processing). 1970s: medical imaging, CAT/CT. Aims (slide 27): ① improve pictures for human interpretation; ② process image data for storage, transmission and machine perception.

Quick MCQs · 14 MCQs in Practise

Not the exam format: quick checks that you understood the topic. Choose 1 or all that apply, then Check.