public final class Channel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
height |
float[][] |
pixels |
boolean |
powerof2 |
int |
width |
Constructor and Description |
---|
Channel(int width,
int height) |
Modifier and Type | Method and Description |
---|---|
Channel |
abs() |
Channel |
add(float add) |
Channel |
addClip(float add) |
float |
average() |
float |
averageConnected(float value) |
Channel |
boxFit(float value,
int width,
int height) |
Channel |
brightness(float brightness) |
Channel |
bump(Channel bumpmap,
float lx,
float ly,
float shadow,
float light,
float ambient) |
Channel |
bumpSpecular(Channel bumpmap,
float lx,
float ly,
float lz,
float shadow,
float light,
int specular) |
Channel |
channelAdd(Channel channel) |
Channel |
channelAddNoClip(Channel channel) |
Channel |
channelAverage(Channel channel) |
Channel |
channelBlend(Channel channel,
Channel alpha) |
Channel |
channelBlend(Channel channel,
float alpha) |
Channel |
channelBrightest(Channel channel) |
Channel |
channelDarkest(Channel channel) |
Channel |
channelDifference(Channel channel) |
Channel |
channelDivide(Channel channel) |
Channel |
channelMultiply(Channel channel) |
Channel |
channelSubtract(Channel channel) |
Channel |
channelSubtractNoClip(Channel channel) |
Channel |
clip() |
Channel |
contrast(float contrast) |
Channel |
convolution(float[][] filter,
float divisor,
float offset) |
Channel |
copy() |
int |
count(float value) |
Channel |
crop(int x_lo,
int y_lo,
int x_hi,
int y_hi) |
Channel |
cropWrap(int x_lo,
int y_lo,
int x_hi,
int y_hi) |
Channel |
erode(float talus,
int iterations) |
Channel |
erodeThermal(float talus,
int iterations) |
Channel[] |
fft() |
Channel |
fftInv(Channel magni,
Channel phase) |
Channel |
fill(float value) |
Channel |
fill(float value,
float min,
float max) |
int[] |
find(int radius,
int x_start,
int y_start,
float value) |
int[] |
findFirst(float value) |
float |
findMax() |
float |
findMin() |
float[] |
findMinMax() |
int[] |
findNoWrap(int radius,
int x_start,
int y_start,
float value) |
Channel |
flipH() |
Channel |
flipV() |
Channel |
floodfill(int init_x,
int init_y,
float value) |
Channel |
gain(float gain) |
Channel |
gamma(float gamma) |
Channel |
gamma2() |
Channel |
gamma4() |
Channel |
gamma8() |
long |
getChecksum() |
int |
getHeight() |
float |
getPixel(int x,
int y) |
float[][] |
getPixels() |
float |
getPixelSafe(int x,
int y) |
float |
getPixelWrap(int x,
int y) |
int |
getWidth() |
Channel |
grow(float value,
int radius) |
Channel |
invert() |
Channel |
largestConnected(float value) |
Channel |
lineart() |
Channel |
log() |
Channel |
multiply(float factor) |
Channel |
normalize() |
Channel |
normalize(float new_min,
float new_max) |
Channel |
normalize(float min,
float max,
float new_min,
float new_max) |
Channel |
normalizeSymmetric() |
Channel |
offset(int x_offset,
int y_offset) |
Channel |
perturb(Channel channel1,
Channel channel2) |
Channel |
perturb(Channel perturb,
float magnitude) |
Channel |
place(Channel sprite,
Channel alpha,
int x_offset,
int y_offset) |
Channel |
place(Channel sprite,
int x_offset,
int y_offset) |
Channel |
placeBrightest(Channel sprite,
int x_offset,
int y_offset) |
Channel |
placeDarkest(Channel sprite,
int x_offset,
int y_offset) |
Channel |
power(float exponent) |
Channel |
power2() |
void |
putPixel(int x,
int y,
float value) |
void |
putPixelClip(int x,
int y,
float value) |
void |
putPixelSafe(int x,
int y,
float value) |
void |
putPixelWrap(int x,
int y,
float value) |
Channel |
quadJoin(Channel channel1,
Channel channel2,
Channel channel3,
Channel channel4) |
Channel[] |
quadSplit() |
Channel |
relativeIntensity(int radius) |
Channel |
relativeIntensityNormalized(int radius) |
Channel |
rotate(int degrees) |
Channel |
scale(int new_width,
int new_height) |
Channel |
scaleCubic(int new_width,
int new_height) |
Channel |
scaleDouble() |
Channel |
scaleFast(int new_width,
int new_height) |
Channel |
scaleLinear(int new_width,
int new_height) |
Channel |
sharpen(int radius) |
Channel |
shear(float offset) |
Channel |
sine(int frequency) |
Channel |
smooth(int radius) |
Channel |
smooth(int radius,
Channel mask) |
Channel |
smoothFast() |
Channel |
smoothGain() |
Channel |
smoothWrap(int radius) |
Channel |
squareFit(float value,
int size) |
Channel |
squareGrow(float value,
int size) |
float |
sum() |
Channel |
threshold(float start,
float end) |
Channel |
tile(int new_width,
int new_height) |
Channel |
tileDouble() |
Layer |
toLayer() |
Channel |
xsine(int frequency) |
public float[][] pixels
public int width
public int height
public boolean powerof2
public final Layer toLayer()
public final long getChecksum()
public final int getWidth()
public final int getHeight()
public final void putPixel(int x, int y, float value)
public final float getPixel(int x, int y)
public final float[][] getPixels()
public final void putPixelWrap(int x, int y, float value)
public final float getPixelWrap(int x, int y)
public final float getPixelSafe(int x, int y)
public final void putPixelSafe(int x, int y, float value)
public final void putPixelClip(int x, int y, float value)
public final Channel fill(float value)
public final Channel fill(float value, float min, float max)
public final float findMin()
public final float findMax()
public final float[] findMinMax()
public final float sum()
public final float average()
public final Channel copy()
public final Channel normalize()
public final Channel normalize(float new_min, float new_max)
public final Channel normalize(float min, float max, float new_min, float new_max)
public final Channel normalizeSymmetric()
public final Channel clip()
public final Channel crop(int x_lo, int y_lo, int x_hi, int y_hi)
public final Channel cropWrap(int x_lo, int y_lo, int x_hi, int y_hi)
public final Channel tile(int new_width, int new_height)
public final Channel tileDouble()
public final Channel[] quadSplit()
public final Channel quadJoin(Channel channel1, Channel channel2, Channel channel3, Channel channel4)
public final Channel offset(int x_offset, int y_offset)
public final Channel brightness(float brightness)
public final Channel multiply(float factor)
public final Channel power(float exponent)
public final Channel power2()
public final Channel log()
public final Channel add(float add)
public final Channel addClip(float add)
public final Channel contrast(float contrast)
public final Channel gamma(float gamma)
public final Channel gamma2()
public final Channel gamma4()
public final Channel gamma8()
public final Channel gain(float gain)
public final Channel smoothGain()
public final Channel invert()
public final Channel threshold(float start, float end)
public final Channel scale(int new_width, int new_height)
public final Channel scaleLinear(int new_width, int new_height)
public final Channel scaleCubic(int new_width, int new_height)
public final Channel scaleFast(int new_width, int new_height)
public final Channel scaleDouble()
public final Channel rotate(int degrees)
public final Channel shear(float offset)
public final Channel sine(int frequency)
public final Channel xsine(int frequency)
public final Channel flipH()
public final Channel flipV()
public final Channel smoothFast()
public final Channel smooth(int radius)
public final Channel smoothWrap(int radius)
public final Channel sharpen(int radius)
public final Channel convolution(float[][] filter, float divisor, float offset)
public final Channel floodfill(int init_x, int init_y, float value)
public final Channel largestConnected(float value)
public final float averageConnected(float value)
public final Channel squareFit(float value, int size)
public final Channel boxFit(float value, int width, int height)
public final int count(float value)
public final Channel grow(float value, int radius)
public final Channel squareGrow(float value, int size)
public final int[] find(int radius, int x_start, int y_start, float value)
public final int[] findNoWrap(int radius, int x_start, int y_start, float value)
public final int[] findFirst(float value)
public final Channel bump(Channel bumpmap, float lx, float ly, float shadow, float light, float ambient)
public final Channel bumpSpecular(Channel bumpmap, float lx, float ly, float lz, float shadow, float light, int specular)
public final Channel lineart()
public final Channel relativeIntensity(int radius)
public final Channel relativeIntensityNormalized(int radius)
public final Channel[] fft()
public final Channel erode(float talus, int iterations)
public final Channel erodeThermal(float talus, int iterations)
public final Channel abs()