try { if (thread==previewThread) runPreview(); else if (roisForThread!=null && roisForThread.containsKey(thread)) { ImageProcessor ip = (ImageProcessor)roisForThread.get(thread);
try { if (thread==previewThread) runPreview(); else if (roisForThread!=null && roisForThread.containsKey(thread)) { ImageProcessor ip = (ImageProcessor)roisForThread.get(thread);