|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaitools.media.jai.kernel.KernelUtil
public class KernelUtil
Static utility methods for KernelJAI objects.
| Constructor Summary | |
|---|---|
KernelUtil()
|
|
| Method Summary | |
|---|---|
static String |
kernelToString(javax.media.jai.KernelJAI kernel,
boolean multiLine)
A utility function that returns a string representation of a KernelJAI object's data. |
static javax.media.jai.KernelJAI |
setElement(javax.media.jai.KernelJAI kernel,
int x,
int y,
float newValue)
Creates a new kernel by copying the one provided and setting the element at (x, y) to value. |
static javax.media.jai.KernelJAI |
standardize(javax.media.jai.KernelJAI kernel)
Create a copy of the input kernel with element values standardized to sum to 1.0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KernelUtil()
| Method Detail |
|---|
public static javax.media.jai.KernelJAI standardize(javax.media.jai.KernelJAI kernel)
kernel - the input kernel
public static javax.media.jai.KernelJAI setElement(javax.media.jai.KernelJAI kernel,
int x,
int y,
float newValue)
(x, y) to value.
kernel - the existing kernelx - element X ordinatey - element Y ordinatenewValue - new element value
IllegalArgumentException - if kernel is null or
x or y are out of bounds
public static String kernelToString(javax.media.jai.KernelJAI kernel,
boolean multiLine)
kernel - the input kernelmultiLine - if true, each row of kernel data is followed by a newline;
if false, the string contains no newlines
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||