CS 659图像处理

惰性薄雾
• 阅读 778

CS 659 Image Processing
Exam One
Name: Student ID #:
Covering Lectures 1~6. There are 4 questions. Each is 25 points.

  1. (a) (10 points) Determine the convolution and correlation of the two sequences shown below.
    Note that, black dots represent value 1 and white dots represent value 0. Underline the pixel at
    the origin. Note that the answers are 4 by 4 matrices.

(b) (15 points) Perform the convolution
f g
and the correlation
f g
. Assume the origin is
located at the lower-left corner. Underline the pixel at the origin. Note that the answers are 3 by 4
matrices.
3 5 1 2 1
: , :
6 2 1 3

  1. (a) (10 points) Apply contrast stretching to the image below using
    2, 1, 5, 7. r1 = s1 = r2 = s2 =
    Show your computation and the output image. Note that using rounding to be all integers.
  2. 1 0 0 0 0 0 1
  3. 1 1 1 0 1 0 1
  4. 3 4 4 5 5 0 0
  5. 3 4 4 5 5 5 5
  6. 4 4 4 4 5 7 0
  7. 1 4 5 6 5 6 1
  8. 0 4 4 1 5 6 1
  9. 0 1 1 1 0 5 0
    (b) (15 points)
    Let the input pixels {y(m)}={2, 3, 8, 4, 2} and the window W = [-1, 0, 1]. What is the median
    filter output {v(m)}? Let W contain an even number of pixels, say W = [-1, 0, 1, 2]. What is the
    median filter output {v(m)}? Note that let the boundary pixels stay the same (i.e., without the
    median computation). Note that using floating-point numbers (i.e., DO NOT round into
    integers).
  10. (10 points) (a) Given a template f, find the location of exact match in the image g by using
    Correlation of fg minus Correlation of f'g. Show your calculations and mark the matched
    locations.
    (b) (15 points) Is it possible to perform the matching by using only one correlation (f and g are
    shown below)? If the answer is Yes, show the modified template and your calculations, and
    mark the matched locations. If the answer is No, describe your opinion why it cannot work.
    f:
  11. 1 0
  12. 0 1
  13. 1 0
    g:
  14. 0 0 0 0 0 0 0
  15. 0 1 0 1 0 0 0
  16. 1 0 1 1 1 1 0
  17. 0 1 0 1 0 0 0
  18. 0 0 0 1 1 1 0
  19. 1 1 0 0 0 1 0
  20. 1 1 0 0 0 1 0
  21. 0 0 0 0 0 0 0
  22. (25 points) Apply histogram equalization to the image below. Let the output gray levels are in
    the range of [0, 7]. Show your step-by-step calculations, the input/output pixel mapping, and
    the resulting output image.
  23. 1 5 5 0 0 1 0
  24. 1 2 2 0 1 0 1
  25. 7 6 6 5 5 0 0
  26. 7 6 7 5 5 5 5
  27. 7 6 7 3 5 7 0
  28. 1 4 1 6 5 6 1
  29. 2 4 1 1 5 1 1
  30. 2 2 0 0 0 0 5

WX:codehelp

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
美凌格栋栋酱 美凌格栋栋酱
6个月前
Oracle 分组与拼接字符串同时使用
SELECTT.,ROWNUMIDFROM(SELECTT.EMPLID,T.NAME,T.BU,T.REALDEPART,T.FORMATDATE,SUM(T.S0)S0,MAX(UPDATETIME)CREATETIME,LISTAGG(TOCHAR(
小嫌 小嫌
3年前
js中箭头函数在对象内部的继承
function函数functionPerson()this.name'Jack',this.age25,this.sayNamefunction()console.log(this.name)functioninner()console.log(this.n
Stella981 Stella981
3年前
Python之time模块的时间戳、时间字符串格式化与转换
Python处理时间和时间戳的内置模块就有time,和datetime两个,本文先说time模块。关于时间戳的几个概念时间戳,根据1970年1月1日00:00:00开始按秒计算的偏移量。时间元组(struct_time),包含9个元素。 time.struct_time(tm_y
Wesley13 Wesley13
3年前
KDE发布首个4.7 RC发行
KDEShipsFirst4.7ReleaseCandidateKDE发布首个4.7RC发行By:SebastianKügler,in:20110625,about;KDEOfficialNews发表于:2011年6月25日北京时间08:00KDEhasrelease
Wesley13 Wesley13
3年前
00:Java简单了解
浅谈Java之概述Java是SUN(StanfordUniversityNetwork),斯坦福大学网络公司)1995年推出的一门高级编程语言。Java是一种面向Internet的编程语言。随着Java技术在web方面的不断成熟,已经成为Web应用程序的首选开发语言。Java是简单易学,完全面向对象,安全可靠,与平台无关的编程语言。
Stella981 Stella981
3年前
90% 的 Java 程序员都说不上来的为何 Java 代码越执行越快(1)
麻烦大家帮我投一票(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Frank.juejin.cn%2F%3Fu%3D%25E5%25B9%25B2%25E8%25B4%25A7%25E6%25BB%25A1%25E6%25BB%25A1%25E5%25BC%25A0%25E5%259
Wesley13 Wesley13
3年前
MongoDB索引
创建索引 ensureIndexdb.scores.ensureIndex({"studentId":1},{"name":"idx_scores_st","background":1});查看索引 getIndexesdb.scores.getIndexes();!(https://oscimg.osch
Stella981 Stella981
3年前
Linux(Ubuntu)安装GIMP
GIMP名称由GNUImageManipulationProgram(GNU图像处理程序)的首字母组成)是一个自由及开放原始码(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fzh.wikipedia.org%2Fwiki%2F%25E8%2587%25AA%2
Python进阶者 Python进阶者
1年前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这
惰性薄雾
惰性薄雾
Lv1
问君能有几多愁?恰似一江春水向东流。
文章
3
粉丝
0
获赞
0