public class ModalImageKernel extends Object implements ImageKernel
ImageKernel
that has JNI and pure Java bindings.Constructor and Description |
---|
ModalImageKernel()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
createIntegralHistogram(double[] srcV,
int[] srcD,
int[] srcS,
int[] memV,
double[] dstV,
int[] dstD,
int[] dstS)
Creates an integral histogram.
|
void |
createIntegralImage(double[] srcV,
int[] srcD,
int[] srcS,
double[] dstV,
int[] dstD,
int[] dstS)
Creates an integral image.
|
void |
useJava()
Uses the underlying
JavaImageKernel . |
boolean |
useRegisteredKernel()
Attempts to use the
ImageKernel obtained from Services.createService(Class) . |
public ModalImageKernel()
NativeImageKernel
. Failing that, creates an underlying
JavaImageKernel
.public boolean useRegisteredKernel()
ImageKernel
obtained from Services.createService(Class)
.true
if and only if an implementation could be obtained without resorting to the default kernel.public void useJava()
JavaImageKernel
.public void createIntegralImage(double[] srcV, int[] srcD, int[] srcS, double[] dstV, int[] dstD, int[] dstS)
ImageKernel
createIntegralImage
in interface ImageKernel
srcV
- the source values.srcD
- the source dimensions.srcS
- the source strides.dstV
- the destination values.dstD
- the destination dimensions.dstS
- the destination strides.public void createIntegralHistogram(double[] srcV, int[] srcD, int[] srcS, int[] memV, double[] dstV, int[] dstD, int[] dstS)
ImageKernel
createIntegralHistogram
in interface ImageKernel
srcV
- the source values.srcD
- the source dimensions.srcS
- the source strides.memV
- the class memberships.dstV
- the destination values.dstD
- the destination dimensions.dstS
- the destination strides.