Home
last modified time | relevance | path

Searched refs:image_height (Results 1 – 25 of 150) sorted by relevance

123456

/external/tensorflow/tensorflow/core/kernels/image/
Dcrop_and_resize_op_gpu.cu.cc43 int num_boxes, int batch, int image_height, int image_width, 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 …]
Dcrop_and_resize_op.cc144 const int image_height = image.dim_size(1); in ComputeAsync() local
148 context, image_height > 0 && image_width > 0, in ComputeAsync()
217 const int image_height = image.dimension(1); in operator ()() local
251 ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in operator ()()
259 ? y1 * (image_height - 1) + y * height_scale in operator ()()
260 : 0.5 * (y1 + y2) * (image_height - 1); in operator ()()
261 if (in_y < 0 || in_y > image_height - 1) { in operator ()()
400 const int image_height = internal::SubtleMustCopy(image_size_vec(1)); in ComputeAsync() local
404 context, image_height > 0 && image_width > 0, in ComputeAsync()
415 0, TensorShape({batch_size, image_height, image_width, depth}), in ComputeAsync()
[all …]
/external/libaom/libaom/test/
Dcnn_test.cc35 static void RunCNNTest(int image_width, int image_height, const float *input, in RunCNNTest() argument
40 av1_find_cnn_output_size(image_width, image_height, cnn_config, &out_width, in RunCNNTest()
58 RunMultiOutCNNTest(&input, image_width, image_height, in_stride, cnn_config, in RunCNNTest()
65 int image_height, int in_stride, in RunMultiOutCNNTest() argument
77 av1_find_cnn_output_size(image_width, image_height, cnn_config, out_widths, in RunMultiOutCNNTest()
79 av1_cnn_predict(input, image_width, image_height, in_stride, cnn_config, in RunMultiOutCNNTest()
136 int image_height = 16; in TEST_F() local
315 RunCNNTest(image_width, image_height, input, expected_same, &cnn_config, in TEST_F()
322 RunCNNTest(image_width, image_height, input, expected_replicate, &cnn_config, in TEST_F()
329 RunCNNTest(image_width, image_height, input, expected_valid, &cnn_config, in TEST_F()
[all …]
/external/OpenCL-CTS/test_common/harness/
DclImageHelper.h34 size_t image_width, size_t image_height, in create_image_2d() argument
49 image_desc_dest.image_height = image_height; in create_image_2d()
70 clCreateImage2D(context, flags, image_format, image_width, image_height, in create_image_2d()
89 size_t image_height, size_t image_row_pitch, in create_image_2d_buffer() argument
97 image_desc_dest.image_height = image_height; in create_image_2d_buffer()
120 size_t image_width, size_t image_height, in create_image_3d() argument
136 image_desc.image_height = image_height; in create_image_3d()
157 image_height, image_depth, image_row_pitch, in create_image_3d()
173 size_t image_height, size_t image_array_size, in create_image_2d_array() argument
187 image_desc.image_height = image_height; in create_image_2d_array()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dquantized_conv_ops_test.cc59 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 …]
Dconv_ops_test.cc118 const int image_height = 3; in HandwrittenConv() local
124 Tensor image(dtype, {image_batch_count, image_height, image_width, depth}); in HandwrittenConv()
137 const int resized_height = image_height; in HandwrittenConv()
172 const int expected_height = image_height * filter_count; in HandwrittenConv()
433 const int image_height = 3; in HandwrittenConv() local
440 {image_batch_count, image_height, image_width, depth}); in HandwrittenConv()
476 const int expected_height = image_height * filter_count; in HandwrittenConv()
498 const int image_height = 3; in AnisotropicStrides() local
501 {image_batch_count, image_height, image_width, depth}); in AnisotropicStrides()
780 void VerifyBiasAddTensorsNear(int depth, int image_width, int image_height, in VerifyBiasAddTensorsNear() argument
[all …]
/external/libyuv/files/util/
Dyuvconvert.cc31 int image_width = 0, image_height = 0; // original width and height variable
96 image_height = atoi(argv[++c]); // NOLINT in ParseOptions()
136 if (image_width == 0 || image_height == 0) { in ParseOptions()
139 image_height = org_height; in ParseOptions()
142 image_height = rec_height; in ParseOptions()
154 dst_height = Abs(image_height); in ParseOptions()
225 int org_size = Abs(image_width) * Abs(image_height) * 4; // ARGB in main()
228 const int y_size = Abs(image_width) * Abs(image_height); in main()
230 ((Abs(image_width) + 1) / 2) * ((Abs(image_height) + 1) / 2); in main()
263 printf("Size: %dx%d to %dx%d\n", image_width, image_height, dst_width, in main()
[all …]
Dpsnr_main.cc56 int image_width = 0, image_height = 0; variable
180 image_height = atoi(argv[++c]); // NOLINT in ParseOptions()
213 if (image_width == 0 || image_height == 0) { in ParseOptions()
224 image_height = org_height; in ParseOptions()
231 image_height = org_height; in ParseOptions()
235 image_height = rec_height; in ParseOptions()
281 distorted_frame->y = CalcSSIM(ch_org, ch_rec, image_width, image_height); in UpdateMetrics()
283 CalcSSIM(u_org, u_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics()
285 CalcSSIM(v_org, v_rec, (image_width + 1) / 2, (image_height + 1) / 2); in UpdateMetrics()
361 const int y_size = image_width * image_height; in main()
[all …]
Dssim.cc301 const int image_height) { in CalcSSIM() argument
303 const int KERNEL_Y = (image_height < KERNEL) ? image_height : KERNEL; in CalcSSIM()
306 const int start_y = start_max(image_height - KERNEL_Y, KERNEL_Y); in CalcSSIM()
311 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM()
318 for (int j = KERNEL_Y; j < image_height - KERNEL_Y; ++j) { in CalcSSIM()
320 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM()
350 for (int j = start_y; j < image_height; ++j) { in CalcSSIM()
352 SSIM += GetSSIM(org, rec, i, j, image_width, image_height, stride); in CalcSSIM()
/external/libjpeg-turbo/
Djdmaster.c106 jdiv_round_up((long)cinfo->image_height, (long)DCTSIZE); in jpeg_core_output_dimensions()
114 jdiv_round_up((long)cinfo->image_height * 2L, (long)DCTSIZE); in jpeg_core_output_dimensions()
122 jdiv_round_up((long)cinfo->image_height * 3L, (long)DCTSIZE); in jpeg_core_output_dimensions()
130 jdiv_round_up((long)cinfo->image_height * 4L, (long)DCTSIZE); in jpeg_core_output_dimensions()
138 jdiv_round_up((long)cinfo->image_height * 5L, (long)DCTSIZE); in jpeg_core_output_dimensions()
146 jdiv_round_up((long)cinfo->image_height * 6L, (long)DCTSIZE); in jpeg_core_output_dimensions()
154 jdiv_round_up((long)cinfo->image_height * 7L, (long)DCTSIZE); in jpeg_core_output_dimensions()
162 jdiv_round_up((long)cinfo->image_height * 8L, (long)DCTSIZE); in jpeg_core_output_dimensions()
170 jdiv_round_up((long)cinfo->image_height * 9L, (long)DCTSIZE); in jpeg_core_output_dimensions()
178 jdiv_round_up((long)cinfo->image_height * 10L, (long)DCTSIZE); in jpeg_core_output_dimensions()
[all …]
Djcapistd.c85 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/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_quantized_conv_ops_test.cc101 const int image_height = 3; in RunQuantizedDepthwiseConv2DOp() local
108 TensorShape({image_batch_count, image_height, image_width, depth}), in RunQuantizedDepthwiseConv2DOp()
161 Tensor expected(DT_QINT32, TensorShape({image_batch_count, image_height, in RunQuantizedDepthwiseConv2DOp()
190 const int image_height = 3; in TEST_F() local
202 {image_batch_count, image_height, image_width, depth}); in TEST_F()
265 const int expected_height = image_height; in TEST_F()
292 const int image_height = 3; in TEST_F() local
328 {image_batch_count, image_height, image_width, depth}); in TEST_F()
400 const int image_height = 3; in TEST_F() local
403 TensorShape({image_batch_count, image_height, image_width, depth}), in TEST_F()
[all …]
/external/libpng/contrib/gregbook/
Drpng-win.c152 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 …]
Drpng-x.c136 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/core/api_def/base_api/
Dapi_def_CropAndResizeGradImage.pbtxt15 `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]`.
Dapi_def_CropAndResizeGradBoxes.pbtxt12 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/tensorflow/tensorflow/lite/kernels/
Dconv_test.cc511 const int image_height = 3; in TEST_P() local
521 {image_batch_count, image_height, image_width, depth}}, in TEST_P()
586 const int image_height = 3; in TEST_P() local
601 {image_batch_count, image_height, image_width, depth}}, in TEST_P()
656 const int image_height = 3; in TEST_P() local
666 {image_batch_count, image_height, image_width, depth}}, in TEST_P()
710 const int image_height = 3; in TEST_P() local
720 {image_batch_count, image_height, image_width, depth}}, in TEST_P()
766 const int image_height = 3; in TEST_P() local
776 {image_batch_count, image_height, image_width, depth}}, in TEST_P()
[all …]
/external/OpenCL-CTS/test_conformance/api/
Dtest_mem_object_info.cpp495 imageInfo.image_width = imageInfo.image_height = imageInfo.image_depth = 1; in test_get_image_info()
520 imageInfo.image_height = get_image_dim(&d, 1023); in test_get_image_info()
532 imageInfo.image_height = get_image_dim(&d, 127); in test_get_image_info()
545 imageInfo.image_height = get_image_dim(&d, 255); in test_get_image_info()
554 …image = malloc( imageInfo.image_width * imageInfo.image_height * imageInfo.image_depth * pixelSize… in test_get_image_info()
583 … imageInfo.image_slice_pitch = imageInfo.image_row_pitch * imageInfo.image_height; in test_get_image_info()
587 …image = malloc( imageInfo.image_width * imageInfo.image_height * imageInfo.image_depth * pixelSize… in test_get_image_info()
609 …image = malloc( imageInfo.image_width * imageInfo.image_height * imageInfo.image_depth * pixelSize… in test_get_image_info()
635 … imageInfo.image_slice_pitch = imageInfo.image_row_pitch * imageInfo.image_height; in test_get_image_info()
639 …image = malloc( imageInfo.image_width * imageInfo.image_height * imageInfo.image_depth * pixelSize… in test_get_image_info()
[all …]
/external/tensorflow/tensorflow/lite/examples/label_image/
Dbitmap_helpers_impl.h30 void resize(T* out, uint8_t* in, int image_height, int image_width, in resize() argument
33 int number_of_pixels = image_height * image_width * image_channels; in resize()
50 {1, image_height, image_width, image_channels}, quant); in resize()
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/
Dimage_provider.cc21 int image_height, int channels, int8_t* image_data) { in GetImage() argument
22 for (int i = 0; i < image_width * image_height * channels; ++i) { in GetImage()
/external/OpenCL-CTS/test_conformance/mem_host_flags/
Dchecker_image_mem_host_read_only.hpp32 m_cl_Image_desc.image_height = 0; in cImage_check_mem_host_read_only()
118 return ((cl_int)(m_cl_Image_desc.image_width*m_cl_Image_desc.image_height * in get_image_content_size()
126 (m_cl_Image_desc.image_height * m_cl_Image_desc.image_width); in get_image_data_size()
133 return ((cl_int)(m_cl_Image_desc.image_width*m_cl_Image_desc.image_height * in get_image_elements()
140 int all = (int)(m_cl_Image_desc.image_width * m_cl_Image_desc.image_height * in SetupImage()
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/arduino/
Dimage_provider.cc152 int image_width, int image_height, in DecodeAndProcessImage() argument
162 const int keep_y_mcus = image_height / JpegDec.MCUHeight; in DecodeAndProcessImage()
241 int image_height, int channels, int8_t* image_data) { in GetImage() argument
265 error_reporter, image_width, image_height, image_data); in GetImage()
/external/tensorflow/tensorflow/lite/micro/examples/person_detection/himax_we1_evb/
Dimage_provider.cc30 int image_height, int channels, int8_t* image_data) { in GetImage() argument
44 image_data, image_width, image_height); in GetImage()
/external/mesa3d/src/gallium/frontends/clover/api/
Dmemory.cpp188 if (!desc->image_width || !desc->image_height) in clCreateImage()
194 desc->image_height > max); in clCreateImage()
199 desc->image_width, desc->image_height, in clCreateImage()
203 if (!desc->image_width || !desc->image_height || !desc->image_depth) in clCreateImage()
209 desc->image_height > max || in clCreateImage()
215 desc->image_slice_pitch : row_pitch * desc->image_height; in clCreateImage()
218 desc->image_width, desc->image_height, in clCreateImage()
/external/tensorflow/tensorflow/examples/multibox_detector/
Dmain.cc240 void DrawBox(const int image_width, const int image_height, int left, int top, in DrawBox() argument
244 top = std::max(0, std::min(image_height - 1, top)); in DrawBox()
245 bottom = std::max(0, std::min(image_height - 1, bottom)); in DrawBox()
297 const int image_height = original_tensor->shape().dim_size(0); in PrintTopDetections() local
311 float top = decoded_location[1] * image_height; in PrintTopDetections()
313 float bottom = decoded_location[3] * image_height; in PrintTopDetections()
322 DrawBox(image_width, image_height, left, top, right, bottom, &image_flat); in PrintTopDetections()

123456