File: test_ProbeIntensity.js

package info (click to toggle)
itksnap 3.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,196 kB
  • ctags: 9,196
  • sloc: cpp: 62,895; sh: 175; makefile: 13
file content (16 lines) | stat: -rw-r--r-- 332 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// This script positions the cursor and checks image intensity

// Call the open image script
include("Library");

// Open the test image
openMainImage("MRIcrop-orig.gipl.gz");

// Put cursor somewhere
setCursor(75,6,27);

// Check the image intensity
var value = readVoxelIntensity(0);

// Validate
engine.validateValue(value, 54)