integralhistogram
Class ImgSearchOut

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

public class ImgSearchOut
extends java.lang.Object
implements SearchOutput

use this class to "print" the search's results over a result image.

Author:
Giovanni Tarducci,Alessio Barducci

Constructor Summary
ImgSearchOut(int[] imgResult, int imgResWidth)
          class constructor.
 
Method Summary
 void endOutputFile()
           
 void finalizeOutput()
           
 void histSearchOut(int i, int j, int targRectWidth, int targRectHeight)
          color the result image's pixels between the specified boundaries (see below: i,j,targRectWidth,targRectHeight)
 void startOutput()
           
 void startOutputFile(java.lang.String foo)
           
 void updateOutputFile(float timePos)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImgSearchOut

public ImgSearchOut(int[] imgResult,
                    int imgResWidth)
class constructor.

Parameters:
imgResult -
imgResWidth -
Method Detail

histSearchOut

public void histSearchOut(int i,
                          int j,
                          int targRectWidth,
                          int targRectHeight)
color the result image's pixels between the specified boundaries (see below: i,j,targRectWidth,targRectHeight)

Specified by:
histSearchOut in interface SearchOutput
Parameters:
i - current source image's row
j - current source image's row
targRectWidth - current Target Region Width
targRectHeight - current Target Region Height

startOutput

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

finalizeOutput

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

updateOutputFile

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

startOutputFile

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

endOutputFile

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


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