Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 42:../src/test.cpp ****
- 43:../src/test.cpp **** double single_channel_add_const(int patch_top_left_row, int patch_top_left_col, int image_hash_key,
- 44:../src/test.cpp **** Mat* preloaded_images,
- 45:../src/test.cpp **** int* random_values){
- 46:../src/test.cpp **** //
- 47:../src/test.cpp ****
- 48:../src/test.cpp ****
- 49:../src/test.cpp **** int first_pixel_row = 5 + random_values[0];
- 50:../src/test.cpp **** int first_pixel_col = 6 + random_values[1];
- 51:../src/test.cpp **** int second_pixel_row = 8 + random_values[2];
- 52:../src/test.cpp **** int second_pixel_col = 10 + random_values[3];
- 53:../src/test.cpp ****
- 54:../src/test.cpp **** int channel = random_values[4];
- 55:../src/test.cpp ****
- 56:../src/test.cpp **** Vec3b* first_pixel_bgr = preloaded_images[image_hash_key].ptr<Vec3b>(first_pixel_row, first_pixel_
- 57:../src/test.cpp **** Vec3b* second_pixel_bgr = preloaded_images[image_hash_key].ptr<Vec3b>(second_pixel_row, second_pix
- 58:../src/test.cpp ****
- 59:../src/test.cpp **** return (*first_pixel_bgr)[channel] + (*second_pixel_bgr)[channel];
- 60:../src/test.cpp **** }
- 61:../src/test.cpp ****
- 62:../src/test.cpp ****
- 63:../src/test.cpp ****
- 64:../src/test.cpp **** int main() {
- 65:../src/test.cpp ****
- 66:../src/test.cpp **** string filename = string("/home/aly/Datasets/CamSeq01_mini_test/0016E5_08101.png");
- 67:../src/test.cpp **** Mat img = imread(filename, CV_LOAD_IMAGE_COLOR);
- 68:../src/test.cpp **** Mat preloaded_images[1];
- 69:../src/test.cpp **** preloaded_images[0] = img;
- 70:../src/test.cpp **** int random_values[5];
- 71:../src/test.cpp **** random_values[0] = 2;
- 72:../src/test.cpp **** random_values[1] = 1;
- 73:../src/test.cpp **** random_values[2] = 1;
- 74:../src/test.cpp **** random_values[3] = 2;
- GAS LISTING /tmp/ccX058Mu.s page 14
- 75:../src/test.cpp **** random_values[4] = 3;
- 76:../src/test.cpp ****
- 77:../src/test.cpp **** int max_rows = img.rows -1;
- 78:../src/test.cpp **** int max_cols = img.cols -1;
- 79:../src/test.cpp **** int t = clock();
- 80:../src/test.cpp ****
- 81:../src/test.cpp **** for(int i = 0; i < 100000000; i++){
- 82:../src/test.cpp **** double v = single_channel_add_const(
- 83:../src/test.cpp **** get_random_number_in_range(0, max_rows),
- 84:../src/test.cpp **** get_random_number_in_range(0, max_cols),
- 85:../src/test.cpp **** 0,
- 86:../src/test.cpp **** preloaded_images, random_values);
- 87:../src/test.cpp ****
- 88:../src/test.cpp **** }
- 89:../src/test.cpp ****
- 90:../src/test.cpp **** cout << "finished it took " << t << " ticks and " << ((float)t)/CLOCKS_PER_SEC << "seconds " << en
- 91:../src/test.cpp **** return 0;
- 92:../src/test.cpp **** }
- 179 .loc 2 92 0
- 180 005c 488B4148 movq 72(%rcx), %rax
- 181 .LVL13:
- 182 0060 488B5110 movq 16(%rcx), %rdx
- 183 .LVL14:
- 184 .LBB297:
- 185 .LBB298:
- 186 .loc 1 460 0
- 187 0064 4863F6 movslq %esi, %rsi
- 188 .LBE298:
- 189 .LBE297:
- 190 .LBB300:
- 191 .LBB294:
- 192 0067 488B08 movq (%rax), %rcx
- 193 006a 4C8B4808 movq 8(%rax), %r9
- 194 .LVL15:
- 195 .LBE294:
- 196 .LBE300:
- 23:../src/test.cpp **** int first_pixel_row = patch_top_left_row + random_values[0];
- 197 .loc 2 23 0
- 198 006e 418B00 movl (%r8), %eax
- 199 .LBB301:
- 200 .LBB295:
- 201 .loc 1 460 0
- 202 0071 4D0FAFD1 imulq %r9, %r10
- 203 .LVL16:
- 204 .LBE295:
- 205 .LBE301:
- 23:../src/test.cpp **** int first_pixel_row = patch_top_left_row + random_values[0];
- 206 .loc 2 23 0
- 207 0075 01F8 addl %edi, %eax
- 25:../src/test.cpp **** int second_pixel_row = patch_top_left_row + random_values[2];
- 208 .loc 2 25 0
- 209 0077 41037808 addl 8(%r8), %edi
- 210 .LVL17:
- 211 .LBB302:
- 212 .LBB296:
- 213 .loc 1 460 0
- 214 007b 4898 cltq
- GAS LISTING /tmp/ccX058Mu.s page 15
- 215 007d 480FAFC1 imulq %rcx, %rax
- 216 .LVL18:
- 217 .LBE296:
- 218 .LBE302:
- 39:../src/test.cpp **** return (*first_pixel_bgr)[channel] + (*second_pixel_bgr)[channel];
- 219 .loc 2 39 0
- 220 0081 4901D2 addq %rdx, %r10
- 221 .LBB303:
- 222 .LBB299:
- 223 .loc 1 460 0
- 224 0084 490FAFF1 imulq %r9, %rsi
- 225 .LVL19:
- 226 0088 4863FF movslq %edi, %rdi
- 227 008b 480FAFF9 imulq %rcx, %rdi
- 228 .LVL20:
- 229 .LBE299:
- 230 .LBE303:
- 39:../src/test.cpp **** return (*first_pixel_bgr)[channel] + (*second_pixel_bgr)[channel];
- 231 .loc 2 39 0
- 232 008f 4901C2 addq %rax, %r10
- 233 0092 49634010 movslq 16(%r8), %rax
- 234 0096 4801D6 addq %rdx, %rsi
- 235 0099 4801F7 addq %rsi, %rdi
- 236 009c 450FB614 movzbl (%r10,%rax), %r10d
- 236 02
- 237 00a1 0FB60407 movzbl (%rdi,%rax), %eax
- 238 00a5 4401D0 addl %r10d, %eax
- 239 00a8 F20F2AC0 cvtsi2sd %eax, %xmm0
- 240 .LBE291:
- 40:../src/test.cpp **** }
- 241 .loc 2 40 0
- 242 00ac C3 ret
- 243 .cfi_endproc
- 244 .LFE4897:
- 245 .size _Z18single_channel_addiiiPN2cv3MatEPi, .-_Z18single_channel_addiiiPN2cv3MatEPi
- 246 00ad 0F1F00 .p2align 4,,15
- 247 .globl _Z24single_channel_add_constiiiPN2cv3MatEPi
- 248 .type _Z24single_channel_add_constiiiPN2cv3MatEPi, @function
- 249 _Z24single_channel_add_constiiiPN2cv3MatEPi:
- 250 .LFB4898:
- 45:../src/test.cpp **** int* random_values){
- 251 .loc 2 45 0
- 252 .cfi_startproc
- 253 .LVL21:
- 254 .LBB304:
- 56:../src/test.cpp **** Vec3b* first_pixel_bgr = preloaded_images[image_hash_key].ptr<Vec3b>(first_pixel_row, first_pixel_
- 255 .loc 2 56 0
- 256 00b0 4863D2 movslq %edx, %rdx
- 257 00b3 488D0452 leaq (%rdx,%rdx,2), %rax
- 49:../src/test.cpp **** int first_pixel_row = 5 + random_values[0];
- 258 .loc 2 49 0
- 259 00b7 418B10 movl (%r8), %edx
- 260 .LVL22:
- 56:../src/test.cpp **** Vec3b* first_pixel_bgr = preloaded_images[image_hash_key].ptr<Vec3b>(first_pixel_row, first_pixel_
- 261 .loc 2 56 0
- 262 00ba 48C1E005 salq $5, %rax
- 263 00be 4801C1 addq %rax, %rcx
- GAS LISTING /tmp/ccX058Mu.s page 16
- 264 .LVL23:
- 49:../src/test.cpp **** int first_pixel_row = 5 + random_values[0];
- 265 .loc 2 49 0
- 266 00c1 83C205 addl $5, %edx
- 267 .loc 2 92 0
- 268 00c4 488B4148 movq 72(%rcx), %rax
- 269 .LVL24:
- 270 .LBB305:
- 271 .LBB306:
- 272 .loc 1 460 0
- 273 00c8 4863D2 movslq %edx, %rdx
- 274 .LBE306:
- 275 .LBE305:
- 276 .loc 2 92 0
- 277 00cb 488B7110 movq 16(%rcx), %rsi
- 278 .LVL25:
- 59:../src/test.cpp **** return (*first_pixel_bgr)[channel] + (*second_pixel_bgr)[channel];
- 279 .loc 2 59 0
- 280 00cf 49634810 movslq 16(%r8), %rcx
- 281 .LBB310:
- 282 .LBB307:
- 283 .loc 1 460 0
- 284 00d3 488B38 movq (%rax), %rdi
- 285 .LVL26:
- 286 00d6 4C8B4808 movq 8(%rax), %r9
- 287 .LVL27:
- 288 .LBE307:
- 289 .LBE310:
- 50:../src/test.cpp **** int first_pixel_col = 6 + random_values[1];
- 290 .loc 2 50 0
- 291 00da 418B4004 movl 4(%r8), %eax
- 292 .LVL28:
- 293 .LBB311:
- 294 .LBB308:
- 295 .loc 1 460 0
- 296 00de 480FAFD7 imulq %rdi, %rdx
- 297 .LBE308:
- 298 .LBE311:
- 50:../src/test.cpp **** int first_pixel_col = 6 + random_values[1];
- 299 .loc 2 50 0
- 300 00e2 83C006 addl $6, %eax
- 301 .LBB312:
- 302 .LBB309:
- 303 .loc 1 460 0
- 304 00e5 4898 cltq
- 305 00e7 490FAFC1 imulq %r9, %rax
- 306 .LBE309:
- 307 .LBE312:
- 59:../src/test.cpp **** return (*first_pixel_bgr)[channel] + (*second_pixel_bgr)[channel];
- 308 .loc 2 59 0
- 309 00eb 4801F0 addq %rsi, %rax
- 310 00ee 4801D0 addq %rdx, %rax
- 52:../src/test.cpp **** int second_pixel_col = 10 + random_values[3];
- 311 .loc 2 52 0
- 312 00f1 418B500C movl 12(%r8), %edx
- 59:../src/test.cpp **** return (*first_pixel_bgr)[channel] + (*second_pixel_bgr)[channel];
- 313 .loc 2 59 0
- GAS LISTING /tmp/ccX058Mu.s page 17
- 314 00f5 440FB614 movzbl (%rax,%rcx), %r10d
- 314 08
- 51:../src/test.cpp **** int second_pixel_row = 8 + random_values[2];
- 315 .loc 2 51 0
- 316 00fa 418B4008 movl 8(%r8), %eax
- 52:../src/test.cpp **** int second_pixel_col = 10 + random_values[3];
- 317 .loc 2 52 0
- 318 00fe 83C20A addl $10, %edx
- 51:../src/test.cpp **** int second_pixel_row = 8 + random_values[2];
- 319 .loc 2 51 0
- 320 0101 83C008 addl $8, %eax
- 321 .LBB313:
- 322 .LBB314:
- 323 .loc 1 460 0
- 324 0104 4863D2 movslq %edx, %rdx
- 325 0107 490FAFD1 imulq %r9, %rdx
- 326 010b 4898 cltq
- 327 010d 480FAFC7 imulq %rdi, %rax
- 328 .LBE314:
- 329 .LBE313:
- 59:../src/test.cpp **** return (*first_pixel_bgr)[channel] + (*second_pixel_bgr)[channel];
- 330 .loc 2 59 0
- 331 0111 4801F2 addq %rsi, %rdx
- 332 0114 4801D0 addq %rdx, %rax
- 333 0117 0FB60408 movzbl (%rax,%rcx), %eax
- 334 011b 4401D0 addl %r10d, %eax
- 335 011e F20F2AC0 cvtsi2sd %eax, %xmm0
- 336 .LBE304:
- 60:../src/test.cpp **** }
- 337 .loc 2 60 0
- 338 0122 C3 ret
- 339 .cfi_endproc
- 340 .LFE4898:
- 341 .size _Z24single_channel_add_constiiiPN2cv3MatEPi, .-_Z24single_channel_add_constiiiPN2cv3MatEPi
- 342 .section .rodata.str1.8,"aMS",@progbits,1
- 343 .align 8
- 344 .LC0:
- 345 0000 2F686F6D .string "/home/aly/Datasets/CamSeq01_mini_test/0016E5_08101.png"
- 345 652F616C
- 345 792F4461
- 345 74617365
- 345 74732F43
- 346 .section .rodata.str1.1,"aMS",@progbits,1
- 347 .LC1:
- 348 0000 66696E69 .string "finished it took "
- 348 73686564
- 348 20697420
- 348 746F6F6B
- 348 2000
- 349 .LC2:
- 350 0012 20746963 .string " ticks and "
- 350 6B732061
- 350 6E642000
- 351 .LC4:
- 352 001e 7365636F .string "seconds "
- 352 6E647320
- 352 00
- GAS LISTING /tmp/ccX058Mu.s page 18
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement