/external/tensorflow/tensorflow/core/kernels/ |
D | crop_and_resize_op_gpu.cu.cc | 43 const int32* box_ind_ptr, int num_boxes, int batch, int image_height, in CropAndResizeKernel() argument 67 (crop_height > 1) ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in CropAndResizeKernel() 73 ? y1 * (image_height - 1) + y * height_scale in CropAndResizeKernel() 74 : 0.5 * (y1 + y2) * (image_height - 1); in CropAndResizeKernel() 75 if (in_y < 0 || in_y > image_height - 1) { in CropAndResizeKernel() 98 image_ptr[((b_in * image_height + top_y_index) * image_width + in CropAndResizeKernel() 103 image_ptr[((b_in * image_height + top_y_index) * image_width + in CropAndResizeKernel() 108 image_ptr[((b_in * image_height + bottom_y_index) * image_width + in CropAndResizeKernel() 113 image_ptr[((b_in * image_height + bottom_y_index) * image_width + in CropAndResizeKernel() 124 image_ptr[((b_in * image_height + closest_y_index) * image_width + in CropAndResizeKernel() [all …]
|
D | quantized_conv_ops_test.cc | 59 const int image_height = 3; in TEST_F() local 70 {image_batch_count, image_height, image_width, depth}); in TEST_F() 120 const int expected_height = image_height * filter_count; in TEST_F() 151 const int image_height = 3; in TEST_F() local 154 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 168 const int expected_height = image_height * filter_count; in TEST_F() 194 const int image_height = 4; in TEST_F() local 197 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 211 const int expected_height = (image_height * filter_count) / stride; in TEST_F() 235 const int image_height = 4; in TEST_F() local [all …]
|
D | mkl_quantized_conv_ops_test.cc | 108 const int image_height = 3; in TEST_F() local 120 {image_batch_count, image_height, image_width, depth}); in TEST_F() 183 const int expected_height = image_height; in TEST_F() 215 const int image_height = 3; in TEST_F() local 218 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 246 const int expected_height = image_height; in TEST_F() 297 const int image_height = 3; in TEST_F() local 300 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F() 328 const int expected_height = image_height; in TEST_F() 353 const int image_height = 4; in TEST_F() local [all …]
|
D | crop_and_resize_op.cc | 138 const int image_height = image.dim_size(1); in ComputeAsync() local 142 context, image_height > 0 && image_width > 0, in ComputeAsync() 210 const int image_height = image.dimension(1); in operator ()() local 233 ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in operator ()() 241 ? y1 * (image_height - 1) + y * height_scale in operator ()() 242 : 0.5 * (y1 + y2) * (image_height - 1); in operator ()() 243 if (in_y < 0 || in_y > image_height - 1) { in operator ()() 382 const int image_height = internal::SubtleMustCopy(image_size_vec(1)); in ComputeAsync() local 386 context, image_height > 0 && image_width > 0, in ComputeAsync() 397 0, TensorShape({batch_size, image_height, image_width, depth}), in ComputeAsync() [all …]
|
D | mkl_fused_ops_test.cc | 93 int image_height, int image_batch_count, in VerifyBiasAddTensorsClose() argument 99 Tensor image(dtype, {image_batch_count, image_height, image_width, depth}); in VerifyBiasAddTensorsClose() 219 int image_height = kImageHeight, in VerifyConv2DWithBias() argument 235 depth, image_width, image_height, image_batch_count, filter_size, in VerifyConv2DWithBias() 244 int image_height = kImageHeight, in VerifyConv2DWithBiasAndRelu() argument 260 depth, image_width, image_height, image_batch_count, filter_size, in VerifyConv2DWithBiasAndRelu() 352 const int image_height = 3; in TEST_F() local 354 Tensor image(DT_FLOAT, {image_batch_count, image_height, image_width, depth}); in TEST_F() 380 const int image_height = 3; in TEST_F() local 382 Tensor image(DT_FLOAT, {image_batch_count, depth, image_height, image_width}); in TEST_F() [all …]
|
D | conv_ops_test.cc | 115 const int image_height = 3; in HandwrittenConv() local 121 Tensor image(dtype, {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 134 const int resized_height = image_height; in HandwrittenConv() 169 const int expected_height = image_height * filter_count; in HandwrittenConv() 430 const int image_height = 3; in HandwrittenConv() local 437 {image_batch_count, image_height, image_width, depth}); in HandwrittenConv() 473 const int expected_height = image_height * filter_count; in HandwrittenConv() 495 const int image_height = 3; in AnisotropicStrides() local 498 {image_batch_count, image_height, image_width, depth}); in AnisotropicStrides() 744 void VerifyBiasAddTensorsNear(int depth, int image_width, int image_height, in VerifyBiasAddTensorsNear() argument [all …]
|
/external/tensorflow/tensorflow/contrib/image/python/ops/ |
D | sparse_image_warp.py | 31 def _get_grid_locations(image_height, image_width): argument 34 y_range = np.linspace(0, image_height - 1, image_height) 46 def _get_boundary_locations(image_height, image_width, num_points_per_edge): argument 48 y_range = np.linspace(0, image_height - 1, num_points_per_edge + 2) 53 np.logical_or(ys == 0, ys == image_height - 1)) 58 control_point_flows, image_height, argument 82 boundary_point_locations = _get_boundary_locations(image_height, image_width, 175 batch_size, image_height, image_width, _ = image.get_shape().as_list() 179 grid_locations = _get_grid_locations(image_height, image_width) 182 [image_height * image_width, 2]) [all …]
|
/external/tensorflow/tensorflow/contrib/image/python/kernel_tests/ |
D | sparse_image_warp_test.py | 45 image_height = 11 48 locs = sparse_image_warp._get_boundary_locations(image_height, image_width, 53 for i in (0, image_height - 1): 61 for i in (0, image_height - 1): 66 image_height = 5 68 grid = sparse_image_warp._get_grid_locations(image_height, image_width) 69 for i in range(image_height): 84 image_height = 4 89 size=[batch_size, image_height, image_width, channels]) 126 image_height = 7 [all …]
|
/external/libxcam/cl_kernel/ |
D | kernel_tonemapping.cl | 14 …only image2d_t input, __write_only image2d_t output, float y_max, float y_target, int image_height) 35 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height)); 36 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2)); 37 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3)); 57 …ta_R = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height)); 58 … = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height * 2)); 59 … = read_imagef (input, sampler, (int2)(start_x + offset_x, start_y + offset_y + image_height * 3)); 103 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R); 104 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 2), src_data_B); 105 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 3), src_data_Gb);
|
D | kernel_newtonemapping.cl | 15 int image_width, int image_height) 30 int row_per_block = image_height / BLOCK_FACTOR; 38 float4 src_data_R = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height)); 39 float4 src_data_B = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 2)); 40 float4 src_data_Gb = read_imagef (input, sampler, (int2)(g_id_x, g_id_y + image_height * 3)); 98 write_imagef(output, (int2)(g_id_x, g_id_y + image_height), src_data_R); 99 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 2), src_data_B); 100 write_imagef(output, (int2)(g_id_x, g_id_y + image_height * 3), src_data_Gb);
|
/external/libyuv/files/util/ |
D | yuvconvert.cc | 31 int image_width = 0, image_height = 0; // original width and height variable 95 image_height = atoi(argv[++c]); // NOLINT in ParseOptions() 135 if (image_width == 0 || image_height == 0) { in ParseOptions() 138 image_height = org_height; in ParseOptions() 141 image_height = rec_height; in ParseOptions() 153 dst_height = Abs(image_height); in ParseOptions() 224 int org_size = Abs(image_width) * Abs(image_height) * 4; // ARGB in main() 227 const int y_size = Abs(image_width) * Abs(image_height); in main() 229 ((Abs(image_width) + 1) / 2) * ((Abs(image_height) + 1) / 2); in main() 262 printf("Size: %dx%d to %dx%d\n", image_width, image_height, dst_width, in main() [all …]
|
D | psnr_main.cc | 56 int image_width = 0, image_height = 0; variable 177 image_height = atoi(argv[++c]); // NOLINT in ParseOptions() 210 if (image_width == 0 || image_height == 0) { in ParseOptions() 221 image_height = org_height; in ParseOptions() 228 image_height = org_height; in ParseOptions() 232 image_height = rec_height; in ParseOptions() 278 distorted_frame->y = CalcSSIM(ch_org, ch_rec, image_width, image_height); in UpdateMetrics() 280 CalcSSIM(u_org, u_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics() 282 CalcSSIM(v_org, v_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics() 355 const int y_size = image_width * image_height; in main() [all …]
|
D | ssim.cc | 298 const int image_height) { in CalcSSIM() argument 300 const int KERNEL_Y = (image_height < KERNEL) ? image_height : KERNEL; in CalcSSIM() 303 const int start_y = start_max(image_height - KERNEL_Y, KERNEL_Y); in CalcSSIM() 308 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 315 for (int j = KERNEL_Y; j < image_height - KERNEL_Y; ++j) { in CalcSSIM() 317 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM() 347 for (int j = start_y; j < image_height; ++j) { in CalcSSIM() 349 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM()
|
/external/libjpeg-turbo/ |
D | jdmaster.c | 118 jdiv_round_up((long)cinfo->image_height, (long)DCTSIZE); in jpeg_core_output_dimensions() 126 jdiv_round_up((long)cinfo->image_height * 2L, (long)DCTSIZE); in jpeg_core_output_dimensions() 134 jdiv_round_up((long)cinfo->image_height * 3L, (long)DCTSIZE); in jpeg_core_output_dimensions() 142 jdiv_round_up((long)cinfo->image_height * 4L, (long)DCTSIZE); in jpeg_core_output_dimensions() 150 jdiv_round_up((long)cinfo->image_height * 5L, (long)DCTSIZE); in jpeg_core_output_dimensions() 158 jdiv_round_up((long)cinfo->image_height * 6L, (long)DCTSIZE); in jpeg_core_output_dimensions() 166 jdiv_round_up((long)cinfo->image_height * 7L, (long)DCTSIZE); in jpeg_core_output_dimensions() 174 jdiv_round_up((long)cinfo->image_height * 8L, (long)DCTSIZE); in jpeg_core_output_dimensions() 182 jdiv_round_up((long)cinfo->image_height * 9L, (long)DCTSIZE); in jpeg_core_output_dimensions() 190 jdiv_round_up((long)cinfo->image_height * 10L, (long)DCTSIZE); in jpeg_core_output_dimensions() [all …]
|
D | jcapistd.c | 85 if (cinfo->next_scanline >= cinfo->image_height) in jpeg_write_scanlines() 91 cinfo->progress->pass_limit = (long)cinfo->image_height; in jpeg_write_scanlines() 104 rows_left = cinfo->image_height - cinfo->next_scanline; in jpeg_write_scanlines() 128 if (cinfo->next_scanline >= cinfo->image_height) { in jpeg_write_raw_data() 136 cinfo->progress->pass_limit = (long)cinfo->image_height; in jpeg_write_raw_data()
|
/external/libpng/contrib/gregbook/ |
D | rpng-win.c | 152 static ulg image_width, image_height, image_rowbytes; variable 343 if ((rc = readpng_init(infile, &image_width, &image_height)) != 0) { in WinMain() 501 if (image_height > ((size_t)(-1))/wimage_rowbytes) { in rpng_win_create_window() 507 wimage_rowbytes*image_height))) in rpng_win_create_window() 523 bmih->biHeight = -((long)image_height); in rpng_win_create_window() 533 for (j = 0; j < image_height; ++j) { in rpng_win_create_window() 573 image_height+extra_height, NULL, NULL, hInst, NULL); in rpng_win_create_window() 606 for (lastrow = row = 0; row < image_height; ++row) { in rpng_win_display_image() 656 if (lastrow < image_height) { in rpng_win_display_image() 660 rect.bottom = (LONG)image_height; /* possibly off by one? */ in rpng_win_display_image() [all …]
|
D | rpng-x.c | 136 static ulg image_width, image_height, image_rowbytes; variable 304 if ((rc = readpng_init(infile, &image_width, &image_height)) != 0) { in main() 558 window = XCreateWindow(display, root, 0, 0, image_width, image_height, 0, in rpng_x_create_window() 581 size_hints->min_height = size_hints->max_height = (int)image_height; in rpng_x_create_window() 635 XFillRectangle(display, window, gc, 0, 0, image_width, image_height); in rpng_x_create_window() 652 xdata = (uch *)malloc(4*image_width*image_height); in rpng_x_create_window() 655 xdata = (uch *)malloc(2*image_width*image_height); in rpng_x_create_window() 658 xdata = (uch *)malloc(image_width*image_height); in rpng_x_create_window() 668 (char *)xdata, image_width, image_height, pad, 0); in rpng_x_create_window() 715 for (lastrow = row = 0; row < image_height; ++row) { in rpng_x_display_image() [all …]
|
/external/tensorflow/tensorflow/lite/tools/accuracy/ilsvrc/ |
D | inception_preprocessing.h | 65 InceptionPreprocessingStage(int image_width, int image_height, in InceptionPreprocessingStage() argument 69 image_height_(image_height) { in InceptionPreprocessingStage() 76 InceptionPreprocessingStage(int image_width, int image_height, in InceptionPreprocessingStage() argument 80 image_height_(image_height), in InceptionPreprocessingStage()
|
/external/tensorflow/tensorflow/lite/kernels/ |
D | depthwise_conv_test.cc | 176 const int image_height = 9; in TEST_P() local 184 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 229 const int image_height = 3; in TEST_P() local 237 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 369 const int image_height = 9; in TEST_P() local 377 {image_batch_count, image_height, image_width, depth}, in TEST_P() 428 const int image_height = 3; in TEST_P() local 436 {image_batch_count, image_height, image_width, depth}, in TEST_P()
|
D | conv_test.cc | 318 const int image_height = 3; in TEST_P() local 328 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 384 const int image_height = 3; in TEST_P() local 394 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 438 const int image_height = 3; in TEST_P() local 448 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 494 const int image_height = 3; in TEST_P() local 504 {image_batch_count, image_height, image_width, depth}}, in TEST_P() 536 const int image_height = 9; in TEST_P() local 548 {image_batch_count, image_height, image_width, depth}}, in TEST_P() [all …]
|
/external/tensorflow/tensorflow/core/api_def/base_api/ |
D | api_def_CropAndResizeGradImage.pbtxt | 15 `y` is mapped to the image coordinate at `y * (image_height - 1)`, so as the 17 `[0, image_height - 1] in image height coordinates. We do allow y1 > y2, in 34 A 1-D tensor with value `[batch, image_height, image_width, depth]` 35 containing the original image size. Both `image_height` and `image_width` need 42 A 4-D tensor of shape `[batch, image_height, image_width, depth]`.
|
D | api_def_CropAndResizeGradBoxes.pbtxt | 12 A 4-D tensor of shape `[batch, image_height, image_width, depth]`. 13 Both `image_height` and `image_width` need to be positive. 22 `y` is mapped to the image coordinate at `y * (image_height - 1)`, so as the 24 `[0, image_height - 1] in image height coordinates. We do allow y1 > y2, in
|
/external/libxcam/modules/ocl/ |
D | cl_tnr_handler.cpp | 112 uint32_t image_height = stats->info.height; in calculate_image_histogram() local 115 uint32_t ver_hist_bin = image_height; in calculate_image_histogram() 120 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram() 135 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram() 159 uint32_t image_height = input->get_video_info ().height; in calculate_image_histogram() local 164 uint32_t ver_hist_bin = image_height; in calculate_image_histogram() 181 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram() 206 for (uint32_t row_index = 0; row_index < image_height; row_index++) { in calculate_image_histogram()
|
/external/tensorflow/tensorflow/lite/examples/label_image/ |
D | bitmap_helpers_impl.h | 31 void resize(T* out, uint8_t* in, int image_height, int image_width, in resize() argument 34 int number_of_pixels = image_height * image_width * image_channels; in resize() 51 {1, image_height, image_width, image_channels}, quant); in resize()
|
/external/libxcam/tests/ |
D | test-pipe-manager.cpp | 70 void set_image_height (uint32_t image_height) { in set_image_height() argument 71 _image_height = image_height; in set_image_height() 207 uint32_t image_height = 1080; in main() local 258 image_height = atoi (optarg); in main() 381 pipe_manager->set_image_height (image_height); in main() 418 buf_info.init (pixel_format, image_width, image_height); in main()
|