Kirsch operator

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

The Kirsch operator or Kirsch compass kernel is a non-linear edge detector that finds the maximum edge strength in a few predetermined directions. It is named after the computer scientist Russell Kirsch.

Mathematical description

[edit | edit source]

The operator takes a single kernel mask and rotates it in 45 degree increments through all 8 compass directions: N, NW, W, SW, S, SE, E, and NE. The edge magnitude of the Kirsch operator is calculated as the maximum magnitude across all directions:

hn,m=maxz=1,,8i=11j=11gij(z)fn+i,m+j

where z enumerates the compass direction kernels g:

𝐠(𝟏)=[+5+5+5303333], 𝐠(𝟐)=[+5+53+503333], 𝐠(𝟑)=[+533+503+533], 𝐠(𝟒)=[333+503+5+53] and so on.

The edge direction is defined by the mask that produces the maximum edge magnitude.

Example images

[edit | edit source]

References

[edit | edit source]
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).