bunwarpj
Class Transformation.EvaluateConsistencyTile

java.lang.Object
  extended by bunwarpj.Transformation.EvaluateConsistencyTile
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
Transformation

private class Transformation.EvaluateConsistencyTile
extends java.lang.Object
implements java.lang.Runnable

Class to run concurrent consistency evaluation


Field Summary
(package private)  double[] grad_direct
          output direct gradient array
(package private)  double[] grad_inverse
          output inverse gradient array
(package private)  java.awt.Rectangle rect_source
          rectangle marking the source area to be evaluated
(package private)  java.awt.Rectangle rect_target
          rectangle marking the target area to be evaluated
(package private)  double[] result
          direct and inverse consistency error values and number of pixels (f_dir, n_dir, f_inv, n_inv)
(package private)  Transformation transf
          transformation object, it contains all the registration information
 
Constructor Summary
Transformation.EvaluateConsistencyTile(Transformation transf, double[] grad_direct, double[] grad_inverse, double[] result, java.awt.Rectangle rect_target, java.awt.Rectangle rect_source)
          Evaluate consistency tile constructor
 
Method Summary
 void run()
          Run method to evaluate the transformation consistency between source and target images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transf

final Transformation transf
transformation object, it contains all the registration information


grad_direct

final double[] grad_direct
output direct gradient array


grad_inverse

final double[] grad_inverse
output inverse gradient array


result

final double[] result
direct and inverse consistency error values and number of pixels (f_dir, n_dir, f_inv, n_inv)


rect_target

final java.awt.Rectangle rect_target
rectangle marking the target area to be evaluated


rect_source

final java.awt.Rectangle rect_source
rectangle marking the source area to be evaluated

Constructor Detail

Transformation.EvaluateConsistencyTile

Transformation.EvaluateConsistencyTile(Transformation transf,
                                       double[] grad_direct,
                                       double[] grad_inverse,
                                       double[] result,
                                       java.awt.Rectangle rect_target,
                                       java.awt.Rectangle rect_source)
Evaluate consistency tile constructor

Parameters:
transf - transformation object, it contains all the registration information
grad_direct - output direct gradient array
grad_inverse - output inverse gradient array
result - direct and inverse consistency error values and number of pixels (f_dir, n_dir, f_inv, n_inv)
rect_target - rectangle marking the target area to be evaluated
rect_source - rectangle marking the source area to be evaluated
Method Detail

run

public void run()
Run method to evaluate the transformation consistency between source and target images. Only the part defined by the rectangle will be evaluated.

Specified by:
run in interface java.lang.Runnable