|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Hist
generic interface for a color histogram's class.
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 |
---|
int getBinValue(int bin)
bin
-
int getBinsPerComp()
void copy(Hist srcHist)
srcHist
- void sumPixel(int pixelColor)
pixelColor
- void sumHists(Hist leftHist, Hist upHist, Hist up_leftHist, int currentPixel)
leftHist
- upHist
- up_leftHist
- currentPixel
- void normalize(float[] destination, int norm)
destination
- norm
- void createFromImage(int imgWidth, int imgHeight, int[] pixels)
imgWidth
- imgHeight
- pixels
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |