6 /* current processing image related */
18 /* benchmark constants */
21 /* id indicating the piece # */
43 this.m_rows_rs = this.m_id * this.m_range;
44 this.m_rows_re = (this.m_id + 1) * this.m_range;
47 this.m_ind = new int[(this.m_rows_re - this.m_rows_rs) * this.m_cols_r];
54 public int getRows() {
58 public int getCols() {
62 public float[] getImage() {
66 public int[] getInd() {
70 public int getRowsRS() {
71 return this.m_rows_rs;
74 public int getRowsRE() {
75 return this.m_rows_re;
78 public int getColsR() {
82 public void fSortIndices() {
83 int i, j, k, startRow, endRow;
94 startRow = this.m_rows_rs;
95 endRow = this.m_rows_re;
98 for(k=0; k<cols_i; k++) {
99 for(i=0; i<rows_i; i++) {
100 float local = image[i * cols_i + k];
102 for(j=startRow; j<endRow; j++) {
103 if(local <= image[j*cols_i+k]) {
104 ind[ii * cols_i + k]++;
112 public void printImage() {
114 for(int i=0; i<this.m_rows; i++) {
115 for(int j=0; j<this.m_cols; j++) {
116 System.printI((int)(this.m_image[i * this.m_cols + j]*10));
121 public void printInd() {
123 System.printI(44444444);
124 for(int i=0; i<this.m_rows_re-this.m_rows_rs; i++) {
125 for(int j=0; j<this.m_cols_r; j++) {
126 System.printI((int)(this.m_ind[i * this.m_cols_r + j]*10));