2 /* current processing image related */
14 /* benchmark constants */
17 /* id indicating the piece # */
39 this.m_rows_rs = this.m_id * this.m_range;
40 this.m_rows_re = (this.m_id + 1) * this.m_range;
43 this.m_ind = new int[(this.m_rows_re - this.m_rows_rs) * this.m_cols_r];
50 public int getRows() {
54 public int getCols() {
58 public float[] getImage() {
62 public int[] getInd() {
66 public int getRowsRS() {
67 return this.m_rows_rs;
70 public int getRowsRE() {
71 return this.m_rows_re;
74 public int getColsR() {
78 public void fSortIndices() {
79 int i, j, k, startRow, endRow;
90 startRow = this.m_rows_rs;
91 endRow = this.m_rows_re;
93 for(k=0; k<cols_i; k++) {
94 for(i=0; i<rows_i; i++) {
95 float local = image[i * cols_i + k];
97 for(j=startRow; j<endRow; j++) {
98 if(local <= image[j*cols_i+k]) {
99 ind[ii * cols_i + k]++;
107 public void printImage() {
109 for(int i=0; i<this.m_rows; i++) {
110 for(int j=0; j<this.m_cols; j++) {
111 System.printI((int)(this.m_image[i * this.m_cols + j]*10));
116 public void printInd() {
118 System.printI(44444444);
119 for(int i=0; i<this.m_rows_re-this.m_rows_rs; i++) {
120 for(int j=0; j<this.m_cols_r; j++) {
121 System.printI((int)(this.m_ind[i * this.m_cols_r + j]*10));