1 package org.jmage.filter; 2 3 import javax.media.jai.PlanarImage; 4 5 /*** 6 * Implement for picture modification in JAI. Implementing filters should be able to 7 * handle images up to 4 bands in ComponentColorSpace and IndexColorSpace. 8 */ 9 public interface ImageFilter { 10 11 /*** 12 * Filter an image and return the results, which may be a different instance of PlanarImage 13 * 14 * @param image the image 15 * @return the filtered image 16 * @throws FilterException if an error occurs during filtering 17 */ 18 PlanarImage filter(PlanarImage image) throws FilterException; 19 }