|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--Histogram
Histogram creates a histogram of a specified image array and returns an grey_scales*hist_height image array to represent the histogram
Field Summary | |
int |
hist_w
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
Histogram()
|
Method Summary | |
int[] |
histogram(int[] src,
int width,
int height)
Creates a 256*256 image array for the histogram of the specified image array |
int[] |
histogramScale(int[] src,
int width,
int height,
double max)
Calculates the histogram and scales it. |
double |
maximum(int[] src,
int width,
int height)
Calculates the maximum value in the histogram |
int |
peak(int[] src,
int width,
int height)
Calculates the peak value of the histogram |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
run,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public int hist_w
Constructor Detail |
public Histogram()
Method Detail |
public int[] histogram(int[] src, int width, int height)
src
- Image array to be turned into a histogramwidth
- The width of the input imageheight
- The height of the input imagepublic int peak(int[] src, int width, int height)
the
- imagethe
- width of the imagethe
- height of the imagepublic double maximum(int[] src, int width, int height)
the
- imagethe
- width of the imagethe
- height of the imagepublic int[] histogramScale(int[] src, int width, int height, double max)
the
- imagethe
- width of the imagethe
- height of the imagethe
- value to set the histogram maximum
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |