integralhistogram
Interface Hist

All Known Implementing Classes:
Histogram

public interface Hist

generic interface for a color histogram's class.

Author:
Giovanni Tarducci,Alessio Barducci

Method Summary
 void copy(Hist srcHist)
          make a copy of an source histogram in the current histogram
 void createFromImage(int imgWidth, int imgHeight, int[] pixels)
          fill the current (color) histogram with the source image pixels, i.e crate an histogram of the source image
 int getBinsPerComp()
          return the the number of bit per component (usually choosed by the user trought the implementation class's constructor)
 int getBinValue(int bin)
          return the content of the queried bin
 void normalize(float[] destination, int norm)
          normalize with "norm" factor, the current histogram, put the result histogram in "destination" array
 void sumHists(Hist leftHist, Hist upHist, Hist up_leftHist, int currentPixel)
          sum the surce histograms using the algorithm proposed by Fatih Porikli (http://www.merl.com) (you can check the algorithm in it's pure form in our "Histogram" implementation class)
 void sumPixel(int pixelColor)
          update the current histogram with the source pixel value
 

Method Detail

getBinValue

int getBinValue(int bin)
return the content of the queried bin

Parameters:
bin -
Returns:
int

getBinsPerComp

int getBinsPerComp()
return the the number of bit per component (usually choosed by the user trought the implementation class's constructor)

Returns:
int

copy

void copy(Hist srcHist)
make a copy of an source histogram in the current histogram

Parameters:
srcHist -

sumPixel

void sumPixel(int pixelColor)
update the current histogram with the source pixel value

Parameters:
pixelColor -

sumHists

void sumHists(Hist leftHist,
              Hist upHist,
              Hist up_leftHist,
              int currentPixel)
sum the surce histograms using the algorithm proposed by Fatih Porikli (http://www.merl.com) (you can check the algorithm in it's pure form in our "Histogram" implementation class)

Parameters:
leftHist -
upHist -
up_leftHist -
currentPixel -

normalize

void normalize(float[] destination,
               int norm)
normalize with "norm" factor, the current histogram, put the result histogram in "destination" array

Parameters:
destination -
norm -

createFromImage

void createFromImage(int imgWidth,
                     int imgHeight,
                     int[] pixels)
fill the current (color) histogram with the source image pixels, i.e crate an histogram of the source image

Parameters:
imgWidth -
imgHeight -
pixels -


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