public static void CalculateSobel(Index2 index, ArrayView2D <short> result, ArrayView3D <short> accumulatedSobel) { var val = KernelHelpers.Magnitude(accumulatedSobel, index); result[index] = val; }
public static void AccumulateSobelMap(Index3 index, ArrayView3D <short> result, ArrayView3D <short> hSobel, ArrayView3D <short> vSobel) { result[index] = KernelHelpers.Magnitude(hSobel[index], vSobel[index]); }