Lines Matching defs:dims

68         int[] dims = imageFrame.getDimensions();
74 drawBoxes(pixels, faces, dims);
82 public void drawBoxes(byte[] pixels, Face[] faces, int[] dims) {
85 int top = (tempRect.top+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE;
86 int bottom = (tempRect.bottom+HEIGHT_OFFSET)*dims[1]/FACE_X_RANGE;
87 int left = (tempRect.left+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE;
88 int right = (tempRect.right+WIDTH_OFFSET)*dims[0]/FACE_X_RANGE;
92 } else if (top > dims[1]) {
93 top = dims[1];
97 } else if (left > dims[0]) {
98 left = dims[0];
100 if (bottom > dims[1]) {
101 bottom = dims[1];
105 if (right > dims[0]) {
106 right = dims[0];
114 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) +
116 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) +
118 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + left) +
124 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) +
126 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) +
128 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * (top + j) + right) +
135 if (top < dims[1]) {
136 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) +
138 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) +
140 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * top + left + k) +
145 if (bottom < dims[1]) {
146 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) +
148 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) +
150 pixels[ImageConstants.PIX_CHANNELS * (dims[0] * bottom + left + k) +