Skip to content

Commit 7831d06

Browse files
committed
added appropriate step sizes for paramters
1 parent ad8089c commit 7831d06

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/fiji/plugin/appose/cellpose/cp3/CellposeAppose.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ public class CellposeAppose extends DynamicCommand implements Initializable
7979
@Parameter(label="Compute Flows", description="Compute the segmentation flows output")
8080
private Boolean compute_flows = false; // whether to compute flows channel
8181

82-
@Parameter(label="Flows Threshold", min="0", max="1", description="Threshold on flows to detect objects (only for 2D)")
82+
@Parameter( label = "Flows Threshold", min = "0", max = "1", description = "Threshold on flows to detect objects (only for 2D)", stepSize = "0.1" )
8383
private double flow_threshold = 0.4; // probability threshold on flows
8484

8585
@Parameter(label="Minimum Object Size", min="0", description="Minimum object size (in pixels) to keep")
8686
private int min_size = 15; // minimum object size
8787

88-
@Parameter(label="Tile overlap", min="0", max="1", description="Overlap ratio between tiles")
88+
@Parameter( label = "Tile overlap", min = "0", max = "1", description = "Overlap ratio between tiles", stepSize = "0.1" )
8989
private double tile_overlap = 0.1; // overlap ration between cellpose tiles
9090

9191
@Parameter(label="Normalize", description="Normalize intensity on each channels")
@@ -158,6 +158,7 @@ public void initialize() {
158158
"Stitch threshold", Double.class);
159159
stitch_threshold.setMaximumValue(1.0);
160160
stitch_threshold.setMinimumValue(0.0);
161+
stitch_threshold.setStepSize( 0.1 );
161162
stitch_threshold.setDescription( "2D+stitch mode only: IOU threshold to stitch labels together along the Z-axis" );
162163
getInfo().addInput(stitch_threshold);
163164
}

src/test/java/fiji/plugin/appose/cellpose/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static void main( final String[] args )
1212
final ImageJ ij = new ImageJ();
1313
ij.launch();
1414
IJ.openImage( "http://imagej.net/images/blobs.gif" ).show();
15-
// IJ.openImage( "/Users/strigaud/Libraries/development/FijiWS/cellpose-appose/sample_data/test.tif" ).show();
15+
// IJ.openImage( "sample_data/test.tif" ).show();
1616
ij.command().run( CellposeAppose.class, true );
1717
}
1818
}

0 commit comments

Comments
 (0)