integralhistogram
Class AvgImgSearchOut

java.lang.Object
  extended by integralhistogram.AvgImgSearchOut
All Implemented Interfaces:
SearchOutput

public class AvgImgSearchOut
extends java.lang.Object
implements SearchOutput

SearchOut implementation. Let you plot the average of all matching target region, on a Result image. You can use it via MyTargetUser2.

Author:
Giovanni Tarducci, Alessio Barducci

Constructor Summary
AvgImgSearchOut(int[] imgResult, int imgResWidth)
           
 
Method Summary
 void endOutputFile()
           
 void finalizeOutput()
          plot the average target region on the Result image
 void histSearchOut(int row, int col, int targRectWidth, int targRectHeight)
          method called during the search, usually everytime a target region matches
 void startOutput()
          initialize average Target Region corners
 void startOutputFile(java.lang.String foo)
           
 void updateOutputFile(float foo)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvgImgSearchOut

public AvgImgSearchOut(int[] imgResult,
                       int imgResWidth)
Parameters:
imgResult - pixels'array for the result image
imgResWidth - result image width
Method Detail

histSearchOut

public void histSearchOut(int row,
                          int col,
                          int targRectWidth,
                          int targRectHeight)
Description copied from interface: SearchOutput
method called during the search, usually everytime a target region matches

Specified by:
histSearchOut in interface SearchOutput
Parameters:
row - current source image row
col - current sourcce image column
targRectWidth - current Target Region Widht
targRectHeight - current Target Region Height

finalizeOutput

public void finalizeOutput()
plot the average target region on the Result image

Specified by:
finalizeOutput in interface SearchOutput

startOutput

public void startOutput()
initialize average Target Region corners

Specified by:
startOutput in interface SearchOutput

startOutputFile

public void startOutputFile(java.lang.String foo)
Specified by:
startOutputFile in interface SearchOutput

updateOutputFile

public void updateOutputFile(float foo)
Specified by:
updateOutputFile in interface SearchOutput

endOutputFile

public void endOutputFile()
Specified by:
endOutputFile in interface SearchOutput


processing library integralhistogram by Giovanni Tarducci, Alessio Barducci. (c) 2009