Ejemplo n.º 1
0
 @Override
 public void run(ImageProcessor ip) {
   if (!ColorProcessor.class.isAssignableFrom(ip.getClass())) {
     ip = ip.convertToRGB();
   }
   firePropertyChange(Progress.START);
   process((ColorProcessor) ip);
   firePropertyChange(Progress.END);
 }
Ejemplo n.º 2
0
 /**
  * Starts the haralick detection.
  *
  * @param ip ImageProcessor of the source image
  */
 @Override
 public void run(ImageProcessor ip) {
   if (!ByteProcessor.class.isAssignableFrom(ip.getClass())) {
     ip = ip.convertToByte(true);
   }
   firePropertyChange(Progress.START);
   process((ByteProcessor) ip);
   addData(features);
   firePropertyChange(Progress.END);
 }