Class ColorFilter

java.lang.Object
org.mycore.iview.tests.image.api.ColorFilter
All Implemented Interfaces:
PixelFilter

public class ColorFilter extends Object implements PixelFilter
  • Constructor Details

    • ColorFilter

      public ColorFilter(Color colorToFilter, boolean throwOut, int tolerance)
  • Method Details

    • filter

      public boolean filter(Pixel pixel)
      Description copied from interface: PixelFilter
      Filters a Pixel
      Specified by:
      filter in interface PixelFilter
      Parameters:
      pixel - the pixel to check
      Returns:
      true if the pixel should be appear in new Selection