DIP Programming代做、代写Java/c++程序设计
DIP Programming Assignment 3
Edge detection using gradient operator
Edge detection is a problem of fundamental importance in image analysis. In typical images, edges characterize object boundaries and are therefore useful for segmentation, registration, and identification of objects in a scene.
In this exercise, you are required to develop an edge detection algorithm using gradient operator:
The formula above uses four-neighbor pixels to calculate the gradient of the central pixel. An important consideration in implementing this operation is the issue of what happens when the central pixel approaches the border of the input image, as one or more four-neighbors of the central pixel may be out of the image area. We suggest that you can skip the gradient operation on the border of the input image. For an image which has M*N resolution, you can implement the gradient operator from the 2nd to (M-1)th row, and from the 2nd to (N-1)th column.
If you use IMSHOW to show the processed image Y directly, most of its detail cannot be displayed clearly because of its low dynamic range. You can use the following command to get its negative image and extend to the full dynamic range before you use IMSHOW to display it.
Y = im2uint8(mat2gray(Y));
Y = 255-double(Y);
Y = im2uint8(mat2gray(Y));
In your submitted report, an input image, an output (processed) image and source code should be included.
Example:
Original Image Gradient Image Output Image
If you have finished jobs required above, you could try other edge detect operators or use different ways to handle those special pixels in which your edge detect operator could not get a whole input data for processing. You could also try the edge function with different parameters supported by Matable and compare your results with Matlab’s output. The following are some info form Matlab help for the Matlab function edge:
Some info for Matlab function edge:
>> help edge
EDGE Find edges in intensity image.
EDGE takes an intensity or a binary image I as its input, and returns a
binary image BW of the same size as I, with 1's where the function
finds edges in I and 0's elsewhere.
EDGE supports six different edge-finding methods:
The Sobel method finds edges using the Sobel approximation to the
derivative. It returns edges at those points where the gradient of
I is maximum.
The Roberts method finds edges using the Roberts approximation to
the derivative. It returns edges at those points where the gradient
of I is maximum.
…..
The parameters you can supply differ depending on the method you
specify. If you do not specify a method, EDGE uses the Sobel method.
Sobel Method
BW = EDGE(I,'sobel') specifies the Sobel method.
BW = EDGE(I,'sobel',THRESH) specifies the sensitivity threshold for
the Sobel method. EDGE ignores all edges that are not stronger than
THRESH. If you do not specify THRESH, or if THRESH is empty ([]),
EDGE chooses the value automatically.
BW = EDGE(I,'sobel',THRESH,DIRECTION) specifies directionality for the
Sobel method. DIRECTION is a string specifying whether to look for
'horizontal' or 'vertical' edges, or 'both' (the default).
[BW,thresh] = EDGE(I,'sobel',...) returns the threshold value.
Roberts Method
BW = EDGE(I,'roberts') specifies the Roberts method.
BW = EDGE(I,'roberts',THRESH) specifies the sensitivity threshold for
the Roberts method. EDGE ignores all edges that are not stronger than
THRESH. If you do not specify THRESH, or if THRESH is empty ([]),
EDGE chooses the value automatically.
[BW,thresh] = EDGE(I,'roberts',...) returns the threshold value.
Class Support
-------------
I can be of class uint8, uint16, or double. BW is of class uint8.
Example
-------
Find the edges of the rice.tif image using the Prewitt and Canny
methods:
I = imread('rice.tif');
BW1 = edge(I,'prewitt');
BW2 = edge(I,'canny');
imshow(BW1)
figure, imshow(BW2)
…
请加QQ:99515681 邮箱:99515681@qq.com WX:codinghelp
- Telegram超好用的批量群发营销软件,电报群发工具推荐
- Telegram营销引流怎么做到自动获客?TG群发营销助手推荐
- 担忧市场覆盖不足 WhatsApp拉群营销工具助你一键解决烦恼 扩大曝光面
- 11大车企砸千亿造电池
- 时空商业的奇迹编织:zalo筛选器推广引发用户共鸣
- TPS2064DGNG4: Advancing Power Distribution Efficiency in Electronic Systems with Quad High-Side Powe
- 2024年刚过去三周,AI+机器人赛道就迎来爆发式开局!
- pCloud以巨大折扣庆祝农历新年
- 马斯克:SpaceX 今年将进行 144 次发射,希望八年后登陆火星
- Ins打粉营销工具,Instagram群发工具,共同助你开拓营销新天地!
- TT语音主播荣膺广东省网络直播行业“红云奖”,传递青年正能量
- 守护食品安全,万店掌AI巡店系统助力门店防线升级!
- instagram社交爆发神器,一键群发采集,助你快速引流!
- 世界级云ERP U9 cloud再升维,助推中国制造向高质量发展迈进!
- 外贸新手看过来 WhatsApp拉群营销工具用哪个好 请大家分享一下经验
- 皓丽酒店智显屏全新上市!引领智慧酒店新形态
- ZCG宣布与法拉利车队继续合作
- 创意驱动增长,Adobe护城河够深吗?
- Telegram批量私信工具,TG一键群发私信助手,电报群发私信软件
- Instagram营销软件 - ins群发软件/ig群发工具/ins营销助手
- 推动新质生产力发展,开年之际商越持续助力多家大中企业采购降本增效
- 欧美用户真实反馈!他们为什么选择爱可声助听器?
- WhatsApp协议号的用途,ws协议号怎么使用/ws协议号购买指南
- 湖南省委书记沈晓明一行调研走访吉因加,长沙高质量发展再添新动能
- 创意如梦 业务如画 WhatsApp拉群工具为您的品牌敲开创意的大门
- 时空商业的奇迹编织:zalo筛选器推广引发用户共鸣
- Ins/IG群发营销助手大揭秘!Instagram暴力批量私信软件推荐!
- 行业领导者的选择工具 WhatsApp海外营销高手教你如何揭示市场趋势稳占商机
- 代写CSC325 COURSEWORK 2
- Instagram营销软件 - ins采集软件/ig采集助手/ins群发助手
推荐
- 如何经营一家好企业,需要具备什么要素特点 我们大多数人刚开始创办一家企业都遇到经营 科技
- 全力打造中国“创业之都”名片,第十届中国创业者大会将在郑州召开 北京创业科创科技中心主办的第十届中国创业 科技
- 疫情期间 这个品牌实现了疯狂扩张 记得第一次喝瑞幸,还是2017年底去北京出差的 科技
- B站更新决策机构名单:共有 29 名掌权管理者,包括陈睿、徐逸、李旎、樊欣等人 1 月 15 日消息,据界面新闻,B站上周发布内部 科技
- 升级的脉脉,正在以招聘业务铺开商业化版图 长久以来,求职信息流不对称、单向的信息传递 科技
- 苹果罕见大降价,华为的压力给到了? 1、苹果官网罕见大降价冲上热搜。原因是苹 科技
- 丰田章男称未来依然需要内燃机 已经启动电动机新项目 尽管电动车在全球范围内持续崛起,但丰田章男 科技
- 智慧驱动 共创未来| 东芝硬盘创新数据存储技术 为期三天的第五届中国(昆明)南亚社会公共安 科技
- 老杨第一次再度抓握住一瓶水,他由此产生了新的憧憬 瘫痪十四年后,老杨第一次再度抓握住一瓶水,他 科技
- 创意驱动增长,Adobe护城河够深吗? Adobe通过其Creative Cloud订阅捆绑包具有 科技