Skip to content

Commit 397ebe2

Browse files
gselzerctrueden
authored andcommitted
Update docs
1 parent cf95df5 commit 397ebe2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/ops/doc/examples/mesh_viz.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ The following script accepts the binary dataset as its sole input, and creates t
6161
mesh = ops.op("geom.marchingCubes").input(mask).apply()
6262
println("mesh = ${mesh} [${mesh.triangles().size()} triangles, ${mesh.vertices().size()} vertices]")
6363

64-
meshVolume = ops.op("geom.size").input(mesh).apply().getRealDouble()
64+
meshVolume = ops.op("geom.size").input(mesh).apply()
6565
println("mesh volume = " + meshVolume)
6666

6767
hull = ops.op("geom.convexHull").input(mesh).apply()
6868
println("hull = ${hull} [${hull.triangles().size()} triangles, ${hull.vertices().size()} vertices]")
6969

70-
hullVolume = ops.op("geom.size").input(hull).apply().getRealDouble()
70+
hullVolume = ops.op("geom.size").input(hull).apply()
7171
println("hull volume = $hullVolume")
7272

7373
// Convert ImgLib2 meshes to 3D Viewer meshes.

docs/ops/doc/examples/scyjava.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Activate the ``scijava-ops`` conda/mamba environment and run the following Pytho
121121
"""
122122
mesh = ops.op("geom.marchingCubes").input(rai).apply()
123123
# Mesh volume returned in voxels
124-
volume = ops.op("geom.size").input(mesh).apply().getRealDouble()
124+
volume = ops.op("geom.size").input(mesh).apply()
125125
126126
# Convert voxels to um^3
127127
for c in cal:

docs/ops/doc/examples/volume_labeling.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ In addition to the result tables, the label imdage (also known as an *index imag
273273
ab_table.appendRow()
274274
# measure mesh/sample geometry and stats
275275
ab_table.set("{} size (pixels)".format(ch_a_name), i, ops.op("stats.size").input(sample).apply())
276-
ab_table.set("{} volume (um^3)".format(ch_a_name), i, ops.op("geom.size").input(mesh).apply().getRealFloat() * (x_cal * y_cal * z_cal))
276+
ab_table.set("{} volume (um^3)".format(ch_a_name), i, ops.op("geom.size").input(mesh).apply() * (x_cal * y_cal * z_cal))
277277
ab_table.set("{} sphericity".format(ch_a_name), i, ops.op("geom.sphericity").input(mesh).apply())
278278
i += 1
279279
# create a table for the "B" mask and make measurements
@@ -296,7 +296,7 @@ In addition to the result tables, the label imdage (also known as an *index imag
296296
b_table.appendRow()
297297
# measure mesh/sample geometry and stats
298298
b_table.set("{} size (pixels)".format(ch_b_name), j, ops.op("stats.size").input(sample).apply())
299-
b_table.set("{} volume (um^3)".format(ch_b_name), j, ops.op("geom.size").input(mesh).apply().getRealFloat() * (x_cal * y_cal * z_cal))
299+
b_table.set("{} volume (um^3)".format(ch_b_name), j, ops.op("geom.size").input(mesh).apply() * (x_cal * y_cal * z_cal))
300300
b_table.set("{} sphericity".format(ch_b_name), j, ops.op("geom.sphericity").input(mesh).apply())
301301
j += 1
302302

0 commit comments

Comments
 (0)