Skip to content

Commit

Permalink
Adds global statistics demo
Browse files Browse the repository at this point in the history
  • Loading branch information
lacan committed Sep 30, 2024
1 parent d2868b5 commit 043be90
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/GlobalStatistics.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import ch.epfl.biop.imaris.EasyXT
import ch.epfl.biop.imaris.StatsQuery

// Using StatsQuery to get global statistics

image_path = EasyXT.Samples.getImarisDemoFile("celldemo.ims")
println image_path

EasyXT.Files.openImage(image_path)

def volume = EasyXT.Scene.findItem( "Volume")
def globalStats = new StatsQuery( volume ).globalStats().get()
globalStats.show("Global Statistics")


0 comments on commit 043be90

Please sign in to comment.