1- # 3D Objects Counter+ — Java API
1+ # 3D Objects Counter+ - Java API
22
33The plugin exposes its engine as a small public API so it can be used as a
44library from any Java code running inside Fiji (or any JVM with the
@@ -16,7 +16,7 @@ necessary jars on the classpath).
1616```
1717
1818This plugin's only runtime requirements are the native Fiji
19- ` 3D_Objects_Counter ` and ` mcib3d-core ` jars — both supplied by Fiji's core
19+ ` 3D_Objects_Counter ` and ` mcib3d-core ` jars - both supplied by Fiji's core
2020update site and the standard 3D ImageJ Suite. Once the 3D Objects Counter+
2121update site is published, users running that update site should have the
2222needed jars.
@@ -27,13 +27,13 @@ All under `sc.fiji.oc3dplus.api`.
2727
2828| Class | Purpose |
2929| --- | --- |
30- | ` OC3DPlus ` | Static façade with ` count() ` , ` detect() ` , ` countAll() ` , ` builder() ` . |
30+ | ` OC3DPlus ` | Static facade with ` count() ` , ` detect() ` , ` countAll() ` , ` builder() ` . |
3131| ` OC3DPlus.Builder ` | Fluent builder for ` OC3DPlusParameters ` . |
3232| ` OC3DPlusParameters ` | Immutable parameter bundle. |
3333| ` OC3DPlusResult ` | Per-call result: stats, label image, per-filter survivor counts. |
3434| ` MorphPredicate ` | Single ` feature OP value ` filter. ` parse() ` / ` format() ` for macro use. |
3535
36- ## Example 1 — simple count, no filters
36+ ## Example 1 - simple count, no filters
3737
3838``` java
3939import ij.ImagePlus ;
@@ -54,7 +54,7 @@ System.out.println("Objects: " + result.objectCount());
5454result. statistics(). show(" OC3D+ Results" );
5555```
5656
57- ## Example 2 — with morph filtering
57+ ## Example 2 - with morph filtering
5858
5959``` java
6060import ij.ImagePlus ;
@@ -82,7 +82,7 @@ for (int i = 0; i < labels.length; i++) {
8282}
8383```
8484
85- ## Example 3 — headless batch (parallel)
85+ ## Example 3 - headless batch (parallel)
8686
8787``` java
8888import ij.ImagePlus ;
@@ -108,11 +108,11 @@ for (int i = 0; i < images.size(); i++) {
108108}
109109```
110110
111- ` countAll ` shares no state across threads — ` params ` is immutable and each
111+ ` countAll ` shares no state across threads - ` params ` is immutable and each
112112worker constructs its own engine instance. Results are returned in input
113113order.
114114
115- The Java façade methods return ` OC3DPlusResult ` objects directly. They do not
115+ The Java facade methods return ` OC3DPlusResult ` objects directly. They do not
116116show images, open table windows, mutate the input image, or write to ImageJ's
117117global Results window; callers choose what to display or save. The engine may
118118update ImageJ status text while it runs.
@@ -122,7 +122,7 @@ update ImageJ status text while it runs.
122122| Feature name | Source | Units |
123123| --- | --- | --- |
124124| ` volume ` | ` MeasureVolume.getVolumePix ` | voxels |
125- | ` surface_area ` | ` MeasureSurface.getSurfaceContactUnit ` | calibrated² |
125+ | ` surface_area ` | ` MeasureSurface.getSurfaceContactUnit ` | calibrated^2 |
126126| ` sphericity ` | ` MeasureCompactness.SPHER_CORRECTED ` | unitless 0..1 |
127127| ` compactness ` | ` MeasureCompactness.COMP_CORRECTED ` | unitless |
128128| ` elongation ` | ` MeasureEllipsoid.ELL_ELONGATION ` | unitless |
0 commit comments