public class GradientSobel_Outer
extends java.lang.Object
While not as fast as GradientSobel it a big improvement over GradientSobel_Naive and much
more readable. The general idea is that the outer diagonal elements are both read by the horizontal
and vertical operations. This can be taken advantage of with some simple arithmetic to reduce the number
of floating point operations and matrix reads and writes.
This code is being saved to avoid repeating past work and make it easier to understand other implementations.
GradientSobel| Constructor and Description |
|---|
GradientSobel_Outer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
process_F32(GrayF32 orig,
GrayF32 derivX,
GrayF32 derivY)
Computes derivative of GrayF32.
|
static void |
process_I8_sub(GrayS16 orig,
GrayS16 derivX,
GrayS16 derivY) |
static void |
process_I8_sub(GrayU8 orig,
GrayS16 derivX,
GrayS16 derivY)
Computes derivative of GrayU8.
|
static void |
process_I8(GrayU8 orig,
GrayS16 derivX,
GrayS16 derivY)
Computes derivative of GrayU8.
|
public static void process_I8(GrayU8 orig, GrayS16 derivX, GrayS16 derivY)
public static void process_I8_sub(GrayU8 orig, GrayS16 derivX, GrayS16 derivY)