




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chapter2
DigitalImageFundamentalsChapter2
DigitalImageFundamentals2.1ElementsofVisualPerception2.2Light&EMSpectrum2.3ImageSensing&Acquisition2.3.4AsimpleImageFormationModelf(x,y)=i(x,y)r(x,y)i(x,y):illuminationcomponents,0<i(x,y)<∞r(x,y):reflectancecomponents,0<r(x,y)<12.4.1BasicConceptinSampling&Quantization2.4.1BasicConceptinSampling&Quantization2.4.1BasicConceptinSampling&Quantization2.4.2RepresentingDigitalImageMatrixor2-DArray2.4.3Spatial&IntensityResolutionSpatialResolutionLinepairsperunitdistanceDots(pixels)perunitdistanceDpi:dotperinchSpatialresolutionisameasureoftheaccuracyordetailofagraphicdisplay,expressedasdotsperinch,pixelsperinch,linesperinch,etc.SpatialResolution
Exercise10inch,1024X768SpatialResolution=?ExerciseDiagonallength=10inch2.4.3Spatial&IntensityResolutionIntensityResolutionIntensityLevelUsuallyisanintegerpoweroftwo8bitsHDMI
1.3
support10bits,12bits,16bitsforeachcolorcomponent(channel)IntensityResolutionIntensityResolutionHowtogetn-bitsimage?7bit6bit5bit4bit3bit2bit1bit0bit007bit6bit5bit4bit3bit2bit7bit6bit5bit4bit3bit2bit00>><<IntensityResolution[Programming]Exercise:byte[,]get_n_bits_image(byte[,]f,intn);2.5SameBasicRelationshipbetweenpixels2.5.1Neighborsofapixel2.5.1Neighborsofapixelp:(x,y)4-Neighborsofp:N4(p)={(x+1,y),(x-1,y),(x,y+1),(x,y-1)}2.5.1Neighborsofapixelp:(x,y)D-Neighbors(Diagonal-Neighbors)ofp:ND(p)={(x+1,y+1),(x-1,y+1),(x+1,y-1),(x-1,y-1)}2.5.1Neighborsofapixelp:(x,y)8-Neighborsofp:N8(p)=N4(p)UND(p)2.5.2Adjacency,Connectivity,RegionandBoundariesAdjacencyBinaryimage:Intensity{0,1}Usually0meansbackgroundand1meansforeground
0000000000000000000110000011110000111100001111000000000000000000AdjacencyBothpandqareintheforeground(V:{1})4-adjacency:qinN4(p)8-adacency:qinN8(p)m-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})Adjacencym-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})00000011010001m-Adjacencyp:(yellow),q:(green)BluebackgroundpixelmeanssetN4(p)∩N4(q)m-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})00000000000000000000000000000m-Adjacencyp:(yellow),q:(blue)BluebackgroundpixelmeanssetN4(p)∩N4(q)m-adjacency(mixedadjacency)qinN4(p)orqinN8(p)andthesetN4(p)∩N4(q)hasnopixelswhosevaluearefromV(V:{1})00000[Programing]boolIs_4adjacent(intpx,intpy,intqx,intqy);boolIs_8adjacent(intpx,intpy,intqx,intqy);BoolIs_m_adjacent(byte[,]f,intpx,intpy,intqx,intqy);DigitalPathDigitalPathfrompixelptopixelqisasequenceofdistinctpixelswithcoordinates(x0,y0),(x1,y1),…,(xn,yn)where(xi-1,yi-1)and(xi,yi)areadjacent,i:[1..n]DigitalPathp6p7p8p9=qp5p4p3p2p1p0=pDigitalPath(Closed)p6p7p8p9p5p10p4p11p3p12p2P13=qp1p0=pConnectedSet(Region)ConnectedSet(Region)qqpPS2S1AdjacentRegionsIfRiURjisaconnectedset,RiandRjaraadjacentregions.RjRiDisjointRegionsNotAdjacentForeground/BackgroundBFForeground/BackgroundKdisjointregions,Rk,k=1,2,..,KRu=R1UR2U…URK(Ru)c,cmeanscomplementForeground:RuBackground:(Ru)cForeground/BackgroundB:(Ru)cF:RuBoundary(Border/Contour)ofRegionInnerBorderofRegionB(in)={(x,y)|(x,y)∈R,(x,y)adjacentto(R)c}p4p5P6p7p8P3p9P2p12p11p10P1p13p0p15p14Exercise:
byte[,]getInnerBorder(byte[,]f)Intput:fisabinaryimage,0meansbackgroundand255meansforeground(regions)Output:binaryimage.255meansinnerbordersoftheregionsininputimageBoundary(Border/Contour)ofRegionInnerBorderofRegionExercise:
byte[,]getOuterBorder(byte[,]f)OuterBorderofRegionB(out)={(x,y)|(x,y)∈(R)c,(x,y)adjacenttoR}Exercise:
byte[,]getOuterBorder(byte[,]f)Intput:fisabinaryimage,0meansbackgroundand255meansforeground(regions)Output:binaryimage.255meansouterbordersoftheregionsininputimage2.5.3DistanceMeasureDistanceFunctionp(x,y),q(s,t),z(u,v)D(p,q)≥0,D(p,q)=0iffp=qD(p,q)=D(q,p)D(p,z)≤D(p,q)+D(q,z)2.5.3DistanceMeasureEuclideandistance[Eu’cl[ai]dean] 2.5.3DistanceMeasureCity-blockdistanceD4(p,q)=│x-s│+│y-t│;p:(x,y),q(s,t)2.5.3DistanceMeasureChessboarddistanceD8(p,q)=max(│x-s│,│y-t│) chessman:king2.5.3DistanceMeasureChessboarddistanceqPExerciseMax(De,D4,D8)=?Min(De,D4,D8)=?D4(p,q)=│x-s│+│y-t│D8(p,q)=max(│x-s│,│y-t│)Exerc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 水泥购销合同协议
- 环保水处理项目合作框架协议
- 学校食堂蔬菜采购合同
- 股份制企业的合同文书规范与管理
- 蔬菜种植合作的协议书(3篇)
- 两人合作合同
- 环保产业技术创新与应用合同
- 公司股权分配合同协议年
- 派遣合同就业协议书
- 人才委托协议
- 2025年2级注册计量师专业实务真题附答案
- 2025年春季学期教导处工作计划及安排表
- 果实品质评价体系建立与应用-深度研究
- 人教版小学六年级下册音乐教案全册
- 12J201平屋面建筑构造图集(完整版)
- 20CS03-1一体化预制泵站选用与安装一
- (完整版)四年级上册数学竖式计算题100题直接打印版
- 数理统计考试试卷及答案解析
- 排水沟施工合同电子版(精选5篇)
- 《酒店品牌建设与管理》课程教学大纲
- 大气商务企业培训之团队合作的重要性PPT模板
评论
0/150
提交评论