Home | History | Annotate | Download | only in multibox_detector

Lines Matching refs:image_width

232 void DrawBox(const int image_width, const int image_height, int left, int top,
239 left = std::max(0, std::min(image_width - 1, left));
240 right = std::max(0, std::min(image_width - 1, right));
245 image_ref((top * image_width + x) * 3 + i) = val;
246 image_ref((bottom * image_width + x) * 3 + i) = val;
249 image_ref((y * image_width + left) * 3 + i) = val;
250 image_ref((y * image_width + right) * 3 + i) = val;
288 const int image_width = original_tensor->shape().dim_size(1);
302 float left = decoded_location[0] * image_width;
304 float right = decoded_location[2] * image_width;
314 DrawBox(image_width, image_height, left, top, right, bottom, &image_flat);