|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object jp.ac.nime.computer.grpsimulator.GrpSimBuffer
画像処理の為の画像バッファを受け持つクラス。 画像を登録するときに RGB<->YUVを変換して記憶する。 画像バッファを取得するときに RGB,YUVを指定できる。
フィールドの概要 | |
static int |
RGB
画像がRGBであることを示す |
static int |
YUV
画像がYUVであることを示す |
コンストラクタの概要 | |
GrpSimBuffer(int width,
int height)
* コンストラクタ バッファの画像サイズを指定する |
メソッドの概要 | |
boolean |
chkValidDst()
出力画像を読み込んであるかチェックできる |
boolean |
chkValidSrc()
ソース画像を読み込んであるかチェックできる |
void |
copyDst2Ing()
Dst画像をING,SRC画像とする |
java.awt.image.BufferedImage |
getDstImage(int flag)
画像処理の結果画像バッファを提供する |
int[] |
getDstNearPointData(int flag,
int x,
int y)
Dst画像の指定位置の近傍データ(5x5)を出力する 出力データは、alpha領域をクリアしている 領域外は、 -1 になる。 |
int[] |
getDstNearPointDataN(int flag,
int x,
int y,
int nN)
Dst画像の指定位置の近傍データ(5x5)を出力する 出力データは、alpha領域をクリアしている 領域外は、 -1 になる。 |
int |
getHeight()
画像サイズの高さを得る。 |
java.awt.image.BufferedImage |
getSrcImage(int flag)
画像処理のソース画像バッファを提供する |
int[] |
getSrcNearPointData(int flag,
int x,
int y)
Src画像の指定位置の近傍データ(5x5)を出力する 出力データは、alpha領域をクリアしている 領域外は、 -1 になる。 |
int[] |
getSrcNearPointDataN(int flag,
int x,
int y,
int nN)
Src画像の指定位置の近傍データ(NxN)を出力する 出力データは、alpha領域をクリアしている 領域外は、 -1 になる。 |
int |
getWidth()
画像サイズの幅を得る。 |
void |
setDstImage(int flag,
java.awt.image.BufferedImage img)
バッファをDst画像として登録する。 |
void |
setRecycle(boolean flag)
Recycleを指定する |
void |
setSrcImage(int flag,
java.awt.image.BufferedImage img,
java.awt.image.ImageObserver imo)
バッファをSrc画像として登録する。 |
void |
syncDst(int flag)
DstバッファのRGBとYUVの同期を図る |
void |
syncSrc(int flag)
SrcバッファのRGBとYUVの同期を図る |
void |
undo()
Undoを行う |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final int RGB
public static final int YUV
コンストラクタの詳細 |
public GrpSimBuffer(int width, int height)
width
- 画像の幅height
- 画像の高さメソッドの詳細 |
public void setSrcImage(int flag, java.awt.image.BufferedImage img, java.awt.image.ImageObserver imo)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。img
- 画像バッファ,サイズは適当でかまわないimo
- イメージオブザーバーpublic void setDstImage(int flag, java.awt.image.BufferedImage img)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。img
- 画像バッファ,サイズはコンストラクタで指定されている大きさであることが必要。public void copyDst2Ing()
public void syncDst(int flag)
flag
- 変更された画像バッファを示す。RGBを指定すると RGBの内容でYUVを更新する。public void syncSrc(int flag)
flag
- 変更された画像バッファを示す。RGBを指定すると RGBの内容でYUVを更新する。public java.awt.image.BufferedImage getSrcImage(int flag)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。
public java.awt.image.BufferedImage getDstImage(int flag)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。
public int[] getSrcNearPointData(int flag, int x, int y)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。x
- データが欲しい中心座標のxy
- データが欲しい中心座標のy
public int[] getDstNearPointData(int flag, int x, int y)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。x
- データが欲しい中心座標のxy
- データが欲しい中心座標のy
public int[] getSrcNearPointDataN(int flag, int x, int y, int nN)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。x
- データが欲しい中心座標のxy
- データが欲しい中心座標のynN
- 近傍のサイズ 3以上の奇数に限る これに当てはまらない場合、全ポイントが領域外となる。
public int[] getDstNearPointDataN(int flag, int x, int y, int nN)
flag
- 画像バッファの内容が YUVかRGBを示す。定数で指定すること。x
- データが欲しい中心座標のxy
- データが欲しい中心座標のynN
- 近傍のサイズ 3以上の奇数に限る これに当てはまらない場合、全ポイントが領域外となる。
public void undo()
public void setRecycle(boolean flag)
flag
- True:recycle ON False:recycle OFFpublic boolean chkValidSrc()
public boolean chkValidDst()
public int getWidth()
public int getHeight()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |