@Override public void run(ImageProcessor ip) { if (!ColorProcessor.class.isAssignableFrom(ip.getClass())) { ip = ip.convertToRGB(); } firePropertyChange(Progress.START); process((ColorProcessor) ip); firePropertyChange(Progress.END); }
/** * 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); }