RBE306TC Computer Vision Systems

RBE306TC Computer Vision Systems
Assignment
Before you dive into this Exercise 1 to Exercise 3, please check the following OpenCV functions in
Python Coding Platform for example: imread, shape, imshow, imwrite, imnoise, resize, calcHist, equalizeHist, etc.
Some other Python built-in functions, or functions in Scipy package may also be used. Please refer to online resources.
Hint : read the descriptions about each of the previous functions and any other function you might use. You may find descriptive sections of Algorithms(s) in some of the Python functions.
Exercise 1 (20%)
In this task, we use the monochrome image Lenna (i.e., lenna512.bmp) with the following tasks.
Let's regard this reference image Lenna as IM .
• (a). Add Gaussian white noise with 0 mean and variance 10 to the image IM and display the noisy image. We name it as IM_WN . Please write one function to generate this image instead of calling Matlab function directly (4%).
• (b). Add salt & pepper noise with noise density 10% to the image IM and display the noisy image.
We name it as IM_SP. Please write one function to generate this image instead of calling
Matlab function directly (4%).
• (c). Display the histograms of all the previous images and compare them with the histogram of the reference image, comments and briefly explain your finding (4%).
• (d). Use the command histeq to enhance the image constrast
( lenna512_low_dynamic_range.bmp ) and display the enhanced image (4%).
• (e). Moreover, display the histograms of both original image and enhanced image, and explain your finding in the assignment (4%).
Exercise 2 (25%)
Recall salt & pepper images generated in Task 1 IM_SP based on the IM .
• (a). Apply the median filter with a 3 × 3 window and a 5 × 5 window on the image IM_SPrespectively. Display and evaluate the PSNR of the obtained images. For each window size, comment on how effectively the noise is reduced while sharp edges and features in the image are preserved (8%).
• (b). Use the average filter (mean filter) 3 × 3 to filter the image IM_SP . Compute the PSNR and display the filtered image (8%).
• (c). As you experimented with the mean and median algorithms what different property did you notice? Was the average or median filter better and why (9%)?
Exercise 3 (55%)
In this exercise, you will be asked to build a VGG-16 and VGG-19 (see the following architecture) to train a classifier on cifar10 dataset. based on the python + PyTorch codes implemented in Lab 4 for LeNet.
The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images
per class. There are 50000 training images and 10000 test images. The dataset is divided into five training batches and one test batch, each with 10000 images. The test batch contains exactly 1000 randomly-selected images from each class. The training batches contain the remaining images in random order, but some training batches may contain more images from one class than another.
Between them, the training batches contain exactly 5000 images from each class.

相关推荐
njsgcs2 分钟前
图卷积是如何处理不同输入长度的 消息传递
人工智能
哥本哈士奇11 分钟前
使用OpenClaw的Skills对接本地系统
人工智能
IT_陈寒17 分钟前
SpringBoot实战:3个隐藏技巧让你的应用性能飙升50%
前端·人工智能·后端
. . . . .21 分钟前
Claude Code Plugins 目录结构与加载机制
人工智能
GJGCY22 分钟前
2026企业级智能体架构:记忆机制、RAG检索与任务规划对比
人工智能·经验分享·ai·智能体
SuniaWang32 分钟前
《Spring AI + 大模型全栈实战》学习手册系列 ·专题三:《Embedding 模型选型指南:从 MMTEB 排名到实际应用》
人工智能·学习·spring
爱学习的程序媛38 分钟前
“数字孪生”详解与前端技术栈
前端·人工智能·计算机视觉·智慧城市·信息与通信
数业智能心大陆38 分钟前
科技赋能心育服务,心大陆 AI 减压舱守护校园心灵健康
人工智能·心理健康
程序员Sunday1 小时前
Claude Code 生态爆发:5个必知的新工具
前端·人工智能·后端
智算菩萨1 小时前
【How Far Are We From AGI】6 AGI的进化论——从胚胎到终极的三级跃迁与发展路线图
论文阅读·人工智能·深度学习·ai·agi