|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomeis.providers.re.RGBBuffer
omeis.providers.re.RGBIntBuffer
public class RGBIntBuffer
Holds the data of an RGB image. The image data is stored in three byte arrays, one for each color band.
Field Summary |
---|
Fields inherited from class omeis.providers.re.RGBBuffer |
---|
B_BAND, G_BAND, R_BAND |
Constructor Summary | |
---|---|
RGBIntBuffer(int sizeX1,
int sizeX2)
Creates a new 3-band packed integer buffer. |
Method Summary | |
---|---|
byte |
getBlueValue(int index)
Retrieves the Blue value for a particular pixel index. |
int[] |
getDataBuffer()
Retrieves the data buffer that contains the pixel values. |
byte |
getGreenValue(int index)
Retrieves the Green value for a particular pixel index. |
byte |
getRedValue(int index)
Retrieves the Red value for a particular pixel index. |
void |
setBlueValue(int index,
int value)
Sets the Blue value for a particular pixel index. |
void |
setGreenValue(int index,
int value)
Sets the Green value for a particular pixel index. |
void |
setRedValue(int index,
int value)
Sets the Red value for a particular pixel index. |
void |
zero()
Zeros out (sets every pixel offset to zero) each band. |
Methods inherited from class omeis.providers.re.RGBBuffer |
---|
getBlueBand, getGreenBand, getRedBand, getSizeX1, getSizeX2 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RGBIntBuffer(int sizeX1, int sizeX2)
sizeX1
- The number of pixels on the X1-axis. This is the X-axis
in the case of an XY-plane or XZ-plane.
Otherwise it is the Z-axis ZY-plane.sizeX2
- The number of pixels on the X2-axis. This is the Y-axis
in the case of an XY-plane or ZY-plane.
Otherwise it is the Z-axis XZ-plane.RGBBuffer.bands
Method Detail |
---|
public void setRedValue(int index, int value)
setRedValue
in class RGBBuffer
index
- The index in the band array.value
- The pixel value to set.public void setGreenValue(int index, int value)
setGreenValue
in class RGBBuffer
index
- The index in the band array.value
- The pixel value to set.public void setBlueValue(int index, int value)
setBlueValue
in class RGBBuffer
index
- The index in the band array.value
- The pixel value to set.public byte getRedValue(int index)
getRedValue
in class RGBBuffer
index
- The index in the band array.
public byte getGreenValue(int index)
getGreenValue
in class RGBBuffer
index
- The index in the band array.
public byte getBlueValue(int index)
getBlueValue
in class RGBBuffer
index
- The index in the band array.
public int[] getDataBuffer()
public void zero()
RGBBuffer
zero
in class RGBBuffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.