Unit1 Computer Vision Introduction 3
Unit1 Computer Vision Introduction 3
UNIT I · I NTRODUCTION
UN IT I | CO MPUT ER V IS IO N 2
Three Related — But Different — Fields
Each field moves information in a different direction between the real world and its description.
UN IT I | CO MPUT ER V IS IO N 3
Image Processing
UN IT I | CO MPUT ER V IS IO N 4
Image Processing
I n Prac tic e — A Real Exam pl e
Technique: Bilateral filtering for denoising, adaptive thresholding for binarization, and an automatic skew-angle correction — the same image throughout,
no content was interpreted.
UN IT I | CO MPUT ER V IS IO N 5
Computer Vision
● The science of enabling machines to interpret and understand visual information, the way
humans do
UN IT I | CO MPUT ER V IS IO N 6
Computer Vision
I n Prac tic e — A Real Exam pl e
Technique: A full vision pipeline (edge detection, segmentation, shape classification) turns pixels into labels — exactly the image-to-description
transformation that defines computer vision.
UN IT I | CO MPUT ER V IS IO N 7
Computer Graphics
UN IT I | CO MPUT ER V IS IO N 8
Computer Graphics
I n Prac tic e — A Real Exam pl e
Rendered Output
Technique: A 3D geometric model is projected through a virtual camera onto a 2D plane and rasterized into pixels — the reverse of what computer vision
does.
UN IT I | CO MPUT ER V IS IO N 9
Vision and Graphics: Two Directions of One Problem
Computer Vision
Computer Graphics
Description /
Rendered Image
3D Model
Image Processing (not shown) maps an image to another image — no meaning is extracted along the way.
UN IT I | CO MPUT ER V IS IO N 10
S E CT I ON 2 . 1 — S E N SI N G L I GH T
point source • surface normal (N) • angle θ • radiance / irradiance • optical axis (Z)
lens = center of projection • CCD array of discrete cells • each cell integrates charge • circle of confusion (blur)
A/D conversion • frame buffer = shared image store • read by vision algorithms • written to graphic display
iris controls pupil size • retina: rods (b/w) + cones (color) • fovea — dense color receptors • ~100 million receptor cells/eye
UN IT I | CO MPUT ER V IS IO N 12
Low-Level Vision
I n Prac tic e — A Real Exam pl e
Technique: Gaussian smoothing removes sensor noise, then a Canny edge detector finds intensity discontinuities — purely local, pixel-level operations
with no notion of ‘shapes’ yet.
UN IT I | CO MPUT ER V IS IO N 13
Mid-Level Vision
UN IT I | CO MPUT ER V IS IO N 14
Mid-Level Vision
I n Prac tic e — A Real Exam pl e
Technique: Contours are traced around each connected region, grouping low-level pixels into coherent boundaries — structured, but the regions still carry
no semantic label.
UN IT I | CO MPUT ER V IS IO N 15
High-Level Vision
● Output: labels, descriptions, and decisions — what is in the scene, and what
it means
UN IT I | CO MPUT ER V IS IO N 16
High-Level Vision
I n Prac tic e — A Real Exam pl e
Technique: Each region's contour is matched against simple shape models (vertex count via polygon approximation) to assign a label — the step that
finally turns structure into meaning.
UN IT I | CO MPUT ER V IS IO N 17
The Vision Hierarchy at a Glance
Low-Level Raw pixels Filtering, edge detection, denoising Processed image / edge map
UN IT I | CO MPUT ER V IS IO N 18
COMPUTER VISION APPLICATIONS
Where vision systems are used today
A Wide Application Landscape
UN IT I | CO MPUT ER V IS IO N 20
Document Image Analysis
S yst em Block D iagr am
OCR
Document Image Pre-processing Layout Analysis Structured Output
(Character
(Scan / Photo) (Denoise, Binarize) (Text / Table / Image) (Text, Tables)
Recognition)
Goal: convert an unstructured visual document into structured, searchable digital text.
UN IT I | CO MPUT ER V IS IO N 21
Document Image Analysis
Real -Time D emonstrat ive Prototy pe
UN IT I | CO MPUT ER V IS IO N 22
Biometrics
S yst em Block D iagr am
UN IT I | CO MPUT ER V IS IO N 23
Biometrics
Real -Time D emonstrat ive Prototy pe
UN IT I | CO MPUT ER V IS IO N 24
Object Recognition
S yst em Block D iagr am
UN IT I | CO MPUT ER V IS IO N 25
Object Recognition
Real -Time D emonstrat ive Prototy pe
UN IT I | CO MPUT ER V IS IO N 26
Tracking
S yst em Block D iagr am
Goal: maintain a consistent identity for each object as it moves across frames.
UN IT I | CO MPUT ER V IS IO N 27
Tracking
Real -Time D emonstrat ive Prototy pe
Classroom demo tip: Have two or three students cross paths in front of the camera to show ID persistence through occlusion.
UN IT I | CO MPUT ER V IS IO N 28
How Tracking Works
Frame -by-Frame: Detect → Predict → Associat e → Persist
ID 1 ID 1
ID 1 + ID 2 overlapping
ID 2 ID 2
Why IDs survive the crossing: When detections overlap in Frame N+1, the Kalman filter predicts where each tracked object should
be based on its prior motion. Data association then matches new detections to the closest prediction — not just the closest pixel —
so ID 1 and ID 2 separate correctly in Frame N+2 instead of swapping.
U NI T I | C O MPU T E R V ISIO N 27
Inside Motion Prediction
The Kalm an Filter's Predict → Cor rect Cycle
t=2 t=5
t=1 t=4 (occluded)
t=3
U NI T I | C O MPU T E R V ISIO N 28
Tracking in Action
Live Dem o Stor yboard — ID Pers istence Throug h Occlusion
Classroom demo tip: Pause the video at Step 2 and ask students to guess which person is ID 1 — then resume to reveal the filter’s answer. It
makes the predict/correct cycle tangible.
U NI T I | C O MPU T E R V ISIO N 29
Medical Image Analysis
S yst em Block D iagr am
UN IT I | CO MPUT ER V IS IO N 29
Medical Image Analysis
Real -Time D emonstrat ive Prototy pe
Classroom demo tip: Use public sample images only — never real patient data without consent and ethical clearance.
UN IT I | CO MPUT ER V IS IO N 30
Medical Image Analysis
Why This Application I s Held to a Higher S tandar d
High stakes, asymmetric cost Human-in-the-loop, always Same pipeline, harder data
A missed tumor (false negative) is far costlier than a The model flags and prioritizes; a radiologist or Acquire → pre-process → segment → classify — the
false alarm — models are tuned and evaluated clinician makes the final call. It assists — it doesn’t same CV pipeline as Unit I, applied to noisier, higher-
accordingly. diagnose alone. resolution, 3D-aware data.
U NI T I | C O MPU T E R V ISIO N 29
Skin Cancer Detection
Derm oscopic I mage → B enign / Malignant Classification
U NI T I | C O MPU T E R V ISIO N 30
Brain MRI Tumor Detection
Real T1-CE MR I Slice → Tumor L ocaliz at ion → Seg mentation
U NI T I | C O MPU T E R V ISIO N 31
Alzheimer's Disease Detection
MRI Scan → Br ain At rophy Patter n → Disease S tag e
U NI T I | C O MPU T E R V ISIO N 32
One Pipeline, Three Diagnoses
Unified View + Classroom -Safe Demo Set up
Brain Tumor MRI slice (axial) Tumor mass + boundary Location, size, type
Classroom demo tip: Use public, de-identified datasets only (e.g., ISIC for skin lesions, public Kaggle/ADNI-derived MRI sets) — never real
patient data without consent and ethical clearance.
U NI T I | C O MPU T E R V ISIO N 33
Content-Based Image Retrieval
S yst em Block D iagr am
Goal: retrieve visually similar images from a large database without relying on text tags.
UN IT I | CO MPUT ER V IS IO N 31
Content-Based Image Retrieval
Real -Time D emonstrat ive Prototy pe
Classroom demo tip: Pre-index a folder of 30–50 sample product photos before class for a fast, reliable demo.
UN IT I | CO MPUT ER V IS IO N 32
Video Data Processing
S yst em Block D iagr am
Goal: extract structure and meaning from video by exploiting information across time.
UN IT I | CO MPUT ER V IS IO N 33
Video Data Processing
Real -Time D emonstrat ive Prototy pe
Classroom demo tip: Use a 3–5 minute sample clip so the full pipeline completes within the class period.
UN IT I | CO MPUT ER V IS IO N 34
Multimedia
S yst em Block D iagr am
Goal: combine vision with other modalities to produce richer, joint understanding.
UN IT I | CO MPUT ER V IS IO N 35
Multimedia
Real -Time D emonstrat ive Prototy pe
Classroom demo tip: A short clip with clear speech and an open-source speech-to-text library works best live.
UN IT I | CO MPUT ER V IS IO N 36
Virtual Reality and Augmented Reality
S yst em Block D iagr am
Goal: align rendered content with the user's head pose (VR) or the real world (AR) in real time.
UN IT I | CO MPUT ER V IS IO N 37
Virtual Reality and Augmented Reality
Real -Time D emonstrat ive Prototy pe
Classroom demo tip: Most modern phones support this out of the box via free AR sample apps — great for a quick live demo.
UN IT I | CO MPUT ER V IS IO N 38
UNIT I — COMPUTER VISION
Recap
Image Processing · Computer Vision · Computer Graphics · Vision Hierarchy · CV Applications
01 02 03 04 05
Image Processing · Light, cameras, sensors, Low → Mid → High-Level From documents to What exam questions
Computer Vision · the frame buffer processing VR/AR look like
Computer Graphics
3/15
Three Related — But Different — Fields
Each moves information in a different direction between the world and its description
• Operates on raw pixel data • Machines interpret visual info • Inverse of computer vision
• Goal: improve quality, NOT • like humans do • Input: 3D model / scene desc.
interpret • Output: meaningful description, • Core to gaming, animation,
• Noise removal, filtering, • decision, or action • simulation, VR
• enhancement, compression • Draws on AI, maths,
• neuroscience, physics
Human Eye
Pixel value ≈ f(surface reflectance, angle θ, illumination)
6/15
The Vision Hierarchy
Every CV system passes through these three stages, in order
Processed image / Edge map Regions, contours, feature points Labels, decisions, descriptions
8/15
A Wide Application Landscape
All 9 domains share the same CV pipeline — what differs is the domain's goal and data
Medical Image
Tracking Analysis CBIR
Consistent ID across frames Assist Diagnosis Retrieve by Visual Content
Video Data
Processing Multimedia VR / AR
Meaning across Time Cross-modal Understanding Align render to World/Pose
Scan/Photo → Pre-process → Layout Analysis → Capture → Detect & Align → Feature Extract Image → CNN Backbone → Region Proposal →
OCR → Structured Output (Embedding) → Match → Decision Classify + BBox → Labeled Output
• Goal: unstructured → searchable • Verification (1:1) vs Identification (1:N) • Localize AND classify each object
digital text • Modalities: Face, Fingerprint, Iris, instance
• Techniques: bilateral filtering, deskew, Voice, Gait, Signature • YOLO processes entire image in one
adaptive threshold, OCR • Demo: webcam → auto attendance pass
• Demo: photograph a printed page → dashboard • Demo: live webcam with bounding
live editable text boxes + FPS counter
Query Image → Embedding → Raw Video → Frame Sampling → Video + Audio + Text → Per- Camera + IMU → SLAM (Pose
Nearest-Neighbour Search → Temporal Feature Extraction → Modality Extract → Fusion Layer → Tracking) → Scene Understanding →
Ranking → Top-K Images Event Detection → Summary Cross-modal Reasoning → Output Render Engine → HMD/Screen
• Retrieves by visual • Exploits information • Combines vision with • VR: align render to head
content — no text tags ACROSS TIME (not single audio & text for richer pose — fully virtual
needed frames) understanding
• AR: overlay digital
• Deep embedding • Shot-boundary • Joint embedding space content anchored to real
compared against pre- detection + action- across modalities (e.g. world
indexed database recognition model CLIP)
• SLAM = Simultaneous
• Demo: snap a product → • Demo: 3–5 min clip → • Demo: video + speech → Localization And
Top-5 similar catalog auto-compiled highlight synchronized auto- Mapping
items reel captions
13/15
Unit I — Must-Know Checklist
1 Direction of Information Flow 2 Vision Hierarchy — Key Distinctions
IP: image→image (no meaning extracted) Low-Level: pixel ops, NO semantic meaning
CV: image→description (meaning extracted) Mid-Level: grouping → regions/features, still NO labels
CG: description→image (rendering / synthesis) High-Level: recognition → labels & decisions (meaning!)
Acquire → Pre-process → Segment/Detect → Classify → Output PREDICT: estimate next position from prior velocity
What changes: the input modality and the domain goal CORRECT: blend new detection with prediction
IDs survive occlusion because of prediction, not pixel proximity
Asymmetric cost: false-negative >> false-positive Verification (1:1): 'Are you who you claim to be?' — one comparison
Human-in-the-loop always; model assists, clinician decides Identification (1:N): 'Who are you?' — N comparisons against full DB
U-Net for segmentation; segmentation > classification for surgery
UNIT I · COMPUTER VISION · [Link] CSE (AI) 14/15
That's Unit I
Three fields · Imaging foundations · Vision hierarchy · 9 application domains
15/15
Unit I — Key Takeaways
Image Processing, Computer Vision, and Computer Graphics move information in different directions
Computer Vision spans low-, mid-, and high-level stages, from raw pixels to meaning
Applications range from document analysis and biometrics to immersive AR/VR experiences
UN IT I | CO MPUT ER V IS IO N 39
Questions?
Next: Unit II — Image Formation Models