bunwarpj
Class Param

java.lang.Object
  extended by bunwarpj.Param

public class Param
extends java.lang.Object

This class stores the parameters to apply the consistent elastic registration and it is independent of the primary GUI.


Field Summary
 double consistencyWeight
          consistency weight
 double curlWeight
          curl weight
 double divWeight
          divergence weight
 double imageWeight
          image similarity weight
 int img_subsamp_fact
          image subsampling factor (from 0 to 7, representing 2^0=1 to 2^7 = 128)
 double landmarkWeight
          landmark weight
 int max_scale_deformation
          maximum scale deformation (0 - Very Coarse, 1 - Coarse, 2 - Fine, 3 - Very Fine, 4 - Super Fine)
 int min_scale_deformation
          minimum scale deformation (0 - Very Coarse, 1 - Coarse, 2 - Fine, 3 - Very Fine)
 int mode
          mode accuracy mode (0 - Fast, 1 - Accurate, 2 - Mono)
 double stopThreshold
          stopping threshold
 
Constructor Summary
Param()
          Empty constructor
Param(int mode, int img_subsamp_fact, int min_scale_deformation, int max_scale_deformation, double divWeight, double curlWeight, double landmarkWeight, double imageWeight, double consistencyWeight, double stopThreshold)
          Full constructor
 
Method Summary
 boolean showDialog()
          Show modal dialog to collect bUnwarpJ parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mode

public int mode
mode accuracy mode (0 - Fast, 1 - Accurate, 2 - Mono)


img_subsamp_fact

public int img_subsamp_fact
image subsampling factor (from 0 to 7, representing 2^0=1 to 2^7 = 128)


min_scale_deformation

public int min_scale_deformation
minimum scale deformation (0 - Very Coarse, 1 - Coarse, 2 - Fine, 3 - Very Fine)


max_scale_deformation

public int max_scale_deformation
maximum scale deformation (0 - Very Coarse, 1 - Coarse, 2 - Fine, 3 - Very Fine, 4 - Super Fine)


divWeight

public double divWeight
divergence weight


curlWeight

public double curlWeight
curl weight


landmarkWeight

public double landmarkWeight
landmark weight


imageWeight

public double imageWeight
image similarity weight


consistencyWeight

public double consistencyWeight
consistency weight


stopThreshold

public double stopThreshold
stopping threshold

Constructor Detail

Param

public Param()
Empty constructor


Param

public Param(int mode,
             int img_subsamp_fact,
             int min_scale_deformation,
             int max_scale_deformation,
             double divWeight,
             double curlWeight,
             double landmarkWeight,
             double imageWeight,
             double consistencyWeight,
             double stopThreshold)
Full constructor

Parameters:
mode - mode accuracy mode (0 - Fast, 1 - Accurate, 2 - Mono)
img_subsamp_fact - image subsampling factor (from 0 to 7, representing 2^0=1 to 2^7 = 128)
min_scale_deformation - minimum scale deformation (0 - Very Coarse, 1 - Coarse, 2 - Fine, 3 - Very Fine)
max_scale_deformation - maximum scale deformation (0 - Very Coarse, 1 - Coarse, 2 - Fine, 3 - Very Fine, 4 - Super Fine)
divWeight - divergence weight
curlWeight - curl weight
landmarkWeight - landmark weight
imageWeight - image similarity weight
consistencyWeight - consistency weight
stopThreshold - stopping threshold
Method Detail

showDialog

public boolean showDialog()
Show modal dialog to collect bUnwarpJ parameters

Returns:
false if the dialog was canceled or true if it was not.