博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
COMP 0137 Machine Vision
阅读量:6503 次
发布时间:2019-06-24

本文共 5239 字,大约阅读时间需要 17 分钟。

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 或邮箱: 

微信:codinghelp

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

你可能感兴趣的文章
探寻光存储没落的真正原因
查看>>
高通64位ARMv8系列服务器芯片商标命名:Centriq
查看>>
中国人工智能学会通讯——融合经济学原理的个性化推荐 1.1 互联网经济系统的基本问题...
查看>>
盘点大数据商业智能的十大戒律
查看>>
戴尔为保护数据安全 推出新款服务器PowerEdge T30
查看>>
今年以来硅晶圆涨幅约达40%
查看>>
构建智能的新一代网络——专访Mellanox市场部副总裁 Gilad Shainer
查看>>
《数字视频和高清:算法和接口》一导读
查看>>
《中国人工智能学会通讯》——6.6 实体消歧技术研究
查看>>
如何在Windows查看端口占用情况及查杀进程
查看>>
一分钟秒懂公有云、私有云、混合云......
查看>>
云存储应用Upthere获7700万美元股权债务融资
查看>>
国家互联网应急中心何世平博士主题演讲
查看>>
洗茶,你误会了多少年?
查看>>
移动大数据“后市场”受青睐 亟需数据深度学习人才
查看>>
贵阳高新区力争打造“千亿级大数据园区”
查看>>
安防众筹不止于卖产品 思维拓展刺激消费
查看>>
OpenSSH曝高危漏洞 会泄露私钥
查看>>
艾特网能获2016APCA用户满意品牌大奖
查看>>
《软件工艺师:专业、务实、自豪》一2.4 《敏捷软件开发宣言》
查看>>