* range.
*/
private KernelJAI _filterAssigner(int choice) throws IllegalActionException {
switch (choice) {
case _BACKDIAGONAL:
return new KernelJAI(3, 3, _backDiagonalFilter);
case _DIAGONAL:
return new KernelJAI(3, 3, _diagonalFilter);
case _FREICHEN_HORIZONTAL:
return new KernelJAI(3, 3, _freiAndChenHorizontalFilter);
case _FREICHEN_VERTICAL:
return new KernelJAI(3, 3, _freiAndChenVerticalFilter);
case _PREWITT_HORIZONTAL:
return new KernelJAI(3, 3, _prewittHorizontalFilter);
case _PREWITT_VERTICAL:
return new KernelJAI(3, 3, _prewittVerticalFilter);
case _ROBERTS_HORIZONTAL:
return new KernelJAI(3, 3, _robertsHorizontalFilter);
case _ROBERTS_VERTICAL:
return new KernelJAI(3, 3, _robertsVerticalFilter);
case _SOBEL_HORIZONTAL:
return new KernelJAI(3, 3, _sobelHorizontalFilter);
case _SOBEL_VERTICAL:
return new KernelJAI(3, 3, _sobelVerticalFilter);
case _TRANSPARENT:
return new KernelJAI(3, 3, _transparentFilter);
case _ZERO_FILTER:
return new KernelJAI(3, 3, _zeroFilter);
default:
throw new IllegalActionException("Could not assign filter");
}
}