COMP 0137 Machine Vision

news/2024/7/7 20:22:46

COMP 0137作业代做、Python实验作业代写、代做Python语言程序作业、代写Machine Vision作业
COMP 0137 Machine Vision: Homework #1
Due 19th
November 2018 at 23:55pm
Worth 10% of your overall grade
Submit online, through Moodle
For this homework, we’ll revisit the practical from the 3rd
week: Mixtures of Gaussians.
There are two parts (plus optional extra credit), so please read the instructions carefully.
Everything you turn in must be YOUR OWN WORK, with one exception (in this case): the
new images and their ground truth mask images. See below for more details, but as always,
list names/references for anything you’re submitting that is not your own work.
Late Policy: We must follow the official UCL late-policy, and this gets applied *after* your
coursework is marked on Moodle, based on the Moodle timestamps. The instructor/TA’s
have no control over this – at all:
https://www.ucl.ac.uk/academic-manual/chapters/chapter-4-assessment-framework-taught-progra
mmes/section-3-module-assessment
What to turn in (all inside one folder, zip’ed inside a single .zip file):
- Three jupyter notebooks: for practicalMixGaussA.ipynb; also for B and C, but not D.
- Your jupyter notebook for practicalMixGauss_Apples.ipynb
- One folder containing your photos of apples
- One folder containing image masks for your apples
Code/Hints: All code must be python, submitted as jupyter python notebook files (.ipynb),
with your explanations interspersed within the notebooks. Do not use other libraries beyond:
os, time, sys, numpy, matplotlip, scipy.io, glob, and pillow and/or opencv if you need it.
Please use Python 3.6.
Part I: A), B), C)
Do all the TO DO’s in parts A, B, and C of the Mixtures of Gaussians practical. Some of the
TO DO’s are tagged a-j.
For every figure or plot that is generated in the code, write 1-3 sentences (maximum)
explaining what the figure shows or pros/cons of what is happening, good or bad.
It IS NOT SUFFICIENT to just say things like "update the variable." Ok, some things are
deterministic, but explain, to demonstrate you understand why those steps are happening.
Examples of things to talk about, in the 1-3 sentences:
- Give some analysis about code working/not working out, especially when stochastic.
- Discuss where/which results don’t match your expectations. Why? Be specific.
- Describe what EACH figure or plot is showing, what it would look like ideally.
- Discuss ways some step or experiment could be better / more robust. Validating your
process means being thorough, and what would you need to be more thorough?
You do NOT need to do the 4th
part, practicalMixGaussD.
Part II Make a new file, practicalMixGauss_Apples.ipynb.
A) Download and unzip the file apples.zip. Notice that for every color photo containing
apples, there is a corresponding binary image mask. In a mask image, white pixels indicate
(continued on next page…)
locations where the corresponding photo is an apple. In floating point, you may need to
threshold to get binary values. Note that these mask images are inexact! While a perfect
ground-truth mask image’s black pixels should correspond to non-apples, these masks were
painted in a hurry, so the white areas were painted conservatively.
# You may want to use this example code, for loading in your
jpg’s and png’s:
import glob
import numpy as np
import matplotlib.pyplot as plt
files = glob.glob("apples/*.jpg")
ColorImgs = []
for myFile in files:
im = plt.imread(myFile)
ColorImgs.append(im)
B) Train a mixture of Gaussians model for distinguishing apple vs. non-apple pixels. Use red,
green, and blue as your dimensions for now. Make any other decisions you need to, and
document them in your jupyter notebook.
C) Download the file testApples.zip. Generate figures for your notebook, showing each
pixel’s posterior probability of being “apple.” Comment on the outcomes.
D) For the test image with a ground-truth mask, quantify and report your result. Hint:
consider applying a range of thresholds to the posterior to produce sets of {True Positives
(TP), True Negatives (TN), False Positives (FP), and False Negatives (FN)} and using an
ROC curve. Learn about ROC on Wikipedia or see Peter Flach’s chapter on the subject.
E) Download two non-copyrighted photos with apples (maybe
http://search.creativecommons.org/ or some other source of images that are not copyrighted).
Make good ground-truth masks for them. You can use Windows Paint, or more sophisticated
programs like Gimp (free). Use these as extra test-images. Report your qualitative and
quantitative results.
F) We should really be using three separate sets of files: a training set, a validation set, and a
test set! Explain why.
Extra Credit: Put this section at the end of the practicalMixGauss_Apples.ipynb notebook
(extra points help you reach a perfect score for the two courseworks only, so a maximum of
20% of the overall grade).
- Consider manipulating the photographs’ colors to improve the classification
- Consider running 2D Gabor filters on the photos to get additional channels of data, in
place or in addition to red, green, and blue.
- Consider using an alternate model to mixture of Gaussians, and compare to MoG.

因为专业,所以值得信赖。如有需要,请加QQ99515681 或邮箱:99515681@qq.com 

微信:codinghelp

转载于:https://www.cnblogs.com/hellorrrrr/p/9985132.html


http://lihuaxi.xjx100.cn/news/235872.html

相关文章

BIML 101 - ETL数据清洗 系列 - BIML 快速入门教程 - 序

BIML 101 - BIML 快速入门教程 做大数据的项目,最花时间的就是数据清洗。 没有一个相对可靠的数据,数据分析就是无木之舟,无水之源。 如果你已经进了ETL这个坑,而且预算有限,并且有大量的活要做; 时间紧&am…

Spring事务管理的底层逻辑—源码解析

本文代码为spring 5.1.2spring是如何控制事务的提交和回滚 加上Transactional注解之后,Spring可以启到事务控制的功能了,再正式执行方法前它会做一些操作,我们来看看 首先进入CglibAopProxy.class的intercept方法或者JdkDynamicAopProxy.clas…

堡垒机高危命令正则表达式

堡垒机可以设置高危命令阻断,防止操作人员误操作造成删库跑路。但是什么是高危命令,需要管理员通过配置正则表达式,进行命令匹配。 今天2021年8月6日先匹配最常见的删库跑路命令 rm -rf / ,以下几种表达式联合起来就可以阻断这类…

深入理解浏览器的缓存机制

一、前言 缓存可以说是性能优化中简单高效的一种优化方式了。一个优秀的缓存策略可以缩短网页请求资源的距离,减少延迟,并且由于缓存文件可以重复利用,还可以减少带宽,降低网络负荷。 对于一个数据请求来说,可以分为发…

(二)spring cloud微服务分布式云架构 - 整合企业架构的技术点

spring cloud本身提供的组件就很多,但我们需要按照企业的业务模式来定制企业所需要的通用架构,那我们现在需要考虑使用哪些技术呢? 下面我针对于spring cloud微服务分布式云架构做了以下技术总结,希望可以帮助到大家: …

2542513 - AS Java fails to start - Initialization of destination UMEBackendConnection failed

今天发现SAP As Java 开发机无法启动,根据 Note 2542513 处理该问题并记录。 今天发现SAP EPBPM服务器不能正常启动,jstart.exe进程显示 some process running 的黄灯状态。重启也不管用。到SAP官网 https://wiki.scn.sap.com/wiki/display/ASJAVA/%28J…

How to list/dump dm thin pool metadata device?

2019独角兽企业重金招聘Python工程师标准>>> See: How to create metadata-snap for thin tools using? I dont think LVM provides any support for metadata snapshots so you will need to drive this process through dmsetup. The kernel interface is descri…

maven项目中 把依赖的jar包一起打包

2019独角兽企业重金招聘Python工程师标准>>> Maven1-HelloWorld简单入门 使用Maven Assembly plugin将依赖打包进jar 1、pom.xml 配置文件&#xff1a; 在pom.xml配置文件中添加 <build> <plugins> <plugin> <artifactId>maven-assembly…