mpicbg.ij.integral
Class BlockPMCC

java.lang.Object
  extended by mpicbg.ij.integral.BlockPMCC

public final class BlockPMCC
extends Object

Pearson's Product-Moment Correlation Coefficient (PMCC) for overlapping blocks of pixels in two single channel images accelerated by integral images.

Author:
Stephan Saalfeld

Constructor Summary
BlockPMCC(FloatProcessor fpX, FloatProcessor fpY)
          Two loops because fpX and fpY can have different dimensions.
BlockPMCC(FloatProcessor fpX, FloatProcessor fpY, int offsetX, int offsetY)
          Two loops because fpX and fpY can have different dimensions.
BlockPMCC(int width, int height, FloatProcessor fpX, FloatProcessor fpY)
          Special case constructor for fpX and fpY having equal dimensions.
BlockPMCC(int width, int height, FloatProcessor fpX, FloatProcessor fpY, int offsetX, int offsetY)
          Special case constructor for fpX and fpY having equal dimensions.
 
Method Summary
 FloatProcessor getTargetProcessor()
           
 void r(int blockRadius)
           
 void r(int blockRadiusX, int blockRadiusY)
          Set all pixels in ip to their block PMCC rXY for the current offset with given radius.
 void rSignedSquare(int blockRadius)
           
 void rSignedSquare(int blockRadiusX, int blockRadiusY)
          Set all pixels in ip to their signed square block PMCC rXY2 for the current offset with given radius.
 void setOffset(int offsetX, int offsetY)
          Set the offset and re-calculate sumsXY respectively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockPMCC

public BlockPMCC(int width,
                 int height,
                 FloatProcessor fpX,
                 FloatProcessor fpY)
Special case constructor for fpX and fpY having equal dimensions.

Note, that this constructor does not initialize ΣXY. That has to be done for a specified offset through setOffset(int, int) afterwards.

Parameters:
width -
height -
fpX -
fpY -

BlockPMCC

public BlockPMCC(int width,
                 int height,
                 FloatProcessor fpX,
                 FloatProcessor fpY,
                 int offsetX,
                 int offsetY)
Special case constructor for fpX and fpY having equal dimensions.

Parameters:
width -
height -
fpX - source (moving)
fpY - target
offsetX - source x offset relative to target
offsetY - source y offset relative to target

BlockPMCC

public BlockPMCC(FloatProcessor fpX,
                 FloatProcessor fpY)
Two loops because fpX and fpY can have different dimensions.

Note, that this constructor does not initialize ΣXY. That has to be done for a specified offset through setOffset(int, int) afterwards.

Parameters:
fpX -
fpY -

BlockPMCC

public BlockPMCC(FloatProcessor fpX,
                 FloatProcessor fpY,
                 int offsetX,
                 int offsetY)
Two loops because fpX and fpY can have different dimensions.

Parameters:
fpX - source (moving)
fpY - target
offsetX - source x offset relative to target
offsetY - source y offset relative to target
Method Detail

getTargetProcessor

public final FloatProcessor getTargetProcessor()

setOffset

public final void setOffset(int offsetX,
                            int offsetY)
Set the offset and re-calculate sumsXY respectively.

Parameters:
fp -
sum -
sumOfSquares -

r

public final void r(int blockRadiusX,
                    int blockRadiusY)
Set all pixels in ip to their block PMCC rXY for the current offset with given radius.

Parameters:
blockRadiusX -
blockRadiusY -

r

public final void r(int blockRadius)

rSignedSquare

public final void rSignedSquare(int blockRadiusX,
                                int blockRadiusY)
Set all pixels in ip to their signed square block PMCC rXY2 for the current offset with given radius.

Parameters:
blockRadiusX -
blockRadiusY -

rSignedSquare

public final void rSignedSquare(int blockRadius)


Copyright © 2007-2016 Fiji. All Rights Reserved.