3
3
*
4
4
* ImageJ toolset that renames selections stored in the ROI Manager. Supersedes the
5
5
* 'Rename and Save ROI Set.txt' macro. Save this file in ImageJ/macros/toolsets/,
6
- * then use the '>>' drop down menu to activate it. Requires IJ 1.49 or newer.
6
+ * then use the '>>' drop down menu to activate it. Requires IJ 1.50b or newer.
7
7
*
8
8
* TF, 2015.08, Change log: See https://github.com/tferr/Scripts/releases
9
9
*/
@@ -14,7 +14,7 @@ var suffixs= getPrefList("suffixes");
14
14
var oldstr= "", newstr= "", usenames;
15
15
16
16
macro "AutoRun" {
17
- requires("1.49v ");
17
+ requires("1.50b ");
18
18
setOption("Display label", true);
19
19
run("ROI Manager...");
20
20
}
@@ -43,11 +43,6 @@ macro "Settings Menu Tool - C037D3eD4eD5eD6bD6cD6dD7aD89D98Da7Db6Dc6Dd6De4De5D2a
43
43
+"\"<tt>[0-9&&[^1]]\</tt>\" to find a digit that is not 1, or \"<tt>-.*-\</tt>\" to "
44
44
+"find<br>any character sequence flanked by hyphens. You may need to<br>"
45
45
+"escape metacharacters ('.', '[', ']', '^', '$', etc.) by a backslash.";
46
- if (rplc) {
47
- help+= "<br><br>"
48
- +"Note that replaced patterns should always give rise to unique<br>"
49
- +"names as the ROI Manager cannot cope with duplicated entries.";
50
- }
51
46
Dialog.create(cmd);
52
47
Dialog.addString("Find:", oldstr, 18);
53
48
if (rplc)
@@ -143,18 +138,18 @@ macro "Save all regions Menu Tool - C037D11D12D13D14D15D16D17D18D19D1aD1bD1cD21D
143
138
}
144
139
145
140
macro "Help Action Tool - C037T3e16?" {
146
- help= "<html>The ROI Manager <i>Rename...</i> command cannot rename multiple ROIs, requiring user<br>"
147
- +"input each time it is used. This set of tools addresses this issue by using 3 types of<br>"
148
- +"predefined labels: \"Tags\", \"Prefixes\" and \"Suffixes\", specified in the <i>Settings</i> Menu.<br>"
149
- +"Tags rename ROIs, prefixes and suffixes are appended to the listed name.<br><br>"
141
+ help= "<html>The ROI Manager <i>Rename...</i> command requires user input each time it is used,<br>"
142
+ +"becoming combersome when working with multip ROIs. This set of tools addresses<br>"
143
+ +"this issue by using 3 types of predefined labels: \"Tags\", \"Prefixes\" and \"Suffixes\",<br>"
144
+ +"specified in the <i>Settings</i> Menu. Tags rename ROIs, prefixes and suffixes are<br>"
145
+ +"appended to the ROI name.<br><br>"
150
146
+"To rename multiple ROIs, press <i>Deselect</i> in the ROI Manager, and choose a label<br>"
151
- +"from one of menus. Alternatively, choose <i>Rename by pattern...</i> from the Settings<br>"
152
- +"menu. In both cases, you can specify the Range of ROIs to be renamed, as when<br>"
147
+ +"from one of menus. Alternatively, choose <i>Rename by pattern...</i> from the <i> Settings</i> <br>"
148
+ +"menu. In both cases, you can specify the range of ROIs to be renamed, as when<br>"
153
149
+"using the ROI Manager <i>Properties...</i> command.<br><br>"
154
- +"To rename single ROIs, use the <i>Selection cycler</i> to walk through the listed ROIs one<<br>"
155
- +"item at a time.<br><br>"
156
- +"Use the <i>Save</i> menu to store all ROIs in a .zip file named after the active image.<br><br>"
157
- +"You may need to stretch the ROI Manager window to accommodate long ROI names.";
150
+ +"To rename single ROIs, use the <i>Selection cycler</i> to walk through the listed ROIs<br>"
151
+ +"one item at a time.<br><br>"
152
+ +"Use the <i>Save</i> menu to store all ROIs in a .zip file named after the active image.";
158
153
showMessage("ROI Manager Tools", help);
159
154
}
160
155
0 commit comments