|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--ContrastStretch
Contrast Stretch stretches the contrast range of an image
code.iface.contrast
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary | |
ContrastStretch()
|
Method Summary | |
int[] |
cutoff_stretch(int[] src,
int width,
int height,
float cutoff,
int uplim,
int lolim)
Creates an image array for an image which has been contrast stretched In this case it is done using the cutoff method |
int[] |
normal_stretch(int[] src,
int width,
int height,
int uplim,
int lolim)
Creates an image array for an image which has been contrast stretched |
int[] |
percentile_stretch(int[] src,
int width,
int height,
float high,
float low,
int uplim,
int lolim)
Creates an image array for an image which has been contrast stretched In this case it is done using the percentile method |
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 |
Constructor Detail |
public ContrastStretch()
Method Detail |
public int[] normal_stretch(int[] src, int width, int height, int uplim, int lolim)
src
- Image array to be stretchedwidth
- the width of the imageheight
- the height of the imageuplim
- The upper limit for the values to be stretched betweenlolim
- The lower limit for the values to be stretched betweenpublic int[] cutoff_stretch(int[] src, int width, int height, float cutoff, int uplim, int lolim)
src
- Image array to be stretchedwidth
- The width of the imageheight
- The height of the imagecutoff
- The scale value used in cutting off low valuesuplim
- The upper limit for the values to be stretched betweenlolim
- The lower limit for the values to be stretched betweenpublic int[] percentile_stretch(int[] src, int width, int height, float high, float low, int uplim, int lolim)
src
- Image array to be stretchedwidth
- The width of the imageheight
- The height of the imagehigh
- The upper percentage value for the histogram cutofflow
- The lower percentage value for the histogram cutoffuplim
- The upper limit for the values to be stretched betweenlolim
- The lower limit for the values to be stretched between
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |