Case 1
=======================================================================
"Minimum valence" cannot be set greater than "Maximum valence"
=======================================================================
Steps
-----------------------------------------------------------------------
1. Open the sample: File > Open Samples > Bat Cochlea Volume
2. Run Plugins > BoneJ > Inter-trabecular angles
3. Slide "Maximum valence" to 5 
4. Slide "Minimum valence" to 6

Expected result
-----------------------------------------------------------------------
"Minimum valance" is set to 5

Completed 16 June 2017 Alessandro Felder
-----------------------------------------------------------------------


Case 2
=======================================================================
Test that plugin processes the largest skeleton
=======================================================================
Steps
-----------------------------------------------------------------------
1. Open the sample: File > Open Samples > Tree Rings
2. Run Process > Binary > Make Binary
3. Convert image to skeleton BoneJ > Skeletonise
4. Run Plugins > BoneJ > Inter-trabecular angles
	
	pruning = None
	all tick boxes = false

5. Run Plugins > BoneJ > Inter-trabecular angles

	valence range 3-50
	minimum length = 0
	all tick boxes = false
	
Expected result
-----------------------------------------------------------------------
Analyse skeleton shows that the image has one skeleton that's
significantly larger than the others (> 1000 branches). Check that
ITA processes that and shows more than 1000 rows.
 
Completed 16 June 2017 Alessandro Felder
-----------------------------------------------------------------------


Case 3
=======================================================================
Test that plugin returns expected culling percentages
=======================================================================
Steps
-----------------------------------------------------------------------
1. Open the sample: File > Open Samples > Tree Rings
2. Run Process > Binary > Make Binary
3. Run Plugins > BoneJ > Inter-trabecular angles with
	- valence range 3-50
	- minimum trabecular length = 5
	- margin = 0
	- iterate pruning = false
	- use clusters = true
	- print centroids = false
	- print % culled edges = true
	
Expected result
-----------------------------------------------------------------------
Edge culling percentages correspond to 
loops			    repeated		    short edges		    dead ends edges
0.7867132867132868	4.108391608391608	25.961538461538463	5.244755244755245

Completed 19 June 2018 Richard Domander
-----------------------------------------------------------------------


Case 4
=======================================================================
Test calibration affects the number of pruned edges
=======================================================================
Steps
-----------------------------------------------------------------------
1. Open the sample: File > Open Samples > Bat Cochlea Volume
2. Run Plugins > BoneJ > Inter-trabecular angles
	- valence range 3-50
	- minimum trabecular length = 3
	- margin = 0
	- iterate pruning = false
	- use clusters = true
	- print centroids = false
	- print % culled edges = true
3. Close all windows except for the Bat Cochlea image
4. Set scale on Bat Cochlea: Analyze > Set scale...
   - Distance in pixels: 1
   - Known distance: 3.0
   - Pixel aspect ratio: 3
   - Unit: mm
4. Run Plugin > BoneJ > Inter-trabecular angles with same settings
5. Click OK on the anisotropy warning

Expected result
-----------------------------------------------------------------------
Dead-end percentage changes after the second run

Completed 19 June 2018 Richard Domander
-----------------------------------------------------------------------