Expand description
Boundary modes for the ndimage-style routines (rank filters, morphology, derivative filters
and geometric transforms), with SciPy’s names and meanings.
For a row a b c d, the modes extend it as:
Reflect:d c b abefore andd c b aafter (the edge sample is repeated);Mirror:d c bbefore andc b aafter (reflection about the centre of the edge sample);Nearest:a a abefore andd d dafter;Constant(k):k k kon both sides;Wrap:b c dbefore anda b cafter.
Enums§
- Mode
- How values beyond the edge of an image are supplied (SciPy’s
mode).
Functions§
- mode_
index - Maps an index into
0..nfor a mode;Nonemeans “outside, use the constant”. - sample
- The value at
(r, c)of an image extended bymode.