Image and Video Processing (SD-702-B) Important Questions
By the Paperwala team · · Exam on Fri 18 Dec
These are the 10 Image and Video Processing (SD-702-B) topics we chose from the RGPV syllabus for RGPV B.Tech semester 7. No past paper of this subject is on this site yet, so we could not count repeats.
Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these
10 Image and Video Processing topics from the syllabus
Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.
Image and Video Processing important questions with answers
Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The topics are chosen from the syllabus.
Q1. Image representation: numerical representation, sampling and quantization
Short answer. A digital image is a grid of pixels, each holding a number for brightness or colour. It is made by sampling a scene into a grid and quantizing each sample to one of a fixed set of levels.
From the syllabus · Unit 1
From the papers
“Image representation and analysis, Numerical representation of images” (Syllabus)
Write these points
Numerical representation
A greyscale image is a matrix f(x, y): x is the column, y is the row.
8-bit pixels take 2^8 = 256 levels, 0 black and 255 white.
A colour image has three matrices (R, G, B), so each pixel is three numbers.
A video is a sequence of such images, called frames.
Sampling and quantization
Sampling sets the spatial resolution: how many pixels across and down.
Quantization sets the grey-level resolution: how many levels each pixel can take.
Too few samples gives blocky images. Too few levels gives false contours, visible bands.
Image analysis
Analysis reads numbers from the image: sizes, counts, shapes, positions.
Size of one HD frame (from calc.py).
1920 x 1080 pixels x 3 colours x 1 byte = 6,220,800 bytes, about 5.93 MB.
At 3 bits per pixel there would be only 2^3 = 8 grey levels. Smooth skies then show bands.
Real-life example
A cross-stitch pattern is a grid where each square has one thread colour. From far away it looks like a picture. Up close it is only numbered squares. A digital image is the same: a grid of numbered squares the computer can count and change.
Difference between sampling and quantization
Point
Sampling
Quantization
Same or opposite
Decides
Number of pixels
Number of levels per pixel
Opposite
Needed to make a digital image
Yes
Yes
Same
Too little gives
Blocky image
Bands, false contours
Opposite
Affects file size
Yes
Yes
Same
Axis
Space (x, y)
Brightness
Opposite
Exam tip. Write the image as f(x, y) and show a small matrix. Define sampling and quantization. Add one size calculation.
Q2. Image enhancement: point operations and histogram equalization
Short answer.Image enhancement makes an image easier to see or to process, mainly by changing pixel values. Point operations such as negative, log and gamma change each pixel alone, while histogram equalization spreads the grey levels to raise contrast.
New levels: 7 x 4/16 = 1.75 gives 2; 7 x 11/16 = 4.81 gives 5; 7 x 15/16 = 6.56 gives 7; 4 maps to 7.
Levels 1 to 4 now spread to 2 to 7. Point examples: negative of 100 is 155; gamma 0.5 on 64 gives 127.7.
Real-life example
A photo taken in a dim room looks grey and flat. Phone editors have a button that makes it pop. Behind that button, the grey levels are stretched across the full range. Dark parts get darker and bright parts get brighter.
Difference between gamma correction and histogram equalization
Point
Gamma
Equalization
Same or opposite
Mapping
Fixed formula
Built from the image's histogram
Opposite
Changes each pixel's value
Yes
Yes
Same
Needs a chosen parameter
Yes, gamma
No
Opposite
Adapts to the image
No
Yes
Opposite
Used for enhancement
Yes
Yes
Same
Exam tip. List four point operations with formulas. Write the equalization steps and work a small table.
Q3. Image processing: smoothing and sharpening filters
Short answer.Spatial filtering processes an image by sliding a small kernel over it and replacing each pixel by a weighted sum of its neighbours. Smoothing filters reduce noise while sharpening filters bring out edges and fine detail.
Sharpened centre = 100 - (-360) = 460, then clipped to 255: the spot stands out more.
Real-life example
A crowd photo with tiny dust specks is cleaned by replacing each speck with what its neighbours look like. That is smoothing. Making text on a blurred signboard readable needs the opposite: boost the change at each edge. That is sharpening.
Difference between mean filter and median filter
Point
Mean
Median
Same or opposite
Output
Average
Middle value
Opposite
Uses a 3 x 3 window
Yes
Yes
Same
Salt and pepper noise
Spreads it
Removes it
Opposite
Keeps edges
Less
More
Opposite
Smoothing filter
Yes
Yes
Same
Exam tip. Show the kernel sliding steps. Name three smoothing filters and two sharpening methods. Work mean, median and Laplacian on one patch.
Q4. Image segmentation: breaking an image into parts
Short answer.Image segmentation breaks an image into parts, usually objects and background. Methods include thresholding, region growing, clustering and edge-based methods.
From the syllabus · Unit 2
From the papers
“Image Segmentation Object detection, breaking image into parts” (Syllabus)
Write these points
Thresholding
Pixel above t is object, below is background.
Otsu's method picks t that makes the two classes most separate (largest between-class variance).
Adaptive thresholds use a local t for uneven light.
Other methods
Region growing: start from seed pixels and add similar neighbours.
Split and merge: split unlike regions, merge like ones.
Clustering (k-means): group pixels by colour.
Edge-based: find boundaries, then close them into regions.
Deep learning: networks label each pixel.
Otsu on a small histogram (from calc.py).
Counts at levels 0 to 7: 2, 6, 4, 0, 0, 3, 7, 2.
Best t = 3, between-class variance 5.641.
Class means: 1.17 (background) and 5.92 (object). Pixels at 3 and above are object.
Real-life example
To count rice grains on a dark plate, a lab photographs the plate and marks every bright pixel as grain. Each connected bright patch is one grain. The count and size of grains come from that split. That split is segmentation.
Difference between thresholding and region growing
Point
Thresholding
Region growing
Same or opposite
Rule
Value above or below t
Similar to the growing region
Opposite
Splits the image into parts
Yes
Yes
Same
Needs seeds
No
Yes
Opposite
Uses position of pixels
No
Yes
Opposite
Gives a mask
Yes
Yes
Same
Exam tip. Define segmentation. Explain thresholding with Otsu and list four other methods. Draw the histogram with t.
Short answer.Edges are places where brightness changes sharply, found by detectors such as Sobel and Canny. Contours are the closed outlines that edges form around objects.
From the syllabus · Unit 2
From the papers
“finding contours and edges of various objects in image” (Syllabus)
Write these points
Gradient operators
Sobel: two 3 x 3 kernels give Gx and Gy.
Magnitude = sqrt(Gx^2 + Gy^2). Direction = atan(Gy / Gx).
Prewitt: like Sobel without the weight 2.
Canny edge detector
Smooth with a Gaussian.
Find gradient magnitude and direction.
Non-maximum suppression: keep only thin ridge pixels.
Double threshold: strong and weak edges.
Hysteresis: keep weak edges joined to strong ones.
Contours
Trace the boundary of each connected region.
Measure area, perimeter, bounding box. Approximate by polygons to find shapes.
Magnitude 280, direction 0 degrees: the change runs left to right, so the edge is vertical.
Real-life example
When a child traces a cartoon in a colouring book, the pen follows the black outlines. Those outlines are where colour changes suddenly. A computer finds them with gradients, then joins them into closed shapes. That gives contours.
Canny edge detector
Difference between Sobel and Canny
Point
Sobel
Canny
Same or opposite
Steps
One gradient step
Five steps
Opposite
Uses image gradients
Yes
Yes
Same
Edge thickness
Thick
Thin, one pixel
Opposite
Noise handling
Weak
Gaussian smoothing first
Opposite
Finds edges
Yes
Yes
Same
Exam tip. Give the Sobel kernels and formulas. List the five Canny steps. Work Gx on a small patch and add how contours are found.
Short answer.Background subtraction finds moving objects in video by comparing each frame with a model of the empty scene. Pixels that differ enough from the background are marked as foreground.
From the syllabus · Unit 2
From the papers
“Background subtraction for video.” (Syllabus)
Write these points
Methods
Frame differencing: compare with the previous frame.
Running average: background = (1 - a) background + a frame. Adapts slowly to light changes.
Gaussian mixture model (MOG): each pixel has several Gaussians, so waving trees and water are handled.
Median of recent frames.
Steps
Build the background model.
For each new frame, compute the difference.
Threshold to get a foreground mask.
Clean the mask with morphology. Find blobs.
Update the background.
Problems
Shadows, sudden light change, objects that stop moving, camera shake.
One pixel over four frames (from calc.py, a = 0.05, threshold 30).
Frames 100, 102: difference small, background stays about 100.
Frame 101: back to background. The model now reads 103.94.
Real-life example
A security guard knows what the empty lobby looks like. Anything new, a person or a bag, catches his eye at once. Background subtraction gives a camera the same memory of the empty scene.
Difference between frame differencing and running average
Point
Frame differencing
Running average
Same or opposite
Compares with
Previous frame
Learned background
Opposite
Finds moving pixels
Yes
Yes
Same
Detects a slow object
Poorly
Better
Opposite
Memory needed
One frame
One model image
Opposite
Needs a threshold
Yes
Yes
Same
Exam tip. Define background subtraction. List four methods and the five steps. Work the running average on one pixel.
Short answer.Optical flow is the apparent motion of each pixel between two frames, given as a vector (u, v). The Lucas-Kanade method solves for this vector in small windows and is used to track a moving car.
From the syllabus · Unit 3
From the papers
“tracking a moving car using optical flow” (Syllabus)
Write these points
Brightness constancy
A point keeps its brightness as it moves: Ix u + Iy v + It = 0.
Ix, Iy are image gradients. It is the change in time.
One equation, two unknowns, so more pixels are needed.
Lucas-Kanade
Assume all pixels in a small window move the same way.
Solve the window's equations by least squares: [sum Ix^2, sum IxIy; sum IxIy, sum Iy^2] [u; v] = -[sum IxIt; sum IyIt].
Works for small motion. Image pyramids handle bigger motion.
Tracking a moving car
Detect corners on the car.
Compute flow for each corner.
Average the vectors to get the car's motion.
Convert pixels per frame to metres per second with the scene scale.
Solving one window and the car's speed (from calc.py).
sum Ix^2 = 20, sum Iy^2 = 10, sum IxIy = 0, sum IxIt = 40, sum IyIt = -10.
u = -40 / 20 = -2, v = 10 / 10 = 1: the window moved 2 px left and 1 px down.
Car: 12 px per frame x 0.05 m per px x 30 frames per second = 18 m/s = 64.8 km/h.
Real-life example
Look out of a moving train window: nearby poles race past while far hills drift slowly. That pattern of motion is optical flow. Traffic cameras read the same pattern to measure each car's speed.
Difference between dense flow and sparse flow (Lucas-Kanade)
Point
Dense
Sparse LK
Same or opposite
Pixels used
Every pixel
Selected corners
Opposite
Gives motion vectors
Yes
Yes
Same
Speed
Slower
Faster
Opposite
Typical use
Full motion field
Tracking objects
Opposite
Based on brightness constancy
Yes
Yes
Same
Exam tip. Write the flow equation and explain why a window is needed. Give the LK system. Work one window and the car speed.
Q8. Bayesian statistics and sensor measurements for robot localization
Short answer.Robot localization finds where a robot is on a known map. Bayesian statistics keep a probability for each position and update it with sensor measurements after every reading and move.
From the syllabus · Unit 4
From the papers
“Bayesian statistics to locate a robot in space, sensor measurements to safely navigate an environment” (Syllabus)
Write these points
Bayes rule for localization
Posterior is proportional to likelihood x prior.
Prior: belief before the reading.
Likelihood: how well the reading fits each position.
Normalise so the beliefs add to 1.
Sense and move cycle
Sense: multiply by the likelihood, normalise. Belief sharpens.
Move: shift the belief by the motion, spread by motion error. Belief blurs.
Repeat. Over time the belief settles on the true position.
Safe navigation
Sensors such as cameras, lidar and wheel encoders all have errors.
Plans use the belief, not one guess, so the robot slows down when unsure.
Seeing a door in a 5-cell corridor (from calc.py).
Likelihood 0.6 at doors, 0.2 at walls. Products: 0.12, 0.04, 0.04, 0.12, 0.04. Sum 0.36.
Posterior: 0.333 at each door, 0.111 at each wall.
Real-life example
Waking up on a night bus, you do not know where you are. You see a petrol pump and think of the three places on the route that have one. After the next landmark, only one place fits. Your belief sharpened with each reading, just like a robot's.
Difference between sense step and move step
Point
Sense
Move
Same or opposite
Effect on belief
Sharpens
Spreads
Opposite
Part of the Bayes cycle
Yes
Yes
Same
Uses
Sensor likelihood
Motion model
Opposite
Operation
Multiply and normalise
Shift and blur
Opposite
Repeated every cycle
Yes
Yes
Same
Exam tip. Write Bayes rule in words. Explain the sense and move cycle. Work the door example with numbers.
Q9. Histogram filter for robot localization in Python
Short answer. A histogram filter localizes a robot by splitting the world into cells and keeping one probability per cell. It repeats a sense step with Bayes rule and a move step with a motion model.
From the syllabus · Unit 4
From the papers
“histogram filter for robot localization in python.” (Syllabus)
Write these points
Parts
World: list of cells with what the sensor should see.
Belief p: one probability per cell, starting uniform.
Sensor model: p_hit if the reading matches, p_miss if not.
Motion model: exact move with high chance, under or overshoot with small chances.
world = ["green", "red", "red", "green", "green"]
p = [0.2] * 5
P_HIT, P_MISS = 0.6, 0.2
P_EXACT, P_UNDER, P_OVER = 0.8, 0.1, 0.1
def sense(p, z):
q = [pi * (P_HIT if world[i] == z else P_MISS) for i, pi in enumerate(p)]
s = sum(q)
return [x / s for x in q]
def move(p, u):
n = len(p)
return [P_EXACT * p[(i - u) % n] + P_OVER * p[(i - u - 1) % n]
+ P_UNDER * p[(i - u + 1) % n] for i in range(n)]
for z in ["red", "green"]:
p = sense(p, z)
p = move(p, 1)
print([round(x, 3) for x in p])
Output when run with Python (from calc.py and code/hist_filter.py).
Sense green, move 1: [0.212, 0.152, 0.081, 0.168, 0.387].
After these two cycles the belief is highest in cell 5.
Limits
Memory grows with the number of cells, so it suits small or coarse maps.
Particle and Kalman filters handle larger or continuous spaces.
Real-life example
A delivery rider on a street of five houses checks the colour of each gate he passes. Red, then green, then he has a good idea of his house number. The histogram filter keeps that idea as five numbers that update with every look and every step.
Difference between histogram filter and Kalman filter
Point
Histogram
Kalman
Same or opposite
Belief form
One value per cell
Mean and variance
Opposite
Uses sense and move steps
Yes
Yes
Same
Can hold several guesses
Yes
No, one peak
Opposite
Space
Discrete cells
Continuous
Opposite
Based on Bayes rule
Yes
Yes
Same
Exam tip. List the four parts. Write the sense and move functions. Show one cycle of numbers and one limit.
Short answer.Inverse filtering restores an image by dividing by the degradation: F' = G / H. The Wiener filter also uses the noise level, F' = H* G / (|H|^2 + K), so it does not blow up noise where H is small.
From the syllabus · Unit 5
From the papers
“restoration using Weiner filters and Inverse filters” (Syllabus)
Write these points
Inverse filter
Simple and exact when there is no noise.
Where H is near zero, N / H becomes huge and the result fills with noise.
A cut-off radius limits it to frequencies where H is large.
Wiener filter
Minimises the mean square error between f and the estimate.
K is the noise to signal power ratio. Larger K means more smoothing.
With K = 0 it becomes the inverse filter.
Steps
Estimate H and the noise level.
Take the Fourier transform of g.
Apply the filter at each frequency.
Take the inverse transform to get the restored image.
One frequency with H = 0.1, F = 50, N = 2 (from calc.py).
G = 0.1 x 50 + 2 = 7. Inverse: 7 / 0.1 = 70, error 20 from noise alone.
Wiener, K = 0.01: 0.1 / 0.02 x 7 = 35. K = 0.04: 14. It holds back instead of amplifying noise.
Where H = 0.9: inverse 52.22, Wiener 51.59. Both close to 50.
Real-life example
Turning up the volume on a faint radio station also turns up the hiss. Turning it up only where the station is strong keeps the hiss down. The inverse filter turns everything up. The Wiener filter turns up only where the signal is strong enough.
Difference between inverse filter and Wiener filter
Point
Inverse
Wiener
Same or opposite
Uses noise level
No
Yes, K
Opposite
Needs the degradation H
Yes
Yes
Same
Where H is small
Noise blows up
Kept under control
Opposite
Works in the frequency domain
Yes
Yes
Same
Best when
No noise
Noise present
Opposite
Exam tip. Write both formulas. Explain why the inverse filter fails where H is small. Work one frequency with both filters.
What are the most important topics in Image and Video Processing?
No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Image representation: numerical representation, sampling and quantization; Image enhancement: point operations and histogram equalization; Image processing: smoothing and sharpening filters; Image segmentation: breaking an image into parts; Finding edges and contours of objects.
How were these Image and Video Processing important questions chosen?
Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Image and Video Processing important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Image and Video Processing is free to download from this page.
The 10 topics of Image and Video Processing (SD-702-B) for RGPV B.Tech semester 7, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.