Commit f31ddcd6 authored by Aliaksandr Halavatyi's avatar Aliaksandr Halavatyi
Browse files

generating automated Roi names in ZenBlue commander

parent 0dd123c9
......@@ -8,7 +8,7 @@
<version>5.0</version> <relativePath /> </parent> -->
<description>Collection of tools for automated (feedback) microscopy data acquisition and analysis</description>
......@@ -85,6 +85,14 @@ public class ZenBlueCommander implements MicroscopeCommanderInterface{
if (_bleachRois!=null) {
for (Roi thisRoi:_bleachRois){
String roiKey=thisRoi.getName();
if(roiKey==null) {
int counter=0;
do {
roiKey=String.format("R%04d", counter);
} while (jrois.names().contains(roiKey));
JsonObject currentJRoi=new JsonObject();
int roiType=thisRoi.getType();
switch (roiType){
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment