英语翻译
Step4
Oncetheedgedirectionisknown,thenextstepistorelatetheedgedirectiontoadirectionthatcanbetracedinanimage.Soifthepixelsofa5x5imagearealignedasfollows:
Then,itcanbeseenbylookingatpixel"a",thereareonlyfourpossibledirectionswhendescribingthesurroundingpixels-0degrees(inthehorizontaldirection),45degrees(alongthepositivediagonal),90degrees(intheverticaldirection),or135degrees(alongthenegativediagonal).Sonowtheedgeorientationhastoberesolvedintooneofthesefourdirectionsdependingonwhichdirectionitisclosestto(e.g.iftheorientationangleisfoundtobe3degrees,makeitzerodegrees).Thinkofthisastakingasemicircleanddividingitinto5regions.
Therefore,anyedgedirectionfallingwithintheyellowrange(0to22.5&157.5to180degrees)issetto0degrees.Anyedgedirectionfallinginthegreenrange(22.5to67.5degrees)issetto45degrees.Anyedgedirectionfallinginthebluerange(67.5to112.5degrees)issetto90degrees.Andfinally,anyedgedirectionfallingwithintheredrange(112.5to157.5degrees)issetto135degrees.
Step5
Aftertheedgedirectionsareknown,nonmaximumsuppressionnowhastobeapplied.Nonmaximumsuppressionisusedtotracealongtheedgeintheedgedirectionandsuppressanypixelvalue(setsitequalto0)thatisnotconsideredtobeanedge.Thiswillgiveathinlineintheoutputimage.
不要用机译,可以软件辅助,但要整理好并使用专业词汇,翻译好的话可以加分