bunwarpj
Class Transformation.EvaluateSimilarityTile

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

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

Class to run concurrent similarity evaluation


Field Summary
(package private)  double auxFactorHeight
          factor height
(package private)  double auxFactorWidth
          factor width
(package private)  BSplineModel auxSource
          current source image
(package private)  Mask auxSourceMsk
          source mask
(package private)  BSplineModel auxTarget
          current target image
(package private)  Mask auxTargetMsk
          target mask
(package private)  double[] grad
          similarity gradient
(package private)  int intervals
          number of intervals between B-spline coefficients
(package private)  java.awt.Rectangle rect
          rectangle containing the area of the image to be evaluated
(package private)  double[] result
          evaluation results: image similarity value for the current rectangle and number of pixels that have been evaluated
(package private)  BSplineModel swx
          B-spline deformation in x
(package private)  BSplineModel swy
          B-spline deformation in y
 
Constructor Summary
Transformation.EvaluateSimilarityTile(BSplineModel auxTarget, BSplineModel auxSource, Mask auxTargetMsk, Mask auxSourceMsk, BSplineModel swx, BSplineModel swy, double auxFactorWidth, double auxFactorHeight, int intervals, double[] grad, double[] result, java.awt.Rectangle rect)
          Evaluate similarity tile constructor
 
Method Summary
 void run()
          Run method to evaluate the similarity of source and target images.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

auxTarget

final BSplineModel auxTarget
current target image


auxSource

final BSplineModel auxSource
current source image


auxTargetMsk

final Mask auxTargetMsk
target mask


auxSourceMsk

final Mask auxSourceMsk
source mask


swx

final BSplineModel swx
B-spline deformation in x


swy

final BSplineModel swy
B-spline deformation in y


auxFactorWidth

final double auxFactorWidth
factor width


auxFactorHeight

final double auxFactorHeight
factor height


intervals

final int intervals
number of intervals between B-spline coefficients


grad

final double[] grad
similarity gradient


result

final double[] result
evaluation results: image similarity value for the current rectangle and number of pixels that have been evaluated


rect

final java.awt.Rectangle rect
rectangle containing the area of the image to be evaluated

Constructor Detail

Transformation.EvaluateSimilarityTile

Transformation.EvaluateSimilarityTile(BSplineModel auxTarget,
                                      BSplineModel auxSource,
                                      Mask auxTargetMsk,
                                      Mask auxSourceMsk,
                                      BSplineModel swx,
                                      BSplineModel swy,
                                      double auxFactorWidth,
                                      double auxFactorHeight,
                                      int intervals,
                                      double[] grad,
                                      double[] result,
                                      java.awt.Rectangle rect)
Evaluate similarity tile constructor

Parameters:
auxTarget - current target image
auxSource - current source image
auxTargetMsk - target mask
auxSourceMsk - source mask
swx - B-spline deformation in x
swy - B-spline deformation in y
auxFactorWidth - factor width
auxFactorHeight - factor height
intervals - number of intervals between B-spline coefficients
grad - similarity gradient (output)
result - output results: image similarity value for the current rectangle and number of pixels that have been evaluated
rect - rectangle containing the area of the image to be evaluated
Method Detail

run

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

Specified by:
run in interface java.lang.Runnable