jp.ac.nime.computer.grpsimulator
クラス NeighborOp

java.lang.Object
  拡張jp.ac.nime.computer.grpsimulator.NeighborOp

public class NeighborOp
extends java.lang.Object

画像処理の為のBufferedImageにN*N演算するクラス BufferedImageは、ARGBのINT型にパックされていると想定している。 バックされたINTのR, G, Bのどの位置で計算するかはフラグで指定する。 計算するバッファと出力するバッファは、同じ大きさ・Colorであることが必須である。 ConvolveOpとほぼ同じ処理をするが、学習のためソースを起こす。

導入されたバージョン:
0.1
作成者:
Kikuchi
関連項目:
ConvolveOp, Kernel

フィールドの概要
static int BP
           
static int GP
           
static int RGBP
           
static int RP
          処理するプレーン
static int UP
           
static int VP
           
static int YP
           
static int YUVP
           
 
コンストラクタの概要
NeighborOp(int nN, int[] data, int div)
          コンストラクタ 行列サイズと中身を指定する 中身が行列サイズより小さい場合は、その部分を0とする。
 
メソッドの概要
 void Filter(int flag, GrpSimBuffer img)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

RP

public static final int RP
処理するプレーン

関連項目:
定数フィールド値

GP

public static final int GP
関連項目:
定数フィールド値

BP

public static final int BP
関連項目:
定数フィールド値

YP

public static final int YP
関連項目:
定数フィールド値

UP

public static final int UP
関連項目:
定数フィールド値

VP

public static final int VP
関連項目:
定数フィールド値

RGBP

public static final int RGBP
関連項目:
定数フィールド値

YUVP

public static final int YUVP
関連項目:
定数フィールド値
コンストラクタの詳細

NeighborOp

public NeighborOp(int nN,
                  int[] data,
                  int div)
コンストラクタ 行列サイズと中身を指定する 中身が行列サイズより小さい場合は、その部分を0とする。 ex.3x3行列の場合のdataの構造 0 1 2 3 4 5 6 7 8

パラメータ:
nN - 行列の幅と高さ
data - 行列の中身
div - 1回の計算結果に固定値で割るときの値。割る必要がなければ 1にする。
メソッドの詳細

Filter

public void Filter(int flag,
                   GrpSimBuffer img)
パラメータ:
flag - フラグ
img - イメージ