Interface BlockRowScoreSad

public interface BlockRowScoreSad

Computes the Sum of Absolute Difference (SAD) for block matching based algorithms.

Notes on scoreSad():
compute the score for each element all at once to encourage the JVM to optimize and encourage the JVM to optimize this section of code.

Was original inline, but was actually slightly slower by about 3% consistently, It is in its own function so that it can be overridden and have different cost functions inserted easily.