Builds the gdistance transition (conductance) layer used for least
cost paths and corridors. Conductance between neighboring cells is the
inverse of their mean resistance, corrected for diagonal steps. Cells at or
above barrier (for example ridgelines scored as impassable) and NA cells
cannot be crossed.
Examples
# \donttest{
ex <- corridor_example()
tr <- make_transition(ex$resistance)
# }