SD-702-B Image and Video Processing

Image and Video Processing (SD-702-B) Important Questions

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.

Download Paperwala Imp Question & Answer (PDF)

How we made this list
  • All papers on this site: 0
  • 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.

Diagram: Image representation: numerical representation, sampling and quantization

Difference between sampling and quantization

PointSamplingQuantizationSame or opposite
DecidesNumber of pixelsNumber of levels per pixelOpposite
Needed to make a digital imageYesYesSame
Too little givesBlocky imageBands, false contoursOpposite
Affects file sizeYesYesSame
AxisSpace (x, y)BrightnessOpposite

Exam tip. Write the image as f(x, y) and show a small matrix. Define sampling and quantization. Add one size calculation.

Back to the topic list

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.

From the syllabus · Unit 1

From the papers

  • “Image augmentation, enhancement, processing” (Syllabus)

Write these points

Point operations

  • Negative: s = 255 - r. Bright becomes dark.
  • Log: s = c log(1 + r). Brings out dark details.
  • Gamma (power law): s = c r^gamma. Gamma below 1 brightens, above 1 darkens.
  • Contrast stretch: map the used range onto the full range.

Histogram equalization

  1. Count pixels at each level (histogram).
  2. Make the running total (cumulative histogram).
  3. New level s = round((L - 1) x running total / number of pixels).
  4. Replace every pixel by its new level.

A 4 x 4 image with 8 levels (from calc.py).

Counts: level 1: 4, level 2: 7, level 3: 4, level 4: 1. Running totals 4, 11, 15, 16.

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.

Diagram: Image enhancement: point operations and histogram equalization

Difference between gamma correction and histogram equalization

PointGammaEqualizationSame or opposite
MappingFixed formulaBuilt from the image's histogramOpposite
Changes each pixel's valueYesYesSame
Needs a chosen parameterYes, gammaNoOpposite
Adapts to the imageNoYesOpposite
Used for enhancementYesYesSame

Exam tip. List four point operations with formulas. Write the equalization steps and work a small table.

Back to the topic list

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.

From the syllabus · Unit 1

From the papers

  • “Image augmentation, enhancement, processing” (Syllabus)

Write these points

How filtering works

  1. Place the kernel centre on a pixel.
  2. Multiply each kernel value by the pixel under it.
  3. Add the products. Write the sum to the output pixel.
  4. Move to the next pixel. Borders are padded.

Smoothing

  • Mean filter: average of the neighbours. Blurs edges a little.
  • Gaussian filter: weights fall with distance. Smoother result.
  • Median filter: middle value. Best for salt and pepper noise, keeps edges.

Sharpening

  • Laplacian: second derivative, strong at edges.
  • Sharpened = original - Laplacian (with a negative centre kernel).
  • Unsharp masking: add back the difference between the image and its blur.

One noisy pixel (from calc.py).

Patch: 100 in the centre, 10 around. Mean = 180 / 9 = 20.0. Median = 10, so the spike vanishes.

Laplacian (0 1 0 / 1 -4 1 / 0 1 0) gives 4 x 10 - 4 x 100 = -360.

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.

Diagram: Image processing: smoothing and sharpening filters

Difference between mean filter and median filter

PointMeanMedianSame or opposite
OutputAverageMiddle valueOpposite
Uses a 3 x 3 windowYesYesSame
Salt and pepper noiseSpreads itRemoves itOpposite
Keeps edgesLessMoreOpposite
Smoothing filterYesYesSame

Exam tip. Show the kernel sliding steps. Name three smoothing filters and two sharpening methods. Work mean, median and Laplacian on one patch.

Back to the topic list

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.

Diagram: Image segmentation: breaking an image into parts

Difference between thresholding and region growing

PointThresholdingRegion growingSame or opposite
RuleValue above or below tSimilar to the growing regionOpposite
Splits the image into partsYesYesSame
Needs seedsNoYesOpposite
Uses position of pixelsNoYesOpposite
Gives a maskYesYesSame

Exam tip. Define segmentation. Explain thresholding with Otsu and list four other methods. Draw the histogram with t.

Back to the topic list

Q5. Finding edges and contours of objects

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

  1. Smooth with a Gaussian.
  2. Find gradient magnitude and direction.
  3. Non-maximum suppression: keep only thin ridge pixels.
  4. Double threshold: strong and weak edges.
  5. 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.

Sobel on a vertical edge (from calc.py).

Patch columns 10, 10, 80 in every row.

Gx = (80 - 10) + 2(80 - 10) + (80 - 10) = 280. Gy = 0.

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
Canny edge detector

Difference between Sobel and Canny

PointSobelCannySame or opposite
StepsOne gradient stepFive stepsOpposite
Uses image gradientsYesYesSame
Edge thicknessThickThin, one pixelOpposite
Noise handlingWeakGaussian smoothing firstOpposite
Finds edgesYesYesSame

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.

Back to the topic list

Q6. Background subtraction for video

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

  1. Build the background model.
  2. For each new frame, compute the difference.
  3. Threshold to get a foreground mask.
  4. Clean the mask with morphology. Find blobs.
  5. 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 180: difference 80 > 30, foreground. Background moves to 104.09.

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.

Diagram: Background subtraction for video

Difference between frame differencing and running average

PointFrame differencingRunning averageSame or opposite
Compares withPrevious frameLearned backgroundOpposite
Finds moving pixelsYesYesSame
Detects a slow objectPoorlyBetterOpposite
Memory neededOne frameOne model imageOpposite
Needs a thresholdYesYesSame

Exam tip. Define background subtraction. List four methods and the five steps. Work the running average on one pixel.

Back to the topic list

Q7. Tracking a moving car using optical flow

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

  1. Detect corners on the car.
  2. Compute flow for each corner.
  3. Average the vectors to get the car's motion.
  4. 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.

Diagram: Tracking a moving car using optical flow

Difference between dense flow and sparse flow (Lucas-Kanade)

PointDenseSparse LKSame or opposite
Pixels usedEvery pixelSelected cornersOpposite
Gives motion vectorsYesYesSame
SpeedSlowerFasterOpposite
Typical useFull motion fieldTracking objectsOpposite
Based on brightness constancyYesYesSame

Exam tip. Write the flow equation and explain why a window is needed. Give the LK system. Work one window and the car speed.

Back to the topic list

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

  1. Sense: multiply by the likelihood, normalise. Belief sharpens.
  2. Move: shift the belief by the motion, spread by motion error. Belief blurs.
  3. 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).

Cells: door, wall, wall, door, wall. Prior 0.2 each.

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.

Diagram: Bayesian statistics and sensor measurements for robot localization

Difference between sense step and move step

PointSenseMoveSame or opposite
Effect on beliefSharpensSpreadsOpposite
Part of the Bayes cycleYesYesSame
UsesSensor likelihoodMotion modelOpposite
OperationMultiply and normaliseShift and blurOpposite
Repeated every cycleYesYesSame

Exam tip. Write Bayes rule in words. Explain the sense and move cycle. Work the door example with numbers.

Back to the topic list

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 red: [0.111, 0.333, 0.333, 0.111, 0.111]. Move 1: [0.111, 0.133, 0.311, 0.311, 0.133].

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.

Diagram: Histogram filter for robot localization in Python

Difference between histogram filter and Kalman filter

PointHistogramKalmanSame or opposite
Belief formOne value per cellMean and varianceOpposite
Uses sense and move stepsYesYesSame
Can hold several guessesYesNo, one peakOpposite
SpaceDiscrete cellsContinuousOpposite
Based on Bayes ruleYesYesSame

Exam tip. List the four parts. Write the sense and move functions. Show one cycle of numbers and one limit.

Back to the topic list

Q10. Restoration using inverse and Wiener filters

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

  1. Estimate H and the noise level.
  2. Take the Fourier transform of g.
  3. Apply the filter at each frequency.
  4. 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.

Diagram: Restoration using inverse and Wiener filters

Difference between inverse filter and Wiener filter

PointInverseWienerSame or opposite
Uses noise levelNoYes, KOpposite
Needs the degradation HYesYesSame
Where H is smallNoise blows upKept under controlOpposite
Works in the frequency domainYesYesSame
Best whenNo noiseNoise presentOpposite

Exam tip. Write both formulas. Explain why the inverse filter fails where H is small. Work one frequency with both filters.

Back to the topic list

Start with the latest papers

Previous year papers will be added soon!

Image and Video Processing (SD-702-B) FAQs

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.