bunwarpj
Class Transformation.ColorResultTileMaker

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

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

Class to run concurrent tile windows for final results (color)


Field Summary
(package private)  Mask auxSourceMsk
           
(package private)  int auxTargetCurrentHeight
           
(package private)  int auxTargetCurrentWidth
           
(package private)  Mask auxTargetMsk
           
private  ij.process.ColorProcessor cp_mask
           
private  ij.process.FloatProcessor fpB
           
private  ij.process.FloatProcessor fpG
           
private  ij.process.FloatProcessor fpR
           
(package private)  java.awt.Rectangle rect
           
(package private)  BSplineModel sourceB
           
(package private)  BSplineModel sourceG
           
(package private)  BSplineModel sourceR
           
(package private)  BSplineModel swx
           
(package private)  BSplineModel swy
           
 
Constructor Summary
Transformation.ColorResultTileMaker(BSplineModel swx, BSplineModel swy, BSplineModel sourceR, BSplineModel sourceG, BSplineModel sourceB, int auxTargetCurrentWidth, int auxTargetCurrentHeight, Mask auxTargetMsk, Mask auxSourceMsk, java.awt.Rectangle rect, ij.process.FloatProcessor fpR, ij.process.FloatProcessor fpG, ij.process.FloatProcessor fpB, ij.process.ColorProcessor cp_mask)
          Color result tile maker constructor
 
Method Summary
 void run()
          Run method to update the intermediate window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swx

final BSplineModel swx

swy

final BSplineModel swy

sourceR

final BSplineModel sourceR

sourceG

final BSplineModel sourceG

sourceB

final BSplineModel sourceB

auxTargetCurrentWidth

final int auxTargetCurrentWidth

auxTargetCurrentHeight

final int auxTargetCurrentHeight

auxTargetMsk

final Mask auxTargetMsk

auxSourceMsk

final Mask auxSourceMsk

rect

final java.awt.Rectangle rect

fpR

private final ij.process.FloatProcessor fpR

fpG

private final ij.process.FloatProcessor fpG

fpB

private final ij.process.FloatProcessor fpB

cp_mask

private final ij.process.ColorProcessor cp_mask
Constructor Detail

Transformation.ColorResultTileMaker

Transformation.ColorResultTileMaker(BSplineModel swx,
                                    BSplineModel swy,
                                    BSplineModel sourceR,
                                    BSplineModel sourceG,
                                    BSplineModel sourceB,
                                    int auxTargetCurrentWidth,
                                    int auxTargetCurrentHeight,
                                    Mask auxTargetMsk,
                                    Mask auxSourceMsk,
                                    java.awt.Rectangle rect,
                                    ij.process.FloatProcessor fpR,
                                    ij.process.FloatProcessor fpG,
                                    ij.process.FloatProcessor fpB,
                                    ij.process.ColorProcessor cp_mask)
Color result tile maker constructor

Parameters:
swx - B-spline interpolator for transformation in x-
swy - B-spline interpolator for transformation in y-
sourceR - red source image
sourceG - green source image
sourceB - blue source image
auxTargetCurrentWidth - current target height
auxTargetCurrentHeight - current target height
auxTargetMsk - target mask
auxSourceMsk - source mask
rect - retangle with the coordinates of the output image to be updated
fpR - red channel processor to be updated
fpG - green channel processor to be updated
fpB - blue channel processor to be updated
cp_mask - mask color processor to be updated
Method Detail

run

public void run()
Run method to update the intermediate window. Only the part defined by the rectangle will be updated (in this thread).

Specified by:
run in interface java.lang.Runnable