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(ImageFloat32 orig,
ImageFloat32 derivX,
ImageFloat32 derivY)
Computes derivative of ImageFloat32.
|
static void |
process_I8_sub(ImageSInt16 orig,
ImageSInt16 derivX,
ImageSInt16 derivY) |
static void |
process_I8_sub(ImageUInt8 orig,
ImageSInt16 derivX,
ImageSInt16 derivY)
Computes derivative of ImageUInt8.
|
static void |
process_I8(ImageUInt8 orig,
ImageSInt16 derivX,
ImageSInt16 derivY)
Computes derivative of ImageUInt8.
|
public static void process_I8(ImageUInt8 orig, ImageSInt16 derivX, ImageSInt16 derivY)
public static void process_I8_sub(ImageUInt8 orig, ImageSInt16 derivX, ImageSInt16 derivY)
public static void process_I8_sub(ImageSInt16 orig, ImageSInt16 derivX, ImageSInt16 derivY)
public static void process_F32(ImageFloat32 orig, ImageFloat32 derivX, ImageFloat32 derivY)