com.c3d.image
Class ShortImage
java.lang.Object
|
+--com.c3d.image.Jimage
|
+--com.c3d.image.ShortImage
- Direct Known Subclasses:
- IntelImage
- public class ShortImage
- extends Jimage
Field Summary |
short[][] |
data
TeX \subsection{Data Fields } |
int |
scanlinelength
TeX The position in the data at which the
image origin ( top left ) occurs |
int |
startindata
TeX The data is stored as linear array of shorts for each plane |
Fields inherited from class com.c3d.image.Jimage |
ALPHAPLANE,
BLUEPLANE,
brho,
colorModel,
fmax,
fmin,
fmu,
frho,
GREENPLANE,
height,
hints,
MONOCHROME,
planes,
REDPLANE,
RGB,
smax,
smin,
srho,
umin,
urho,
width |
Method Summary |
Jimage |
abs()
|
byte |
bpixel(int x,
int y,
int plane)
TeX Convert a pixel in the range 0-255 to one in
the range -128 to 127. |
protected java.lang.Object |
clone()
|
com.c3d.util.atomic.Universal |
concat(com.c3d.util.atomic.Universal a)
|
Jimage |
convolve(double[][] kernel)
|
com.c3d.util.atomic.Universal |
divide(com.c3d.util.atomic.Universal b)
|
float |
fpixel(int x,
int y,
int plane)
|
float |
fsubscript(int I)
TeX
fSubscription by a scalar returns the appropriate pixel
in the 0th plane of the image, allowing for the offset of this image from
the start of the image data. |
Jimage |
getPlane(int k)
|
com.c3d.util.atomic.Universal |
Inject(com.c3d.util.atomic.Universal b,
com.c3d.operators.Doperator op)
TeX \subsection{Methods Inherited from Structured} |
com.c3d.util.atomic.Universal |
Map(com.c3d.operators.Moperator op)
|
com.c3d.util.atomic.Universal |
minus(com.c3d.util.atomic.Universal b)
|
short[][] |
newData()
|
Jimage |
oneOfThese()
|
com.c3d.util.atomic.Universal |
plus(com.c3d.util.atomic.Universal b)
|
int |
rgbpixel(int x,
int y)
|
void |
setDimensions(int w,
int h)
TeX \subsection{Inherited from \em ImageConsumer} |
void |
setPixel(int x,
int y,
int z,
double p)
|
void |
setPixel(int x,
int y,
int z,
int p)
|
void |
setPixel(int x,
int y,
int z,
short p)
|
void |
setPixels(int srcX,
int srcY,
int srcW,
int srcH,
java.awt.image.ColorModel cm,
byte[] pixels,
int srcOff,
int srcScan)
|
void |
setPixels(int srcX,
int srcY,
int srcW,
int srcH,
java.awt.image.ColorModel cm,
int[] pixels,
int srcOff,
int srcScan)
|
short |
spixel(int x,
int y,
int plane)
|
Jimage |
subImage(int x,
int y,
int dx,
int dy)
|
float |
sum(int z)
|
com.c3d.util.atomic.Universal |
times(com.c3d.util.atomic.Universal b)
|
int |
upixel(int x,
int y,
int plane)
|
com.c3d.util.atomic.Universal |
Upixel(int x,
int y,
int plane)
|
Methods inherited from class com.c3d.image.Jimage |
arity,
bpixelTofpixel,
bpixelTospixel,
bpixelToupixel,
bsaturate,
cardinality,
convolve,
divide,
fmodulus,
fpixelTobpixel,
fpixelTospixel,
fpixelToupixel,
fsaturate,
fsaturate,
getAWTImage,
getImage,
getProducer,
getScaledInstance,
getScaledInstance,
hashCode,
imageComplete,
l1Norm,
l2Norm,
lessthan,
members,
minus,
modulus,
numberOfElements,
plus,
putJPEGImage,
reduce,
RGB2YUV,
setColorModel,
setHints,
setProperties,
setSubImage,
shift,
spixelTobpixel,
spixelTofpixel,
spixelTofpixel,
spixelToupixel,
sqr,
ssaturate,
subscript,
subscript,
times,
toString,
toString,
upixelTobpixel,
upixelTofpixel,
upixelTospixel,
usaturate,
warp,
YUV2RGB |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
data
public short[][] data
- TeX \subsection{Data Fields }
startindata
public int startindata
- TeX The data is stored as linear array of shorts for each plane
scanlinelength
public int scanlinelength
- TeX The position in the data at which the
image origin ( top left ) occurs
ShortImage
public ShortImage()
- TeX \subsection{Constructors}
ShortImage
public ShortImage(int plane)
ShortImage
public ShortImage(short[][] d,
int dx,
int dy)
ShortImage
public ShortImage(short[][] d,
int dx,
int dy,
int linewidth,
int start)
ShortImage
public ShortImage(int x,
int y,
int z)
oneOfThese
public Jimage oneOfThese()
- Overrides:
- oneOfThese in class Jimage
concat
public com.c3d.util.atomic.Universal concat(com.c3d.util.atomic.Universal a)
- Overrides:
- concat in class Jimage
subImage
public Jimage subImage(int x,
int y,
int dx,
int dy)
- Overrides:
- subImage in class Jimage
setDimensions
public void setDimensions(int w,
int h)
- TeX \subsection{Inherited from \em ImageConsumer}
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Overrides:
- clone in class java.lang.Object
abs
public Jimage abs()
- Overrides:
- abs in class Jimage
setPixel
public void setPixel(int x,
int y,
int z,
double p)
- Overrides:
- setPixel in class Jimage
sum
public float sum(int z)
- Overrides:
- sum in class Jimage
setPixel
public void setPixel(int x,
int y,
int z,
short p)
- Overrides:
- setPixel in class Jimage
setPixel
public void setPixel(int x,
int y,
int z,
int p)
- Overrides:
- setPixel in class Jimage
setPixels
public void setPixels(int srcX,
int srcY,
int srcW,
int srcH,
java.awt.image.ColorModel cm,
byte[] pixels,
int srcOff,
int srcScan)
setPixels
public void setPixels(int srcX,
int srcY,
int srcW,
int srcH,
java.awt.image.ColorModel cm,
int[] pixels,
int srcOff,
int srcScan)
fsubscript
public float fsubscript(int I)
- TeX
fSubscription by a scalar returns the appropriate pixel
in the 0th plane of the image, allowing for the offset of this image from
the start of the image data.
Inject
public com.c3d.util.atomic.Universal Inject(com.c3d.util.atomic.Universal b,
com.c3d.operators.Doperator op)
- TeX \subsection{Methods Inherited from Structured}
minus
public com.c3d.util.atomic.Universal minus(com.c3d.util.atomic.Universal b)
plus
public com.c3d.util.atomic.Universal plus(com.c3d.util.atomic.Universal b)
newData
public short[][] newData()
times
public com.c3d.util.atomic.Universal times(com.c3d.util.atomic.Universal b)
divide
public com.c3d.util.atomic.Universal divide(com.c3d.util.atomic.Universal b)
fpixel
public float fpixel(int x,
int y,
int plane)
- Overrides:
- fpixel in class Jimage
upixel
public int upixel(int x,
int y,
int plane)
- Overrides:
- upixel in class Jimage
spixel
public short spixel(int x,
int y,
int plane)
- Overrides:
- spixel in class Jimage
rgbpixel
public int rgbpixel(int x,
int y)
- Overrides:
- rgbpixel in class Jimage
bpixel
public byte bpixel(int x,
int y,
int plane)
- TeX Convert a pixel in the range 0-255 to one in
the range -128 to 127.
Upixel
public com.c3d.util.atomic.Universal Upixel(int x,
int y,
int plane)
- Overrides:
- Upixel in class Jimage
convolve
public Jimage convolve(double[][] kernel)
- Overrides:
- convolve in class Jimage
Map
public com.c3d.util.atomic.Universal Map(com.c3d.operators.Moperator op)
getPlane
public Jimage getPlane(int k)