Skip to content

Commit 21adf17

Browse files
committed
misc improvements/minor code cleanup
1 parent b2f4796 commit 21adf17

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎src/main/java/sc/fiji/snt/PathManagerUI.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4203,7 +4203,7 @@ private String buildAnalysisMessage(final RelationshipAnalysis analysis) {
42034203
} else {
42044204
sb.append("<b>✓ No issues detected</b><br><br>");
42054205
sb.append("All ").append(analysis.totalPaths).append(" path(s) in ")
4206-
.append(analysis.currentTreeCount).append(" tree(s) appear correctly connected.<br><br>");
4206+
.append(analysis.currentTreeCount).append(" tree(s) appear to have valid connections.<br><br>");
42074207
sb.append("Rebuild anyway? This will reset all tree IDs and recalculate orders.");
42084208
}
42094209

‎src/main/java/sc/fiji/snt/plugin/GWDTTracerCmd.java‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
*
5959
* @author Tiago Ferreira
6060
*/
61-
@Plugin(type = Command.class, label = "Automated Tracing: Tree from Grayscale Image (GWDT)...", initializer = "init")
61+
@Plugin(type = Command.class, label = "Autotracing Grayscale Data (GWDT)...", initializer = "init")
6262
public class GWDTTracerCmd extends CommonDynamicCmd {
6363

6464
// ROI strategy constants
@@ -69,8 +69,9 @@ public class GWDTTracerCmd extends CommonDynamicCmd {
6969
private static final String IMG_TRACED_CHOICE = "Image being traced";
7070

7171
@Parameter(required = false, persist = false, visibility = ItemVisibility.MESSAGE)
72-
private final String msg1 = "<HTML>This command traces neurons directly from grayscale images using Gray-Weighted<br>" +
73-
"Distance Transform (GWDT) and Fast Marching. It does not require binarization.";
72+
private final String msg1 = "<HTML>This command traces neurons directly from grayscale images (no binarization<br>" +
73+
"required). Results can be refined using edit commands in Path Manager and<br>" +
74+
"image context menu.";
7475

7576
@Parameter(required = false, persist = false, visibility = ItemVisibility.MESSAGE)
7677
private String HEADER1 = "<HTML>&nbsp;<br><b>I. Input Image";

‎src/main/java/sc/fiji/snt/plugin/SomaDetectorCmd.java‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public class SomaDetectorCmd extends CommonDynamicCmd {
5757
private static final String OUTPUT_PATH = "Single-node path";
5858

5959
private static final String SCOPE_ALL = "All somata in image";
60-
private static final String SCOPE_BRIGHTEST = "Brightest soma only";
60+
private static final String SCOPE_BRIGHTEST = "Brightest/largest soma only";
6161

62-
@Parameter(label = "Output type", choices = {OUTPUT_PATH, OUTPUT_POINT_ROI, OUTPUT_AREA_ROI, OUTPUT_CIRCLE_ROI},
62+
@Parameter(label = "Output type", choices = {OUTPUT_PATH, OUTPUT_AREA_ROI, OUTPUT_CIRCLE_ROI, OUTPUT_POINT_ROI},
6363
style = ChoiceWidget.RADIO_BUTTON_VERTICAL_STYLE,
6464
description = "<HTML>Type of output:<br>" +
6565
"<b>Single-node path</b>: Single node path at soma center w/ radius from distance transform<br>" +
@@ -73,7 +73,7 @@ public class SomaDetectorCmd extends CommonDynamicCmd {
7373
callback = "scopeChoiceChanged",
7474
description = "<HTML>Detection scope:<br>" +
7575
"<b>All somata</b>: Detect all cell bodies in image<br>" +
76-
"<b>Brightest only</b>: Detect single brightest/thickest soma")
76+
"<b>Brightest only</b>: Detect single brightest/largest soma")
7777
private String scopeChoice;
7878

7979
@Parameter(label = "Threshold", min = "-1", required = false,
@@ -83,9 +83,9 @@ public class SomaDetectorCmd extends CommonDynamicCmd {
8383

8484
@Parameter(label = "Min. radius", min = "1", required = false,
8585
description = "<HTML>Minimum soma radius <b>in pixels</b>.<br>" +
86-
"Only applies when detecting all somata.<br>" +
86+
"Only applies when detecting <b>" + SCOPE_ALL +"</b>.<br>" +
8787
"Smaller detections are filtered out as noise.<br>" +
88-
"Default: 10")
88+
"Default: 10 pixels")
8989
private double minRadius = 10;
9090

9191
private ImagePlus imp;
@@ -99,6 +99,7 @@ private void init() {
9999
if (imp == null || img == null) {
100100
error("No valid image data available.");
101101
}
102+
getInfo().setLabel(String.format("Detect Soma [C=%d;T=%d]...", snt.getChannel(), snt.getFrame()));
102103
scopeChoiceChanged();
103104
}
104105

0 commit comments

Comments
 (0)