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.

相关推荐
棣廷6 分钟前
初识深度学习——数据增强与模型保存
人工智能·深度学习
kyle~7 分钟前
图像直方图
计算机视觉·数学建模·机器视觉·数学统计
找方案7 分钟前
AI+气象预报:华为盘古大模型如何让天气预报精准到街区
人工智能·算法·机器学习
IT_陈寒13 分钟前
Vite的HMR怎么突然罢工了?原来是我漏了这个配置
前端·人工智能·后端
狂师13 分钟前
最近火爆出圈的,FDE 到底是个什么岗位?
人工智能·程序员·全栈
不要生病了15 分钟前
Through Their Eyes:用简单对齐实现跨被试与跨数据集视觉脑解码
人工智能·深度学习
2601_9623042516 分钟前
AI照片上色新手好上手:怎么调出自然肤色?
人工智能
临床数据科学和人工智能兴趣组17 分钟前
399元现在超值!学R语言,订阅我们专栏就够了,包括了所有的内容,不断更新!
人工智能·数据挖掘·r语言·r语言-4.2.1·临床研究
sjh75242296918 分钟前
Deepseek Harness的四种模式
人工智能
一比七品牌咨询19 分钟前
科技企业品牌定位:如何把技术优势转化为品牌优势?
大数据·人工智能·品牌策划·品牌全案策划·深圳品牌策划公司·品牌定位