try {
// oneRoi = RoiName,shape, LineSize, X, Y, Width,
// Height, Color
// CometeRoi r = new CometeRoi()
addRoi(new CometeRoi(oneRoi[0].trim(), shape, Integer.parseInt(oneRoi[2].trim()), Integer.parseInt(oneRoi[3].trim()), Integer.parseInt(oneRoi[4].trim()), Integer
.parseInt(oneRoi[5].trim()), Integer.parseInt(oneRoi[6].trim()), color));
} catch (final NumberFormatException e) {
System.err.println("Invalid ROI not added, the correct value must be RoiName,shape, LineSize, X, Y, Width, Height, Color");
} catch (final Exception e) {