├── Adobe_DNG_SDK_Pipeline_v4.bmp ├── CAM.txt ├── EV.txt ├── EV_original.txt ├── README.md ├── Tone2.txt ├── Tone2_sdk_original.txt ├── cam_settings.txt ├── camera_pipeline.fig ├── camera_pipeline.m ├── dngOneExeSDK └── dng_validate.exe ├── executable_for_macOS ├── __MACOSX │ └── ._dng_validate.exe ├── dng_validate.exe └── dng_validate.zip ├── image ├── compare_two_images.m ├── load_Stage4_image.m └── plot_error.m ├── lastStage.txt ├── rwSettings.txt ├── sample_image ├── NIKOND40_0008_dng_converted.dng └── NikonD40_0008.NEF ├── stageSettings.txt ├── wb.txt └── wbAndGainSettings.txt /Adobe_DNG_SDK_Pipeline_v4.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/Adobe_DNG_SDK_Pipeline_v4.bmp -------------------------------------------------------------------------------- /CAM.txt: -------------------------------------------------------------------------------- 1 | 1.4925 2 | 0.0328 3 | 0.1363 4 | 0.2651 5 | 1.0007 6 | -0.3100 7 | 0.1005 8 | -0.1081 9 | 3.0301 -------------------------------------------------------------------------------- /EV.txt: -------------------------------------------------------------------------------- 1 | 0.0 -------------------------------------------------------------------------------- /EV_original.txt: -------------------------------------------------------------------------------- 1 | 0.0 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # camera-pipeline-UI 2 | 3 | Please note that the executable in .\dngOneExeSDK\ folder is for Windows. Dr. Derya Akkaynak and Dr. Ben D. Singer from Princeton University produced an executable for macOS. If you are using macOS, you need to replace **dngOneExeSDK** with **executable_for_macOS** in the Matlab script camera_pipeline.m 4 | 5 | You can download Adobe DNG SDK [here](https://github.com/karaimer/camera-pipeline-dng-sdk) 6 | 7 | You can download an example for the non-UI version of the camera pipeline [here](https://github.com/karaimer/camera-pipeline-nonUI) 8 | -------------------------------------------------------------------------------- /Tone2.txt: -------------------------------------------------------------------------------- 1 | 0 2 | 0.00078 3 | 0.0016 4 | 0.00242 5 | 0.00314 6 | 0.00385 7 | 0.0046 8 | 0.00539 9 | 0.00623 10 | 0.00712 11 | 0.00806 12 | 0.00906 13 | 0.01012 14 | 0.01122 15 | 0.01238 16 | 0.01359 17 | 0.01485 18 | 0.01616 19 | 0.01751 20 | 0.0189 21 | 0.02033 22 | 0.0218 23 | 0.02331 24 | 0.02485 25 | 0.02643 26 | 0.02804 27 | 0.02967 28 | 0.03134 29 | 0.03303 30 | 0.03475 31 | 0.03648 32 | 0.03824 33 | 0.04002 34 | 0.04181 35 | 0.04362 36 | 0.04545 37 | 0.0473 38 | 0.04916 39 | 0.05103 40 | 0.05292 41 | 0.05483 42 | 0.05675 43 | 0.05868 44 | 0.06063 45 | 0.06259 46 | 0.06457 47 | 0.06655 48 | 0.06856 49 | 0.07057 50 | 0.07259 51 | 0.07463 52 | 0.07668 53 | 0.07874 54 | 0.08081 55 | 0.0829 56 | 0.08499 57 | 0.0871 58 | 0.08921 59 | 0.09134 60 | 0.09348 61 | 0.09563 62 | 0.09779 63 | 0.09996 64 | 0.10214 65 | 0.10433 66 | 0.10652 67 | 0.10873 68 | 0.11095 69 | 0.11318 70 | 0.11541 71 | 0.11766 72 | 0.11991 73 | 0.12218 74 | 0.12445 75 | 0.12673 76 | 0.12902 77 | 0.13132 78 | 0.13363 79 | 0.13595 80 | 0.13827 81 | 0.14061 82 | 0.14295 83 | 0.1453 84 | 0.14765 85 | 0.15002 86 | 0.15239 87 | 0.15477 88 | 0.15716 89 | 0.15956 90 | 0.16197 91 | 0.16438 92 | 0.1668 93 | 0.16923 94 | 0.17166 95 | 0.1741 96 | 0.17655 97 | 0.17901 98 | 0.18148 99 | 0.18395 100 | 0.18643 101 | 0.18891 102 | 0.19141 103 | 0.19391 104 | 0.19641 105 | 0.19893 106 | 0.20145 107 | 0.20398 108 | 0.20651 109 | 0.20905 110 | 0.2116 111 | 0.21416 112 | 0.21672 113 | 0.21929 114 | 0.22185 115 | 0.2244 116 | 0.22696 117 | 0.2295 118 | 0.23204 119 | 0.23458 120 | 0.23711 121 | 0.23963 122 | 0.24215 123 | 0.24466 124 | 0.24717 125 | 0.24967 126 | 0.25216 127 | 0.25465 128 | 0.25713 129 | 0.25961 130 | 0.26208 131 | 0.26454 132 | 0.267 133 | 0.26945 134 | 0.27189 135 | 0.27433 136 | 0.27676 137 | 0.27918 138 | 0.2816 139 | 0.28401 140 | 0.28641 141 | 0.28881 142 | 0.2912 143 | 0.29358 144 | 0.29596 145 | 0.29833 146 | 0.30069 147 | 0.30305 148 | 0.3054 149 | 0.30774 150 | 0.31008 151 | 0.31241 152 | 0.31473 153 | 0.31704 154 | 0.31935 155 | 0.32165 156 | 0.32395 157 | 0.32623 158 | 0.32851 159 | 0.33079 160 | 0.33305 161 | 0.33531 162 | 0.33756 163 | 0.33981 164 | 0.34205 165 | 0.34428 166 | 0.3465 167 | 0.34872 168 | 0.35093 169 | 0.35313 170 | 0.35532 171 | 0.35751 172 | 0.35969 173 | 0.36187 174 | 0.36404 175 | 0.3662 176 | 0.36835 177 | 0.3705 178 | 0.37264 179 | 0.37477 180 | 0.37689 181 | 0.37901 182 | 0.38112 183 | 0.38323 184 | 0.38533 185 | 0.38742 186 | 0.3895 187 | 0.39158 188 | 0.39365 189 | 0.39571 190 | 0.39777 191 | 0.39982 192 | 0.40186 193 | 0.40389 194 | 0.40592 195 | 0.40794 196 | 0.40996 197 | 0.41197 198 | 0.41397 199 | 0.41596 200 | 0.41795 201 | 0.41993 202 | 0.42191 203 | 0.42388 204 | 0.42584 205 | 0.42779 206 | 0.42974 207 | 0.43168 208 | 0.43362 209 | 0.43554 210 | 0.43747 211 | 0.43938 212 | 0.44129 213 | 0.44319 214 | 0.44509 215 | 0.44698 216 | 0.44886 217 | 0.45073 218 | 0.4526 219 | 0.45447 220 | 0.45632 221 | 0.45817 222 | 0.46002 223 | 0.46186 224 | 0.46369 225 | 0.46551 226 | 0.46733 227 | 0.46914 228 | 0.47095 229 | 0.47275 230 | 0.47454 231 | 0.47633 232 | 0.47811 233 | 0.47989 234 | 0.48166 235 | 0.48342 236 | 0.48518 237 | 0.48693 238 | 0.48867 239 | 0.49041 240 | 0.49214 241 | 0.49387 242 | 0.49559 243 | 0.4973 244 | 0.49901 245 | 0.50072 246 | 0.50241 247 | 0.5041 248 | 0.50579 249 | 0.50747 250 | 0.50914 251 | 0.51081 252 | 0.51247 253 | 0.51413 254 | 0.51578 255 | 0.51742 256 | 0.51906 257 | 0.52069 258 | 0.52232 259 | 0.52394 260 | 0.52556 261 | 0.52717 262 | 0.52878 263 | 0.53038 264 | 0.53197 265 | 0.53356 266 | 0.53514 267 | 0.53672 268 | 0.53829 269 | 0.53986 270 | 0.54142 271 | 0.54297 272 | 0.54452 273 | 0.54607 274 | 0.54761 275 | 0.54914 276 | 0.55067 277 | 0.5522 278 | 0.55371 279 | 0.55523 280 | 0.55673 281 | 0.55824 282 | 0.55973 283 | 0.56123 284 | 0.56271 285 | 0.5642 286 | 0.56567 287 | 0.56715 288 | 0.56861 289 | 0.57007 290 | 0.57153 291 | 0.57298 292 | 0.57443 293 | 0.57587 294 | 0.57731 295 | 0.57874 296 | 0.58017 297 | 0.58159 298 | 0.58301 299 | 0.58443 300 | 0.58583 301 | 0.58724 302 | 0.58864 303 | 0.59003 304 | 0.59142 305 | 0.59281 306 | 0.59419 307 | 0.59556 308 | 0.59694 309 | 0.5983 310 | 0.59966 311 | 0.60102 312 | 0.60238 313 | 0.60373 314 | 0.60507 315 | 0.60641 316 | 0.60775 317 | 0.60908 318 | 0.6104 319 | 0.61173 320 | 0.61305 321 | 0.61436 322 | 0.61567 323 | 0.61698 324 | 0.61828 325 | 0.61957 326 | 0.62087 327 | 0.62216 328 | 0.62344 329 | 0.62472 330 | 0.626 331 | 0.62727 332 | 0.62854 333 | 0.6298 334 | 0.63106 335 | 0.63232 336 | 0.63357 337 | 0.63482 338 | 0.63606 339 | 0.6373 340 | 0.63854 341 | 0.63977 342 | 0.641 343 | 0.64222 344 | 0.64344 345 | 0.64466 346 | 0.64587 347 | 0.64708 348 | 0.64829 349 | 0.64949 350 | 0.65069 351 | 0.65188 352 | 0.65307 353 | 0.65426 354 | 0.65544 355 | 0.65662 356 | 0.65779 357 | 0.65897 358 | 0.66013 359 | 0.6613 360 | 0.66246 361 | 0.66362 362 | 0.66477 363 | 0.66592 364 | 0.66707 365 | 0.66821 366 | 0.66935 367 | 0.67048 368 | 0.67162 369 | 0.67275 370 | 0.67387 371 | 0.67499 372 | 0.67611 373 | 0.67723 374 | 0.67834 375 | 0.67945 376 | 0.68055 377 | 0.68165 378 | 0.68275 379 | 0.68385 380 | 0.68494 381 | 0.68603 382 | 0.68711 383 | 0.68819 384 | 0.68927 385 | 0.69035 386 | 0.69142 387 | 0.69249 388 | 0.69355 389 | 0.69461 390 | 0.69567 391 | 0.69673 392 | 0.69778 393 | 0.69883 394 | 0.69988 395 | 0.70092 396 | 0.70196 397 | 0.703 398 | 0.70403 399 | 0.70506 400 | 0.70609 401 | 0.70711 402 | 0.70813 403 | 0.70915 404 | 0.71017 405 | 0.71118 406 | 0.71219 407 | 0.71319 408 | 0.7142 409 | 0.7152 410 | 0.7162 411 | 0.71719 412 | 0.71818 413 | 0.71917 414 | 0.72016 415 | 0.72114 416 | 0.72212 417 | 0.72309 418 | 0.72407 419 | 0.72504 420 | 0.72601 421 | 0.72697 422 | 0.72794 423 | 0.7289 424 | 0.72985 425 | 0.73081 426 | 0.73176 427 | 0.73271 428 | 0.73365 429 | 0.7346 430 | 0.73554 431 | 0.73647 432 | 0.73741 433 | 0.73834 434 | 0.73927 435 | 0.7402 436 | 0.74112 437 | 0.74204 438 | 0.74296 439 | 0.74388 440 | 0.74479 441 | 0.7457 442 | 0.74661 443 | 0.74751 444 | 0.74842 445 | 0.74932 446 | 0.75021 447 | 0.75111 448 | 0.752 449 | 0.75289 450 | 0.75378 451 | 0.75466 452 | 0.75555 453 | 0.75643 454 | 0.7573 455 | 0.75818 456 | 0.75905 457 | 0.75992 458 | 0.76079 459 | 0.76165 460 | 0.76251 461 | 0.76337 462 | 0.76423 463 | 0.76508 464 | 0.76594 465 | 0.76679 466 | 0.76763 467 | 0.76848 468 | 0.76932 469 | 0.77016 470 | 0.771 471 | 0.77183 472 | 0.77267 473 | 0.7735 474 | 0.77432 475 | 0.77515 476 | 0.77597 477 | 0.7768 478 | 0.77761 479 | 0.77843 480 | 0.77924 481 | 0.78006 482 | 0.78087 483 | 0.78167 484 | 0.78248 485 | 0.78328 486 | 0.78408 487 | 0.78488 488 | 0.78568 489 | 0.78647 490 | 0.78726 491 | 0.78805 492 | 0.78884 493 | 0.78962 494 | 0.7904 495 | 0.79118 496 | 0.79196 497 | 0.79274 498 | 0.79351 499 | 0.79428 500 | 0.79505 501 | 0.79582 502 | 0.79658 503 | 0.79735 504 | 0.79811 505 | 0.79887 506 | 0.79962 507 | 0.80038 508 | 0.80113 509 | 0.80188 510 | 0.80263 511 | 0.80337 512 | 0.80412 513 | 0.80486 514 | 0.8056 515 | 0.80634 516 | 0.80707 517 | 0.8078 518 | 0.80854 519 | 0.80926 520 | 0.80999 521 | 0.81072 522 | 0.81144 523 | 0.81216 524 | 0.81288 525 | 0.8136 526 | 0.81431 527 | 0.81503 528 | 0.81574 529 | 0.81645 530 | 0.81715 531 | 0.81786 532 | 0.81856 533 | 0.81926 534 | 0.81996 535 | 0.82066 536 | 0.82135 537 | 0.82205 538 | 0.82274 539 | 0.82343 540 | 0.82412 541 | 0.8248 542 | 0.82549 543 | 0.82617 544 | 0.82685 545 | 0.82753 546 | 0.8282 547 | 0.82888 548 | 0.82955 549 | 0.83022 550 | 0.83089 551 | 0.83155 552 | 0.83222 553 | 0.83288 554 | 0.83354 555 | 0.8342 556 | 0.83486 557 | 0.83552 558 | 0.83617 559 | 0.83682 560 | 0.83747 561 | 0.83812 562 | 0.83877 563 | 0.83941 564 | 0.84005 565 | 0.84069 566 | 0.84133 567 | 0.84197 568 | 0.84261 569 | 0.84324 570 | 0.84387 571 | 0.8445 572 | 0.84513 573 | 0.84576 574 | 0.84639 575 | 0.84701 576 | 0.84763 577 | 0.84825 578 | 0.84887 579 | 0.84949 580 | 0.8501 581 | 0.85071 582 | 0.85132 583 | 0.85193 584 | 0.85254 585 | 0.85315 586 | 0.85375 587 | 0.85436 588 | 0.85496 589 | 0.85556 590 | 0.85615 591 | 0.85675 592 | 0.85735 593 | 0.85794 594 | 0.85853 595 | 0.85912 596 | 0.85971 597 | 0.86029 598 | 0.86088 599 | 0.86146 600 | 0.86204 601 | 0.86262 602 | 0.8632 603 | 0.86378 604 | 0.86435 605 | 0.86493 606 | 0.8655 607 | 0.86607 608 | 0.86664 609 | 0.8672 610 | 0.86777 611 | 0.86833 612 | 0.86889 613 | 0.86945 614 | 0.87001 615 | 0.87057 616 | 0.87113 617 | 0.87168 618 | 0.87223 619 | 0.87278 620 | 0.87333 621 | 0.87388 622 | 0.87443 623 | 0.87497 624 | 0.87552 625 | 0.87606 626 | 0.8766 627 | 0.87714 628 | 0.87768 629 | 0.87821 630 | 0.87875 631 | 0.87928 632 | 0.87981 633 | 0.88034 634 | 0.88087 635 | 0.8814 636 | 0.88192 637 | 0.88244 638 | 0.88297 639 | 0.88349 640 | 0.88401 641 | 0.88453 642 | 0.88504 643 | 0.88556 644 | 0.88607 645 | 0.88658 646 | 0.88709 647 | 0.8876 648 | 0.88811 649 | 0.88862 650 | 0.88912 651 | 0.88963 652 | 0.89013 653 | 0.89063 654 | 0.89113 655 | 0.89163 656 | 0.89212 657 | 0.89262 658 | 0.89311 659 | 0.8936 660 | 0.89409 661 | 0.89458 662 | 0.89507 663 | 0.89556 664 | 0.89604 665 | 0.89653 666 | 0.89701 667 | 0.89749 668 | 0.89797 669 | 0.89845 670 | 0.89892 671 | 0.8994 672 | 0.89987 673 | 0.90035 674 | 0.90082 675 | 0.90129 676 | 0.90176 677 | 0.90222 678 | 0.90269 679 | 0.90316 680 | 0.90362 681 | 0.90408 682 | 0.90454 683 | 0.905 684 | 0.90546 685 | 0.90592 686 | 0.90637 687 | 0.90683 688 | 0.90728 689 | 0.90773 690 | 0.90818 691 | 0.90863 692 | 0.90908 693 | 0.90952 694 | 0.90997 695 | 0.91041 696 | 0.91085 697 | 0.9113 698 | 0.91173 699 | 0.91217 700 | 0.91261 701 | 0.91305 702 | 0.91348 703 | 0.91392 704 | 0.91435 705 | 0.91478 706 | 0.91521 707 | 0.91564 708 | 0.91606 709 | 0.91649 710 | 0.91691 711 | 0.91734 712 | 0.91776 713 | 0.91818 714 | 0.9186 715 | 0.91902 716 | 0.91944 717 | 0.91985 718 | 0.92027 719 | 0.92068 720 | 0.92109 721 | 0.9215 722 | 0.92191 723 | 0.92232 724 | 0.92273 725 | 0.92314 726 | 0.92354 727 | 0.92395 728 | 0.92435 729 | 0.92475 730 | 0.92515 731 | 0.92555 732 | 0.92595 733 | 0.92634 734 | 0.92674 735 | 0.92713 736 | 0.92753 737 | 0.92792 738 | 0.92831 739 | 0.9287 740 | 0.92909 741 | 0.92947 742 | 0.92986 743 | 0.93025 744 | 0.93063 745 | 0.93101 746 | 0.93139 747 | 0.93177 748 | 0.93215 749 | 0.93253 750 | 0.93291 751 | 0.93328 752 | 0.93366 753 | 0.93403 754 | 0.9344 755 | 0.93478 756 | 0.93515 757 | 0.93551 758 | 0.93588 759 | 0.93625 760 | 0.93661 761 | 0.93698 762 | 0.93734 763 | 0.9377 764 | 0.93807 765 | 0.93843 766 | 0.93878 767 | 0.93914 768 | 0.9395 769 | 0.93986 770 | 0.94021 771 | 0.94056 772 | 0.94092 773 | 0.94127 774 | 0.94162 775 | 0.94197 776 | 0.94231 777 | 0.94266 778 | 0.94301 779 | 0.94335 780 | 0.94369 781 | 0.94404 782 | 0.94438 783 | 0.94472 784 | 0.94506 785 | 0.9454 786 | 0.94573 787 | 0.94607 788 | 0.94641 789 | 0.94674 790 | 0.94707 791 | 0.9474 792 | 0.94774 793 | 0.94807 794 | 0.94839 795 | 0.94872 796 | 0.94905 797 | 0.94937 798 | 0.9497 799 | 0.95002 800 | 0.95035 801 | 0.95067 802 | 0.95099 803 | 0.95131 804 | 0.95163 805 | 0.95194 806 | 0.95226 807 | 0.95257 808 | 0.95289 809 | 0.9532 810 | 0.95351 811 | 0.95383 812 | 0.95414 813 | 0.95445 814 | 0.95475 815 | 0.95506 816 | 0.95537 817 | 0.95567 818 | 0.95598 819 | 0.95628 820 | 0.95658 821 | 0.95688 822 | 0.95718 823 | 0.95748 824 | 0.95778 825 | 0.95808 826 | 0.95838 827 | 0.95867 828 | 0.95897 829 | 0.95926 830 | 0.95955 831 | 0.95984 832 | 0.96013 833 | 0.96042 834 | 0.96071 835 | 0.961 836 | 0.96129 837 | 0.96157 838 | 0.96186 839 | 0.96214 840 | 0.96242 841 | 0.96271 842 | 0.96299 843 | 0.96327 844 | 0.96355 845 | 0.96382 846 | 0.9641 847 | 0.96438 848 | 0.96465 849 | 0.96493 850 | 0.9652 851 | 0.96547 852 | 0.96574 853 | 0.96602 854 | 0.96629 855 | 0.96655 856 | 0.96682 857 | 0.96709 858 | 0.96735 859 | 0.96762 860 | 0.96788 861 | 0.96815 862 | 0.96841 863 | 0.96867 864 | 0.96893 865 | 0.96919 866 | 0.96945 867 | 0.96971 868 | 0.96996 869 | 0.97022 870 | 0.97047 871 | 0.97073 872 | 0.97098 873 | 0.97123 874 | 0.97149 875 | 0.97174 876 | 0.97199 877 | 0.97223 878 | 0.97248 879 | 0.97273 880 | 0.97297 881 | 0.97322 882 | 0.97346 883 | 0.97371 884 | 0.97395 885 | 0.97419 886 | 0.97443 887 | 0.97467 888 | 0.97491 889 | 0.97515 890 | 0.97539 891 | 0.97562 892 | 0.97586 893 | 0.97609 894 | 0.97633 895 | 0.97656 896 | 0.97679 897 | 0.97702 898 | 0.97725 899 | 0.97748 900 | 0.97771 901 | 0.97794 902 | 0.97817 903 | 0.97839 904 | 0.97862 905 | 0.97884 906 | 0.97907 907 | 0.97929 908 | 0.97951 909 | 0.97973 910 | 0.97995 911 | 0.98017 912 | 0.98039 913 | 0.98061 914 | 0.98082 915 | 0.98104 916 | 0.98125 917 | 0.98147 918 | 0.98168 919 | 0.98189 920 | 0.98211 921 | 0.98232 922 | 0.98253 923 | 0.98274 924 | 0.98295 925 | 0.98315 926 | 0.98336 927 | 0.98357 928 | 0.98377 929 | 0.98398 930 | 0.98418 931 | 0.98438 932 | 0.98458 933 | 0.98478 934 | 0.98498 935 | 0.98518 936 | 0.98538 937 | 0.98558 938 | 0.98578 939 | 0.98597 940 | 0.98617 941 | 0.98636 942 | 0.98656 943 | 0.98675 944 | 0.98694 945 | 0.98714 946 | 0.98733 947 | 0.98752 948 | 0.98771 949 | 0.98789 950 | 0.98808 951 | 0.98827 952 | 0.98845 953 | 0.98864 954 | 0.98882 955 | 0.98901 956 | 0.98919 957 | 0.98937 958 | 0.98955 959 | 0.98973 960 | 0.98991 961 | 0.99009 962 | 0.99027 963 | 0.99045 964 | 0.99063 965 | 0.9908 966 | 0.99098 967 | 0.99115 968 | 0.99133 969 | 0.9915 970 | 0.99167 971 | 0.99184 972 | 0.99201 973 | 0.99218 974 | 0.99235 975 | 0.99252 976 | 0.99269 977 | 0.99285 978 | 0.99302 979 | 0.99319 980 | 0.99335 981 | 0.99351 982 | 0.99368 983 | 0.99384 984 | 0.994 985 | 0.99416 986 | 0.99432 987 | 0.99448 988 | 0.99464 989 | 0.9948 990 | 0.99495 991 | 0.99511 992 | 0.99527 993 | 0.99542 994 | 0.99558 995 | 0.99573 996 | 0.99588 997 | 0.99603 998 | 0.99619 999 | 0.99634 1000 | 0.99649 1001 | 0.99664 1002 | 0.99678 1003 | 0.99693 1004 | 0.99708 1005 | 0.99722 1006 | 0.99737 1007 | 0.99751 1008 | 0.99766 1009 | 0.9978 1010 | 0.99794 1011 | 0.99809 1012 | 0.99823 1013 | 0.99837 1014 | 0.99851 1015 | 0.99865 1016 | 0.99879 1017 | 0.99892 1018 | 0.99906 1019 | 0.9992 1020 | 0.99933 1021 | 0.99947 1022 | 0.9996 1023 | 0.99974 1024 | 0.99987 1025 | 1 -------------------------------------------------------------------------------- /Tone2_sdk_original.txt: -------------------------------------------------------------------------------- 1 | 0 2 | 0.00078 3 | 0.0016 4 | 0.00242 5 | 0.00314 6 | 0.00385 7 | 0.0046 8 | 0.00539 9 | 0.00623 10 | 0.00712 11 | 0.00806 12 | 0.00906 13 | 0.01012 14 | 0.01122 15 | 0.01238 16 | 0.01359 17 | 0.01485 18 | 0.01616 19 | 0.01751 20 | 0.0189 21 | 0.02033 22 | 0.0218 23 | 0.02331 24 | 0.02485 25 | 0.02643 26 | 0.02804 27 | 0.02967 28 | 0.03134 29 | 0.03303 30 | 0.03475 31 | 0.03648 32 | 0.03824 33 | 0.04002 34 | 0.04181 35 | 0.04362 36 | 0.04545 37 | 0.0473 38 | 0.04916 39 | 0.05103 40 | 0.05292 41 | 0.05483 42 | 0.05675 43 | 0.05868 44 | 0.06063 45 | 0.06259 46 | 0.06457 47 | 0.06655 48 | 0.06856 49 | 0.07057 50 | 0.07259 51 | 0.07463 52 | 0.07668 53 | 0.07874 54 | 0.08081 55 | 0.0829 56 | 0.08499 57 | 0.0871 58 | 0.08921 59 | 0.09134 60 | 0.09348 61 | 0.09563 62 | 0.09779 63 | 0.09996 64 | 0.10214 65 | 0.10433 66 | 0.10652 67 | 0.10873 68 | 0.11095 69 | 0.11318 70 | 0.11541 71 | 0.11766 72 | 0.11991 73 | 0.12218 74 | 0.12445 75 | 0.12673 76 | 0.12902 77 | 0.13132 78 | 0.13363 79 | 0.13595 80 | 0.13827 81 | 0.14061 82 | 0.14295 83 | 0.1453 84 | 0.14765 85 | 0.15002 86 | 0.15239 87 | 0.15477 88 | 0.15716 89 | 0.15956 90 | 0.16197 91 | 0.16438 92 | 0.1668 93 | 0.16923 94 | 0.17166 95 | 0.1741 96 | 0.17655 97 | 0.17901 98 | 0.18148 99 | 0.18395 100 | 0.18643 101 | 0.18891 102 | 0.19141 103 | 0.19391 104 | 0.19641 105 | 0.19893 106 | 0.20145 107 | 0.20398 108 | 0.20651 109 | 0.20905 110 | 0.2116 111 | 0.21416 112 | 0.21672 113 | 0.21929 114 | 0.22185 115 | 0.2244 116 | 0.22696 117 | 0.2295 118 | 0.23204 119 | 0.23458 120 | 0.23711 121 | 0.23963 122 | 0.24215 123 | 0.24466 124 | 0.24717 125 | 0.24967 126 | 0.25216 127 | 0.25465 128 | 0.25713 129 | 0.25961 130 | 0.26208 131 | 0.26454 132 | 0.267 133 | 0.26945 134 | 0.27189 135 | 0.27433 136 | 0.27676 137 | 0.27918 138 | 0.2816 139 | 0.28401 140 | 0.28641 141 | 0.28881 142 | 0.2912 143 | 0.29358 144 | 0.29596 145 | 0.29833 146 | 0.30069 147 | 0.30305 148 | 0.3054 149 | 0.30774 150 | 0.31008 151 | 0.31241 152 | 0.31473 153 | 0.31704 154 | 0.31935 155 | 0.32165 156 | 0.32395 157 | 0.32623 158 | 0.32851 159 | 0.33079 160 | 0.33305 161 | 0.33531 162 | 0.33756 163 | 0.33981 164 | 0.34205 165 | 0.34428 166 | 0.3465 167 | 0.34872 168 | 0.35093 169 | 0.35313 170 | 0.35532 171 | 0.35751 172 | 0.35969 173 | 0.36187 174 | 0.36404 175 | 0.3662 176 | 0.36835 177 | 0.3705 178 | 0.37264 179 | 0.37477 180 | 0.37689 181 | 0.37901 182 | 0.38112 183 | 0.38323 184 | 0.38533 185 | 0.38742 186 | 0.3895 187 | 0.39158 188 | 0.39365 189 | 0.39571 190 | 0.39777 191 | 0.39982 192 | 0.40186 193 | 0.40389 194 | 0.40592 195 | 0.40794 196 | 0.40996 197 | 0.41197 198 | 0.41397 199 | 0.41596 200 | 0.41795 201 | 0.41993 202 | 0.42191 203 | 0.42388 204 | 0.42584 205 | 0.42779 206 | 0.42974 207 | 0.43168 208 | 0.43362 209 | 0.43554 210 | 0.43747 211 | 0.43938 212 | 0.44129 213 | 0.44319 214 | 0.44509 215 | 0.44698 216 | 0.44886 217 | 0.45073 218 | 0.4526 219 | 0.45447 220 | 0.45632 221 | 0.45817 222 | 0.46002 223 | 0.46186 224 | 0.46369 225 | 0.46551 226 | 0.46733 227 | 0.46914 228 | 0.47095 229 | 0.47275 230 | 0.47454 231 | 0.47633 232 | 0.47811 233 | 0.47989 234 | 0.48166 235 | 0.48342 236 | 0.48518 237 | 0.48693 238 | 0.48867 239 | 0.49041 240 | 0.49214 241 | 0.49387 242 | 0.49559 243 | 0.4973 244 | 0.49901 245 | 0.50072 246 | 0.50241 247 | 0.5041 248 | 0.50579 249 | 0.50747 250 | 0.50914 251 | 0.51081 252 | 0.51247 253 | 0.51413 254 | 0.51578 255 | 0.51742 256 | 0.51906 257 | 0.52069 258 | 0.52232 259 | 0.52394 260 | 0.52556 261 | 0.52717 262 | 0.52878 263 | 0.53038 264 | 0.53197 265 | 0.53356 266 | 0.53514 267 | 0.53672 268 | 0.53829 269 | 0.53986 270 | 0.54142 271 | 0.54297 272 | 0.54452 273 | 0.54607 274 | 0.54761 275 | 0.54914 276 | 0.55067 277 | 0.5522 278 | 0.55371 279 | 0.55523 280 | 0.55673 281 | 0.55824 282 | 0.55973 283 | 0.56123 284 | 0.56271 285 | 0.5642 286 | 0.56567 287 | 0.56715 288 | 0.56861 289 | 0.57007 290 | 0.57153 291 | 0.57298 292 | 0.57443 293 | 0.57587 294 | 0.57731 295 | 0.57874 296 | 0.58017 297 | 0.58159 298 | 0.58301 299 | 0.58443 300 | 0.58583 301 | 0.58724 302 | 0.58864 303 | 0.59003 304 | 0.59142 305 | 0.59281 306 | 0.59419 307 | 0.59556 308 | 0.59694 309 | 0.5983 310 | 0.59966 311 | 0.60102 312 | 0.60238 313 | 0.60373 314 | 0.60507 315 | 0.60641 316 | 0.60775 317 | 0.60908 318 | 0.6104 319 | 0.61173 320 | 0.61305 321 | 0.61436 322 | 0.61567 323 | 0.61698 324 | 0.61828 325 | 0.61957 326 | 0.62087 327 | 0.62216 328 | 0.62344 329 | 0.62472 330 | 0.626 331 | 0.62727 332 | 0.62854 333 | 0.6298 334 | 0.63106 335 | 0.63232 336 | 0.63357 337 | 0.63482 338 | 0.63606 339 | 0.6373 340 | 0.63854 341 | 0.63977 342 | 0.641 343 | 0.64222 344 | 0.64344 345 | 0.64466 346 | 0.64587 347 | 0.64708 348 | 0.64829 349 | 0.64949 350 | 0.65069 351 | 0.65188 352 | 0.65307 353 | 0.65426 354 | 0.65544 355 | 0.65662 356 | 0.65779 357 | 0.65897 358 | 0.66013 359 | 0.6613 360 | 0.66246 361 | 0.66362 362 | 0.66477 363 | 0.66592 364 | 0.66707 365 | 0.66821 366 | 0.66935 367 | 0.67048 368 | 0.67162 369 | 0.67275 370 | 0.67387 371 | 0.67499 372 | 0.67611 373 | 0.67723 374 | 0.67834 375 | 0.67945 376 | 0.68055 377 | 0.68165 378 | 0.68275 379 | 0.68385 380 | 0.68494 381 | 0.68603 382 | 0.68711 383 | 0.68819 384 | 0.68927 385 | 0.69035 386 | 0.69142 387 | 0.69249 388 | 0.69355 389 | 0.69461 390 | 0.69567 391 | 0.69673 392 | 0.69778 393 | 0.69883 394 | 0.69988 395 | 0.70092 396 | 0.70196 397 | 0.703 398 | 0.70403 399 | 0.70506 400 | 0.70609 401 | 0.70711 402 | 0.70813 403 | 0.70915 404 | 0.71017 405 | 0.71118 406 | 0.71219 407 | 0.71319 408 | 0.7142 409 | 0.7152 410 | 0.7162 411 | 0.71719 412 | 0.71818 413 | 0.71917 414 | 0.72016 415 | 0.72114 416 | 0.72212 417 | 0.72309 418 | 0.72407 419 | 0.72504 420 | 0.72601 421 | 0.72697 422 | 0.72794 423 | 0.7289 424 | 0.72985 425 | 0.73081 426 | 0.73176 427 | 0.73271 428 | 0.73365 429 | 0.7346 430 | 0.73554 431 | 0.73647 432 | 0.73741 433 | 0.73834 434 | 0.73927 435 | 0.7402 436 | 0.74112 437 | 0.74204 438 | 0.74296 439 | 0.74388 440 | 0.74479 441 | 0.7457 442 | 0.74661 443 | 0.74751 444 | 0.74842 445 | 0.74932 446 | 0.75021 447 | 0.75111 448 | 0.752 449 | 0.75289 450 | 0.75378 451 | 0.75466 452 | 0.75555 453 | 0.75643 454 | 0.7573 455 | 0.75818 456 | 0.75905 457 | 0.75992 458 | 0.76079 459 | 0.76165 460 | 0.76251 461 | 0.76337 462 | 0.76423 463 | 0.76508 464 | 0.76594 465 | 0.76679 466 | 0.76763 467 | 0.76848 468 | 0.76932 469 | 0.77016 470 | 0.771 471 | 0.77183 472 | 0.77267 473 | 0.7735 474 | 0.77432 475 | 0.77515 476 | 0.77597 477 | 0.7768 478 | 0.77761 479 | 0.77843 480 | 0.77924 481 | 0.78006 482 | 0.78087 483 | 0.78167 484 | 0.78248 485 | 0.78328 486 | 0.78408 487 | 0.78488 488 | 0.78568 489 | 0.78647 490 | 0.78726 491 | 0.78805 492 | 0.78884 493 | 0.78962 494 | 0.7904 495 | 0.79118 496 | 0.79196 497 | 0.79274 498 | 0.79351 499 | 0.79428 500 | 0.79505 501 | 0.79582 502 | 0.79658 503 | 0.79735 504 | 0.79811 505 | 0.79887 506 | 0.79962 507 | 0.80038 508 | 0.80113 509 | 0.80188 510 | 0.80263 511 | 0.80337 512 | 0.80412 513 | 0.80486 514 | 0.8056 515 | 0.80634 516 | 0.80707 517 | 0.8078 518 | 0.80854 519 | 0.80926 520 | 0.80999 521 | 0.81072 522 | 0.81144 523 | 0.81216 524 | 0.81288 525 | 0.8136 526 | 0.81431 527 | 0.81503 528 | 0.81574 529 | 0.81645 530 | 0.81715 531 | 0.81786 532 | 0.81856 533 | 0.81926 534 | 0.81996 535 | 0.82066 536 | 0.82135 537 | 0.82205 538 | 0.82274 539 | 0.82343 540 | 0.82412 541 | 0.8248 542 | 0.82549 543 | 0.82617 544 | 0.82685 545 | 0.82753 546 | 0.8282 547 | 0.82888 548 | 0.82955 549 | 0.83022 550 | 0.83089 551 | 0.83155 552 | 0.83222 553 | 0.83288 554 | 0.83354 555 | 0.8342 556 | 0.83486 557 | 0.83552 558 | 0.83617 559 | 0.83682 560 | 0.83747 561 | 0.83812 562 | 0.83877 563 | 0.83941 564 | 0.84005 565 | 0.84069 566 | 0.84133 567 | 0.84197 568 | 0.84261 569 | 0.84324 570 | 0.84387 571 | 0.8445 572 | 0.84513 573 | 0.84576 574 | 0.84639 575 | 0.84701 576 | 0.84763 577 | 0.84825 578 | 0.84887 579 | 0.84949 580 | 0.8501 581 | 0.85071 582 | 0.85132 583 | 0.85193 584 | 0.85254 585 | 0.85315 586 | 0.85375 587 | 0.85436 588 | 0.85496 589 | 0.85556 590 | 0.85615 591 | 0.85675 592 | 0.85735 593 | 0.85794 594 | 0.85853 595 | 0.85912 596 | 0.85971 597 | 0.86029 598 | 0.86088 599 | 0.86146 600 | 0.86204 601 | 0.86262 602 | 0.8632 603 | 0.86378 604 | 0.86435 605 | 0.86493 606 | 0.8655 607 | 0.86607 608 | 0.86664 609 | 0.8672 610 | 0.86777 611 | 0.86833 612 | 0.86889 613 | 0.86945 614 | 0.87001 615 | 0.87057 616 | 0.87113 617 | 0.87168 618 | 0.87223 619 | 0.87278 620 | 0.87333 621 | 0.87388 622 | 0.87443 623 | 0.87497 624 | 0.87552 625 | 0.87606 626 | 0.8766 627 | 0.87714 628 | 0.87768 629 | 0.87821 630 | 0.87875 631 | 0.87928 632 | 0.87981 633 | 0.88034 634 | 0.88087 635 | 0.8814 636 | 0.88192 637 | 0.88244 638 | 0.88297 639 | 0.88349 640 | 0.88401 641 | 0.88453 642 | 0.88504 643 | 0.88556 644 | 0.88607 645 | 0.88658 646 | 0.88709 647 | 0.8876 648 | 0.88811 649 | 0.88862 650 | 0.88912 651 | 0.88963 652 | 0.89013 653 | 0.89063 654 | 0.89113 655 | 0.89163 656 | 0.89212 657 | 0.89262 658 | 0.89311 659 | 0.8936 660 | 0.89409 661 | 0.89458 662 | 0.89507 663 | 0.89556 664 | 0.89604 665 | 0.89653 666 | 0.89701 667 | 0.89749 668 | 0.89797 669 | 0.89845 670 | 0.89892 671 | 0.8994 672 | 0.89987 673 | 0.90035 674 | 0.90082 675 | 0.90129 676 | 0.90176 677 | 0.90222 678 | 0.90269 679 | 0.90316 680 | 0.90362 681 | 0.90408 682 | 0.90454 683 | 0.905 684 | 0.90546 685 | 0.90592 686 | 0.90637 687 | 0.90683 688 | 0.90728 689 | 0.90773 690 | 0.90818 691 | 0.90863 692 | 0.90908 693 | 0.90952 694 | 0.90997 695 | 0.91041 696 | 0.91085 697 | 0.9113 698 | 0.91173 699 | 0.91217 700 | 0.91261 701 | 0.91305 702 | 0.91348 703 | 0.91392 704 | 0.91435 705 | 0.91478 706 | 0.91521 707 | 0.91564 708 | 0.91606 709 | 0.91649 710 | 0.91691 711 | 0.91734 712 | 0.91776 713 | 0.91818 714 | 0.9186 715 | 0.91902 716 | 0.91944 717 | 0.91985 718 | 0.92027 719 | 0.92068 720 | 0.92109 721 | 0.9215 722 | 0.92191 723 | 0.92232 724 | 0.92273 725 | 0.92314 726 | 0.92354 727 | 0.92395 728 | 0.92435 729 | 0.92475 730 | 0.92515 731 | 0.92555 732 | 0.92595 733 | 0.92634 734 | 0.92674 735 | 0.92713 736 | 0.92753 737 | 0.92792 738 | 0.92831 739 | 0.9287 740 | 0.92909 741 | 0.92947 742 | 0.92986 743 | 0.93025 744 | 0.93063 745 | 0.93101 746 | 0.93139 747 | 0.93177 748 | 0.93215 749 | 0.93253 750 | 0.93291 751 | 0.93328 752 | 0.93366 753 | 0.93403 754 | 0.9344 755 | 0.93478 756 | 0.93515 757 | 0.93551 758 | 0.93588 759 | 0.93625 760 | 0.93661 761 | 0.93698 762 | 0.93734 763 | 0.9377 764 | 0.93807 765 | 0.93843 766 | 0.93878 767 | 0.93914 768 | 0.9395 769 | 0.93986 770 | 0.94021 771 | 0.94056 772 | 0.94092 773 | 0.94127 774 | 0.94162 775 | 0.94197 776 | 0.94231 777 | 0.94266 778 | 0.94301 779 | 0.94335 780 | 0.94369 781 | 0.94404 782 | 0.94438 783 | 0.94472 784 | 0.94506 785 | 0.9454 786 | 0.94573 787 | 0.94607 788 | 0.94641 789 | 0.94674 790 | 0.94707 791 | 0.9474 792 | 0.94774 793 | 0.94807 794 | 0.94839 795 | 0.94872 796 | 0.94905 797 | 0.94937 798 | 0.9497 799 | 0.95002 800 | 0.95035 801 | 0.95067 802 | 0.95099 803 | 0.95131 804 | 0.95163 805 | 0.95194 806 | 0.95226 807 | 0.95257 808 | 0.95289 809 | 0.9532 810 | 0.95351 811 | 0.95383 812 | 0.95414 813 | 0.95445 814 | 0.95475 815 | 0.95506 816 | 0.95537 817 | 0.95567 818 | 0.95598 819 | 0.95628 820 | 0.95658 821 | 0.95688 822 | 0.95718 823 | 0.95748 824 | 0.95778 825 | 0.95808 826 | 0.95838 827 | 0.95867 828 | 0.95897 829 | 0.95926 830 | 0.95955 831 | 0.95984 832 | 0.96013 833 | 0.96042 834 | 0.96071 835 | 0.961 836 | 0.96129 837 | 0.96157 838 | 0.96186 839 | 0.96214 840 | 0.96242 841 | 0.96271 842 | 0.96299 843 | 0.96327 844 | 0.96355 845 | 0.96382 846 | 0.9641 847 | 0.96438 848 | 0.96465 849 | 0.96493 850 | 0.9652 851 | 0.96547 852 | 0.96574 853 | 0.96602 854 | 0.96629 855 | 0.96655 856 | 0.96682 857 | 0.96709 858 | 0.96735 859 | 0.96762 860 | 0.96788 861 | 0.96815 862 | 0.96841 863 | 0.96867 864 | 0.96893 865 | 0.96919 866 | 0.96945 867 | 0.96971 868 | 0.96996 869 | 0.97022 870 | 0.97047 871 | 0.97073 872 | 0.97098 873 | 0.97123 874 | 0.97149 875 | 0.97174 876 | 0.97199 877 | 0.97223 878 | 0.97248 879 | 0.97273 880 | 0.97297 881 | 0.97322 882 | 0.97346 883 | 0.97371 884 | 0.97395 885 | 0.97419 886 | 0.97443 887 | 0.97467 888 | 0.97491 889 | 0.97515 890 | 0.97539 891 | 0.97562 892 | 0.97586 893 | 0.97609 894 | 0.97633 895 | 0.97656 896 | 0.97679 897 | 0.97702 898 | 0.97725 899 | 0.97748 900 | 0.97771 901 | 0.97794 902 | 0.97817 903 | 0.97839 904 | 0.97862 905 | 0.97884 906 | 0.97907 907 | 0.97929 908 | 0.97951 909 | 0.97973 910 | 0.97995 911 | 0.98017 912 | 0.98039 913 | 0.98061 914 | 0.98082 915 | 0.98104 916 | 0.98125 917 | 0.98147 918 | 0.98168 919 | 0.98189 920 | 0.98211 921 | 0.98232 922 | 0.98253 923 | 0.98274 924 | 0.98295 925 | 0.98315 926 | 0.98336 927 | 0.98357 928 | 0.98377 929 | 0.98398 930 | 0.98418 931 | 0.98438 932 | 0.98458 933 | 0.98478 934 | 0.98498 935 | 0.98518 936 | 0.98538 937 | 0.98558 938 | 0.98578 939 | 0.98597 940 | 0.98617 941 | 0.98636 942 | 0.98656 943 | 0.98675 944 | 0.98694 945 | 0.98714 946 | 0.98733 947 | 0.98752 948 | 0.98771 949 | 0.98789 950 | 0.98808 951 | 0.98827 952 | 0.98845 953 | 0.98864 954 | 0.98882 955 | 0.98901 956 | 0.98919 957 | 0.98937 958 | 0.98955 959 | 0.98973 960 | 0.98991 961 | 0.99009 962 | 0.99027 963 | 0.99045 964 | 0.99063 965 | 0.9908 966 | 0.99098 967 | 0.99115 968 | 0.99133 969 | 0.9915 970 | 0.99167 971 | 0.99184 972 | 0.99201 973 | 0.99218 974 | 0.99235 975 | 0.99252 976 | 0.99269 977 | 0.99285 978 | 0.99302 979 | 0.99319 980 | 0.99335 981 | 0.99351 982 | 0.99368 983 | 0.99384 984 | 0.994 985 | 0.99416 986 | 0.99432 987 | 0.99448 988 | 0.99464 989 | 0.9948 990 | 0.99495 991 | 0.99511 992 | 0.99527 993 | 0.99542 994 | 0.99558 995 | 0.99573 996 | 0.99588 997 | 0.99603 998 | 0.99619 999 | 0.99634 1000 | 0.99649 1001 | 0.99664 1002 | 0.99678 1003 | 0.99693 1004 | 0.99708 1005 | 0.99722 1006 | 0.99737 1007 | 0.99751 1008 | 0.99766 1009 | 0.9978 1010 | 0.99794 1011 | 0.99809 1012 | 0.99823 1013 | 0.99837 1014 | 0.99851 1015 | 0.99865 1016 | 0.99879 1017 | 0.99892 1018 | 0.99906 1019 | 0.9992 1020 | 0.99933 1021 | 0.99947 1022 | 0.9996 1023 | 0.99974 1024 | 0.99987 1025 | 1 -------------------------------------------------------------------------------- /cam_settings.txt: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /camera_pipeline.fig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/camera_pipeline.fig -------------------------------------------------------------------------------- /camera_pipeline.m: -------------------------------------------------------------------------------- 1 | function varargout = camera_pipeline(varargin) 2 | % CAMERA_PIPELINE MATLAB code for camera_pipeline.fig 3 | % CAMERA_PIPELINE, by itself, creates a new CAMERA_PIPELINE or raises the existing 4 | % singleton*. 5 | % 6 | % H = CAMERA_PIPELINE returns the handle to a new CAMERA_PIPELINE or the handle to 7 | % the existing singleton*. 8 | % 9 | % CAMERA_PIPELINE('CALLBACK',hObject,eventData,handles,...) calls the local 10 | % function named CALLBACK in CAMERA_PIPELINE.M with the given input arguments. 11 | % 12 | % CAMERA_PIPELINE('Property','Value',...) creates a new CAMERA_PIPELINE or raises the 13 | % existing singleton*. Starting from the left, property value pairs are 14 | % applied to the GUI before camera_pipeline_OpeningFcn gets called. An 15 | % unrecognized property name or invalid value makes property application 16 | % stop. All inputs are passed to camera_pipeline_OpeningFcn via varargin. 17 | % 18 | % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one 19 | % instance to run (singleton)". 20 | % 21 | % See also: GUIDE, GUIDATA, GUIHANDLES 22 | 23 | % Edit the above text to modify the response to help camera_pipeline 24 | 25 | % Last Modified by GUIDE v2.5 03-Nov-2016 22:15:06 26 | 27 | % Begin initialization code - DO NOT EDIT 28 | gui_Singleton = 1; 29 | gui_State = struct('gui_Name', mfilename, ... 30 | 'gui_Singleton', gui_Singleton, ... 31 | 'gui_OpeningFcn', @camera_pipeline_OpeningFcn, ... 32 | 'gui_OutputFcn', @camera_pipeline_OutputFcn, ... 33 | 'gui_LayoutFcn', [] , ... 34 | 'gui_Callback', []); 35 | if nargin && ischar(varargin{1}) 36 | gui_State.gui_Callback = str2func(varargin{1}); 37 | end 38 | 39 | if nargout 40 | [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); 41 | else 42 | gui_mainfcn(gui_State, varargin{:}); 43 | end 44 | % End initialization code - DO NOT EDIT 45 | 46 | 47 | % --- Executes just before camera_pipeline is made visible. 48 | function camera_pipeline_OpeningFcn(hObject, eventdata, handles, varargin) 49 | % This function has no output args, see OutputFcn. 50 | % hObject handle to figure 51 | % eventdata reserved - to be defined in a future version of MATLAB 52 | % handles structure with handles and user data (see GUIDATA) 53 | % varargin command line arguments to camera_pipeline (see VARARGIN) 54 | 55 | % Choose default command line output for camera_pipeline 56 | handles.output = hObject; 57 | %TODO 58 | % maximize the GUI 59 | set(0, 'Unit', 'pixel'); 60 | winsize = get(0, 'ScreenSize'); 61 | 62 | % Set the Gui position 63 | winsize(1) = winsize(1) + 100; 64 | winsize(2) = winsize(2) + 100; 65 | winsize(3) = winsize(3) - 150; 66 | winsize(4) = winsize(4) - 150; 67 | set(gcf, 'Position', winsize); 68 | 69 | step = winsize(4) / 16; 70 | % Set the Panel position 71 | set(handles.uipanel1, 'Position', [3/4* winsize(3) + 100, 10, 1/4*winsize(3) - 20, winsize(4) + 50]); 72 | % Set the Axes position disappear 73 | set(handles.axes1, 'Position', [-10, -10, 5, 5]); 74 | % Update handles structure 75 | handles.myData.winsize = winsize; 76 | 77 | %current stage in pipeline 78 | handles.myData.current_stage = zeros(1,1); 79 | 80 | pipeline_image = im2double(imread(fullfile('.','Adobe_DNG_SDK_Pipeline_v4.bmp'))); 81 | % set the slider range and step size 82 | numSteps = 11; 83 | set(handles.slider1, 'Min', 1); 84 | set(handles.slider1, 'Max', numSteps); 85 | set(handles.slider1, 'Value', 1); 86 | set(handles.slider1, 'SliderStep', [1/(numSteps-1) , 1/(numSteps-1) ]); 87 | % save the current/last slider value 88 | handles.lastSliderVal = get(handles.slider1,'Value'); 89 | 90 | % Update handles structure 91 | handles.pushbutton1Pressed = 0; 92 | 93 | guidata(hObject, handles); 94 | % UIWAIT makes camera_pipeline wait for user response (see UIRESUME) 95 | % uiwait(handles.figure1); 96 | showImage(handles, pipeline_image); 97 | % prompt = {'Enter matrix size:','Enter colormap name:'}; 98 | % dlg_title = 'Input'; 99 | % num_lines = 1; 100 | % defaultans = {'20','hsv'}; 101 | % answer = inputdlg(prompt,dlg_title,num_lines,defaultans); 102 | 103 | % Get all the handles to everything we want to set in a single array. 104 | handleArray = [handles.pushbutton1, handles.pushbutton12, handles.radiobutton3, handles.radiobutton8, handles.radiobutton15, handles.radiobutton16]; 105 | % Set them all disabled. 106 | set(handleArray, 'Enable', 'off'); 107 | 108 | % --- Outputs from this function are returned to the command line. 109 | function varargout = camera_pipeline_OutputFcn(hObject, eventdata, handles) 110 | % varargout cell array for returning output args (see VARARGOUT); 111 | % hObject handle to figure 112 | % eventdata reserved - to be defined in a future version of MATLAB 113 | % handles structure with handles and user data (see GUIDATA) 114 | 115 | % Get default command line output from handles structure 116 | varargout{1} = handles.output; 117 | 118 | 119 | % --- Executes on button press in pushbutton1. 120 | function pushbutton1_Callback(hObject, eventdata, handles) 121 | %% 122 | % hObject handle to pushbutton1 (see GCBO) 123 | % eventdata reserved - to be defined in a future version of MATLAB 124 | % handles structure with handles and user data (see GUIDATA) 125 | 126 | [filename, pathname] = uigetfile( ... 127 | {'*.*', 'All Files (*.*)'; 128 | '*.cr2;*.nef;*.pef;','RAW Image Files (*.cr2,*.nef, *.pef)'; 129 | '*.dat','Spectral data files (*.dat)'}, ... 130 | 'Pick a file'); 131 | if isequal(filename,0) || isequal(pathname,0) 132 | else 133 | handles.myData.fileName = [pathname filename]; 134 | 135 | a = [get(handles.radiobutton15,'Value') get(handles.radiobutton16,'Value') get(handles.radiobutton3,'Value') get(handles.radiobutton8,'Value')]; 136 | fileID = fopen('wbAndGainSettings.txt','w'); 137 | fprintf(fileID,'%d\n',a); 138 | fclose(fileID); 139 | 140 | rwSettings = [0]; 141 | if (get(handles.radiobutton17,'Value') == 1) 142 | rwSettings(1) = 1; 143 | end 144 | if ((get(handles.radiobutton17,'Value') == 0) && (get(handles.radiobutton18,'Value') == 0)) 145 | rwSettings(1) = 2; 146 | end 147 | fileID = fopen('rwSettings.txt','w'); 148 | fprintf(fileID,'%d\n',rwSettings); 149 | fclose(fileID); 150 | 151 | 152 | 153 | cam_settings = [0]; 154 | if (get(handles.radiobutton20,'Value') == 1) 155 | cam_settings(1) = 1; 156 | end 157 | if ((get(handles.radiobutton20,'Value') == 0) && (get(handles.radiobutton19,'Value') == 0)) 158 | cam_settings(1) = 2; 159 | end 160 | fileID = fopen('cam_settings.txt','w'); 161 | fprintf(fileID,'%d\n',cam_settings); 162 | fclose(fileID); 163 | 164 | my_waitbar = waitbar(0, 'Rendering Image...'); 165 | 166 | inputFileName = [pathname filename]; 167 | if (handles.lastSliderVal == 1) 168 | stage1OutputFileName = [inputFileName(1:end-4) '_stage1.tif']; 169 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -1 ') stage1OutputFileName ' ' inputFileName]; 170 | system(system_command); 171 | handles.myData.image = imread(stage1OutputFileName); 172 | %imtool(uint8(handles.myData.image/256)) 173 | delete(stage1OutputFileName); 174 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 175 | end 176 | 177 | if (handles.lastSliderVal == 2) 178 | 179 | a = [0 1 0 1]; % without gain [0 1 ... 180 | fileID = fopen('wbAndGainSettings.txt','w'); 181 | fprintf(fileID,'%d\n',a); 182 | fclose(fileID); 183 | 184 | stageSettings_indicator = [2]; 185 | fileID = fopen('stageSettings.txt','w'); 186 | fprintf(fileID,'%d\n',stageSettings_indicator); 187 | fclose(fileID); 188 | 189 | if (get(handles.radiobutton17,'Value') == 0) 190 | fileID = fopen('lastStage.txt','w'); 191 | fprintf(fileID,'%d\n',stageSettings_indicator); 192 | fclose(fileID); 193 | end 194 | 195 | stage2OutputFileName = [inputFileName(1:end-4) '_stage2.tif']; 196 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -2 ') stage2OutputFileName ' ' inputFileName]; 197 | system(system_command); 198 | handles.myData.image = imread(stage2OutputFileName); 199 | delete(stage2OutputFileName); 200 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 201 | end 202 | 203 | if (handles.lastSliderVal == 3) 204 | 205 | a = [1 0 0 1]; % with gain [1 0 ... 206 | fileID = fopen('wbAndGainSettings.txt','w'); 207 | fprintf(fileID,'%d\n',a); 208 | fclose(fileID); 209 | 210 | stageSettings_indicator = [3]; 211 | fileID = fopen('stageSettings.txt','w'); 212 | fprintf(fileID,'%d\n',stageSettings_indicator); 213 | fclose(fileID); 214 | 215 | if (get(handles.radiobutton17,'Value') == 0) 216 | fileID = fopen('lastStage.txt','w'); 217 | fprintf(fileID,'%d\n',stageSettings_indicator); 218 | fclose(fileID); 219 | end 220 | 221 | stage3OutputFileName = [inputFileName(1:end-4) '_stage3.tif']; 222 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -2 ') stage3OutputFileName ' ' inputFileName]; 223 | system(system_command); 224 | handles.myData.image = imread(stage3OutputFileName); 225 | delete(stage3OutputFileName); 226 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 227 | end 228 | 229 | if (handles.lastSliderVal == 4) 230 | a = [4]; 231 | fileID = fopen('stageSettings.txt','w'); 232 | fprintf(fileID,'%d\n',a); 233 | fclose(fileID); 234 | 235 | stage4OutputFileName = [inputFileName(1:end-4) '_stage4.tif']; 236 | 237 | if (get(handles.radiobutton17,'Value') == 0 && get(handles.radiobutton18,'Value') == 1 ) 238 | fileID = fopen('lastStage.txt','w'); 239 | fprintf(fileID,'%d\n',a); 240 | fclose(fileID); 241 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage4OutputFileName ' ' inputFileName]; 242 | system(system_command); 243 | delete(stage4OutputFileName); 244 | end 245 | 246 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -3 ') stage4OutputFileName ' ' inputFileName]; 247 | system(system_command); 248 | handles.myData.image = imread(stage4OutputFileName); 249 | delete(stage4OutputFileName); 250 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 251 | end 252 | 253 | if (handles.lastSliderVal == 5) 254 | 255 | a = [5]; 256 | fileID = fopen('stageSettings.txt','w'); 257 | fprintf(fileID,'%d\n',a); 258 | fclose(fileID); 259 | 260 | if (get(handles.radiobutton17,'Value') == 0) 261 | fileID = fopen('lastStage.txt','w'); 262 | fprintf(fileID,'%d\n',a); 263 | fclose(fileID); 264 | end 265 | % 266 | stage5OutputFileName = [inputFileName(1:end-4) '_stage5.tif']; 267 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage5OutputFileName ' ' inputFileName]; 268 | system(system_command); 269 | handles.myData.image = imread(stage5OutputFileName); 270 | delete(stage5OutputFileName); 271 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 272 | end 273 | 274 | if (handles.lastSliderVal == 6) 275 | 276 | a = [6]; 277 | fileID = fopen('stageSettings.txt','w'); 278 | fprintf(fileID,'%d\n',a); 279 | fclose(fileID); 280 | 281 | if (get(handles.radiobutton17,'Value') == 0) 282 | fileID = fopen('lastStage.txt','w'); 283 | fprintf(fileID,'%d\n',a); 284 | fclose(fileID); 285 | end 286 | 287 | stage6OutputFileName = [inputFileName(1:end-4) '_stage6.tif']; 288 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage6OutputFileName ' ' inputFileName]; 289 | system(system_command); 290 | handles.myData.image = imread(stage6OutputFileName); 291 | delete(stage6OutputFileName); 292 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 293 | end 294 | 295 | if (handles.lastSliderVal == 7) 296 | 297 | a = [7]; 298 | fileID = fopen('stageSettings.txt','w'); 299 | fprintf(fileID,'%d\n',a); 300 | fclose(fileID); 301 | 302 | if (get(handles.radiobutton17,'Value') == 0) 303 | fileID = fopen('lastStage.txt','w'); 304 | fprintf(fileID,'%d\n',a); 305 | fclose(fileID); 306 | end 307 | 308 | stage7OutputFileName = [inputFileName(1:end-4) '_stage7.tif']; 309 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage7OutputFileName ' ' inputFileName]; 310 | system(system_command); 311 | handles.myData.image = imread(stage7OutputFileName); 312 | delete(stage7OutputFileName); 313 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 314 | end 315 | 316 | if (handles.lastSliderVal == 8) 317 | 318 | a = [8]; 319 | fileID = fopen('stageSettings.txt','w'); 320 | fprintf(fileID,'%d\n',a); 321 | fclose(fileID); 322 | 323 | if (get(handles.radiobutton17,'Value') == 0) 324 | fileID = fopen('lastStage.txt','w'); 325 | fprintf(fileID,'%d\n',a); 326 | fclose(fileID); 327 | end 328 | 329 | stage8OutputFileName = [inputFileName(1:end-4) '_stage8.tif']; 330 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage8OutputFileName ' ' inputFileName]; 331 | system(system_command); 332 | handles.myData.image = imread(stage8OutputFileName); 333 | delete(stage8OutputFileName); 334 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 335 | end 336 | 337 | if (handles.lastSliderVal == 9) 338 | 339 | a = [9]; 340 | fileID = fopen('stageSettings.txt','w'); 341 | fprintf(fileID,'%d\n',a); 342 | fclose(fileID); 343 | 344 | if (get(handles.radiobutton17,'Value') == 0) 345 | fileID = fopen('lastStage.txt','w'); 346 | fprintf(fileID,'%d\n',a); 347 | fclose(fileID); 348 | end 349 | 350 | stage9OutputFileName = [inputFileName(1:end-4) '_stage9.tif']; 351 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage9OutputFileName ' ' inputFileName]; 352 | system(system_command); 353 | handles.myData.image = imread(stage9OutputFileName); 354 | delete(stage9OutputFileName); 355 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 356 | end 357 | 358 | if (handles.lastSliderVal == 10) 359 | 360 | a = [10]; 361 | fileID = fopen('stageSettings.txt','w'); 362 | fprintf(fileID,'%d\n',a); 363 | fclose(fileID); 364 | 365 | if (get(handles.radiobutton17,'Value') == 0) 366 | fileID = fopen('lastStage.txt','w'); 367 | fprintf(fileID,'%d\n',a); 368 | fclose(fileID); 369 | end 370 | 371 | stage10OutputFileName = [inputFileName(1:end-4) '_stage10.tif'];%comment here when dng save tests. 372 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage10OutputFileName ' ' inputFileName];%comment here when dng save tests. 373 | % stage10OutputFileName = [inputFileName(1:end-4) '_stage10_V3.dng']; %comment out here when dng save tests. 374 | % system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -dng ') stage10OutputFileName ' ' inputFileName]; %comment out here when dng save tests. 375 | 376 | system(system_command); 377 | handles.myData.image = imread(stage10OutputFileName);%comment here when dng save tests. 378 | delete(stage10OutputFileName); %comment here when dng save tests. 379 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 380 | end 381 | 382 | if (handles.lastSliderVal == 11) 383 | 384 | a = [11]; 385 | fileID = fopen('stageSettings.txt','w'); 386 | fprintf(fileID,'%d\n',a); 387 | fclose(fileID); 388 | 389 | if (get(handles.radiobutton17,'Value') == 0) 390 | fileID = fopen('lastStage.txt','w'); 391 | fprintf(fileID,'%d\n',a); 392 | fclose(fileID); 393 | end 394 | 395 | stage11OutputFileName = [inputFileName(1:end-4) '_stage11.tif'];%comment here when dng save tests. 396 | system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -16 -cs1 -tif ') stage11OutputFileName ' ' inputFileName];%comment here when dng save tests. 397 | % stage11OutputFileName = [inputFileName(1:end-4) '_stage11_V3.dng']; %comment out here when dng save tests. 398 | % system_command = [fullfile('.','dngOneExeSDK','dng_validate.exe -dng ') stage11OutputFileName ' ' inputFileName]; %comment out here when dng save tests. 399 | system(system_command); 400 | handles.myData.image = imread(stage11OutputFileName); 401 | delete(stage11OutputFileName); %comment here when dng save tests. 402 | delete(my_waitbar) % DELETE the waitbar; don't try to CLOSE it. 403 | end 404 | 405 | % if (handles.lastSliderVal <= 9) 406 | % set(handles.pushbutton3, 'Enable', 'on'); 407 | % end 408 | set(handles.pushbutton1, 'Enable', 'off'); 409 | set(handles.pushbutton12, 'Enable', 'on'); 410 | set(handles.slider1, 'Enable', 'off'); 411 | % Update handles structure 412 | guidata(hObject, handles); 413 | if (handles.lastSliderVal >= 4) 414 | showImage(handles, uint16(handles.myData.image)); 415 | else 416 | showImage(handles, handles.myData.image); 417 | end 418 | end 419 | 420 | function showImage(handles, I) 421 | % I = handles.myData.image; 422 | winsize = handles.myData.winsize; 423 | [wi, hi, ~] = size(I); 424 | ws = winsize(4); 425 | hs = 3/4*winsize(3); 426 | if (ws/hs > wi/hi) 427 | ws = hs * (wi/hi); 428 | else 429 | hs = ws * (hi/wi); 430 | end 431 | 432 | set(handles.axes1, 'Position', [10, 100, hs - 20, ws - 20]); 433 | set(handles.pushbutton1, 'Parent', handles.uipanel1); 434 | axes(handles.axes1); 435 | % I(:,:,1) = I(:,:,1) fullfile('.', max(max(I(:,:,1))); 436 | % I(:,:,2) = I(:,:,2) fullfile('.', max(max(I(:,:,2))); 437 | % I(:,:,3) = I(:,:,3) fullfile('.', max(max(I(:,:,3))); 438 | imshow(I); 439 | % guidata(hObject, handles); 440 | 441 | % --- Executes on button press in radiobutton3. 442 | function radiobutton3_Callback(hObject, eventdata, handles) 443 | %% 444 | % hObject handle to radiobutton3 (see GCBO) 445 | % eventdata reserved - to be defined in a future version of MATLAB 446 | % handles structure with handles and user data (see GUIDATA) 447 | 448 | % --- Executes on button press in pushbutton12. 449 | function pushbutton12_Callback(hObject, eventdata, handles) 450 | %% 451 | % hObject handle to pushbutton12 (see GCBO) 452 | % eventdata reserved - to be defined in a future version of MATLAB 453 | % handles structure with handles and user data (see GUIDATA) 454 | 455 | saved_image =handles.myData.image; 456 | 457 | % outputFileName = 'current_result.dng'; 458 | outputFileName = 'current_result.tif'; 459 | t = Tiff(outputFileName,'w'); 460 | % 8 bit save works well 461 | output_unit16 = saved_image; 462 | 463 | sliderValue = handles.lastSliderVal; 464 | 465 | tagstruct.ImageLength = size(output_unit16,1); 466 | tagstruct.ImageWidth = size(output_unit16,2); 467 | tagstruct.BitsPerSample = 16; 468 | if sliderValue == 1 || sliderValue == 2 || sliderValue == 3 469 | tagstruct.SamplesPerPixel = 1; 470 | tagstruct.Photometric = Tiff.Photometric.MinIsBlack; 471 | else 472 | tagstruct.SamplesPerPixel = 3; 473 | tagstruct.Photometric = Tiff.Photometric.RGB; 474 | end 475 | % tagstruct.RowsPerStrip = 16; 476 | tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky; 477 | tagstruct.Software = 'MATLAB'; 478 | % tagstruct.DNGVersion = [1; 4; 0; 0]; 479 | t.setTag(tagstruct); 480 | 481 | t.write(output_unit16); 482 | t.close(); 483 | 484 | % 16 bit save does not work well 485 | % output_unit16 = uint16(saved_image*255); 486 | % 487 | % tagstruct.ImageLength = size(output_unit16,1); 488 | % tagstruct.ImageWidth = size(output_unit16,2); 489 | % tagstruct.Photometric = Tiff.Photometric.RGB; 490 | % tagstruct.BitsPerSample = 16; 491 | % tagstruct.SamplesPerPixel = 3; 492 | % tagstruct.RowsPerStrip = 8; %16 and 32 are also tried. cannot save 16 493 | % bit. 494 | % tagstruct.PlanarConfiguration = Tiff.PlanarConfiguration.Chunky; 495 | % tagstruct.Software = 'MATLAB'; 496 | % t.setTag(tagstruct); 497 | % 498 | % t.write(output_unit16); 499 | % t.close(); 500 | 501 | % --- Executes on button press in radiobutton8. 502 | function radiobutton8_Callback(hObject, eventdata, handles) 503 | %% 504 | % hObject handle to radiobutton8 (see GCBO) 505 | % eventdata reserved - to be defined in a future version of MATLAB 506 | % handles structure with handles and user data (see GUIDATA) 507 | 508 | % Hint: get(hObject,'Value') returns toggle state of radiobutton8 509 | 510 | % --- Executes on slider movement. 511 | function slider1_Callback(hObject, eventdata, handles) 512 | % hObject handle to slider1 (see GCBO) 513 | % eventdata reserved - to be defined in a future version of MATLAB 514 | % handles structure with handles and user data (see GUIDATA) 515 | 516 | % Hints: get(hObject,'Value') returns position of slider 517 | % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 518 | 519 | % set(handles.edit32,'String',num2str( get( get(handles.slider1,'Value')))); 520 | % 521 | 522 | handles = guidata(hObject); 523 | % get the slider value and convert it to the nearest integer that is less 524 | % than this value 525 | newVal = floor(get(hObject,'Value')); 526 | % set the slider value to this integer which will be in the set {1,2,3,...,12,13} 527 | set(hObject,'Value',newVal); 528 | % now only do something in response to the slider movement if the 529 | % new value is different from the last slider value 530 | if newVal ~= handles.lastSliderVal 531 | % it is different, so we have moved up or down from the previous integer 532 | % save the new value 533 | handles.lastSliderVal = newVal; 534 | guidata(hObject,handles); 535 | % display the current value of the slider 536 | disp(['at slider value ' num2str(get(hObject,'Value'))]); 537 | end 538 | 539 | sliderValue = handles.lastSliderVal; 540 | set(handles.text3,'String',num2str(sliderValue)); 541 | 542 | if sliderValue >= 4 543 | % Get all the handles to everything we want to set in a single array. 544 | handleArray = [handles.radiobutton15, handles.radiobutton16]; 545 | % Set them all disabled. 546 | set(handleArray, 'Enable', 'on'); 547 | if sliderValue >= 5 548 | % Get all the handles to everything we want to set in a single array. 549 | handleArray = [handles.radiobutton3, handles.radiobutton8, handles.radiobutton15, handles.radiobutton16]; 550 | % Set them all disabled. 551 | set(handleArray, 'Enable', 'on'); 552 | end 553 | end 554 | if sliderValue < 4 555 | % Get all the handles to everything we want to set in a single array. 556 | handleArray = [handles.radiobutton3, handles.radiobutton8, handles.radiobutton15, handles.radiobutton16]; 557 | % Set them all disabled. 558 | set(handleArray, 'Enable', 'off'); 559 | end 560 | if sliderValue < 5 561 | % Get all the handles to everything we want to set in a single array. 562 | handleArray = [handles.radiobutton3, handles.radiobutton8]; 563 | % Set them all disabled. 564 | set(handleArray, 'Enable', 'off'); 565 | end 566 | 567 | % if sliderValue >= 4 568 | % % Set them all disabled. 569 | % set(handles.pushbutton3, 'Enable', 'off'); 570 | % end 571 | if sliderValue >= 1 572 | % Set them all disabled. 573 | set(handles.pushbutton1, 'Enable', 'on'); 574 | end 575 | % --- Executes during object creation, after setting all properties. 576 | function slider1_CreateFcn(hObject, eventdata, handles) 577 | % hObject handle to slider1 (see GCBO) 578 | % eventdata reserved - to be defined in a future version of MATLAB 579 | % handles empty - handles not created until after all CreateFcns called 580 | 581 | % Hint: slider controls usually have a light gray background. 582 | if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 583 | set(hObject,'BackgroundColor',[.9 .9 .9]); 584 | end 585 | 586 | 587 | % --- Executes on button press in radiobutton16. 588 | function radiobutton16_Callback(hObject, eventdata, handles) 589 | % hObject handle to radiobutton16 (see GCBO) 590 | % eventdata reserved - to be defined in a future version of MATLAB 591 | % handles structure with handles and user data (see GUIDATA) 592 | 593 | % Hint: get(hObject,'Value') returns toggle state of radiobutton16 594 | 595 | 596 | % --- Executes on button press in radiobutton15. 597 | function radiobutton15_Callback(hObject, eventdata, handles) 598 | % hObject handle to radiobutton15 (see GCBO) 599 | % eventdata reserved - to be defined in a future version of MATLAB 600 | % handles structure with handles and user data (see GUIDATA) 601 | 602 | % Hint: get(hObject,'Value') returns toggle state of radiobutton15 603 | 604 | 605 | % --- Executes on button press in radiobutton18. 606 | function radiobutton18_Callback(hObject, eventdata, handles) 607 | % hObject handle to radiobutton18 (see GCBO) 608 | % eventdata reserved - to be defined in a future version of MATLAB 609 | % handles structure with handles and user data (see GUIDATA) 610 | 611 | % Hint: get(hObject,'Value') returns toggle state of radiobutton18 612 | 613 | 614 | % --- Executes on button press in radiobutton17. 615 | function radiobutton17_Callback(hObject, eventdata, handles) 616 | % hObject handle to radiobutton17 (see GCBO) 617 | % eventdata reserved - to be defined in a future version of MATLAB 618 | % handles structure with handles and user data (see GUIDATA) 619 | 620 | % Hint: get(hObject,'Value') returns toggle state of radiobutton17 621 | 622 | 623 | % --- Executes on button press in radiobutton20. 624 | function radiobutton20_Callback(hObject, eventdata, handles) 625 | % hObject handle to radiobutton20 (see GCBO) 626 | % eventdata reserved - to be defined in a future version of MATLAB 627 | % handles structure with handles and user data (see GUIDATA) 628 | 629 | % Hint: get(hObject,'Value') returns toggle state of radiobutton20 630 | 631 | 632 | % --- Executes on button press in radiobutton19. 633 | function radiobutton19_Callback(hObject, eventdata, handles) 634 | % hObject handle to radiobutton19 (see GCBO) 635 | % eventdata reserved - to be defined in a future version of MATLAB 636 | % handles structure with handles and user data (see GUIDATA) 637 | 638 | % Hint: get(hObject,'Value') returns toggle state of radiobutton19 639 | -------------------------------------------------------------------------------- /dngOneExeSDK/dng_validate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/dngOneExeSDK/dng_validate.exe -------------------------------------------------------------------------------- /executable_for_macOS/__MACOSX/._dng_validate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/executable_for_macOS/__MACOSX/._dng_validate.exe -------------------------------------------------------------------------------- /executable_for_macOS/dng_validate.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/executable_for_macOS/dng_validate.exe -------------------------------------------------------------------------------- /executable_for_macOS/dng_validate.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/executable_for_macOS/dng_validate.zip -------------------------------------------------------------------------------- /image/compare_two_images.m: -------------------------------------------------------------------------------- 1 | close all 2 | clear all 3 | image = im2double(imread('..\2.tif')); 4 | 5 | %% proof that txt files and stage 4 size is not equal. 6 | prophoto2 = im2double(imread('..\3.tif')); 7 | %center aligned 8 | eucliudian_error1 = sqrt((image(:,:,1)-... 9 | prophoto2(:,:,1)).^2 + ... 10 | (image(:,:,2)-... 11 | prophoto2(:,:,2)).^2 + ... 12 | (image(:,:,3)-... 13 | prophoto2(:,:,3)).^2); 14 | sum(eucliudian_error1(:)) 15 | figure, 16 | imagesc(eucliudian_error1, [0 0.01]); 17 | 18 | % abs() -------------------------------------------------------------------------------- /image/load_Stage4_image.m: -------------------------------------------------------------------------------- 1 | close all 2 | clear all 3 | 4 | % r1 = importdata('C:\Users\hakki\Downloads\camera-pipeline-UI-master\camera-pipeline-UI-master\image\r.txt'); 5 | % g1 = importdata('C:\Users\hakki\Downloads\camera-pipeline-UI-master\camera-pipeline-UI-master\image\g.txt'); 6 | % b1 = importdata('C:\Users\hakki\Downloads\camera-pipeline-UI-master\camera-pipeline-UI-master\image\b.txt'); 7 | % [m,n] = size(r1); 8 | % image1 = zeros(m,n,3); 9 | % image1(:,:,1) = r1; 10 | % image1(:,:,2) = g1; 11 | % image1(:,:,3) = b1; 12 | 13 | % save image as binary file 14 | % fd = fopen('x.txt','w'); 15 | % fwrite(fd,image1(:,:,1)','double'); 16 | % fclose(fd); 17 | % 18 | % fd2 = fopen('y.txt','w'); 19 | % fwrite(fd2,image1(:,:,2)','double'); 20 | % fclose(fd2); 21 | % fd3 = fopen('z.txt','w'); 22 | % fwrite(fd3,image1(:,:,3)','double'); 23 | % fclose(fd3); 24 | 25 | % image = im2double(image)/65536; 26 | % figure, imshow(image1) 27 | 28 | fd1 = fopen('r.txt','r'); 29 | fd2 = fopen('g.txt','r'); 30 | fd3 = fopen('b.txt','r'); 31 | r = fread(fd1,[ 3008 2000], 'double'); 32 | fclose(fd1); 33 | g = fread(fd2,[ 3008 2000], 'double'); 34 | fclose(fd2); 35 | b = fread(fd3,[ 3008 2000], 'double'); 36 | fclose(fd3); 37 | 38 | 39 | 40 | image = zeros(2000, 3008, 3); 41 | image(:,:,1) = r'; 42 | image(:,:,2) = g'; 43 | image(:,:,3) = b'; 44 | image = im2double(image); 45 | figure, imshow(image) 46 | 47 | %% proof that txt files and stage 4 size is not equal. 48 | % prophoto2 = im2double(imread('..\current_result.tif')); 49 | %center aligned 50 | eucliudian_error1 = sqrt((image(:,:,1)-... 51 | image1(:,:,1)).^2 + ... 52 | (image(:,:,2)-... 53 | image1(:,:,2)).^2 + ... 54 | (image(:,:,3)-... 55 | image1(:,:,3)).^2); 56 | sum(eucliudian_error1(:)) 57 | figure, 58 | imagesc(eucliudian_error1, [0 0.01]); 59 | 60 | % abs() 61 | -------------------------------------------------------------------------------- /image/plot_error.m: -------------------------------------------------------------------------------- 1 | image = im2double(imread('..\current_result.tif')); 2 | 3 | apply_cmatrix() 4 | prophoto2 = im2double(imread('..\current_result.tif')); 5 | %center aligned 6 | eucliudian_error1 = sqrt((image(:,:,1)-... 7 | prophoto2(:,:,1)).^2 + ... 8 | (image(:,:,2)-... 9 | prophoto2(:,:,2)).^2 + ... 10 | (image(:,:,3)-... 11 | prophoto2(:,:,3)).^2); 12 | sum(eucliudian_error1(:)) 13 | figure, 14 | imagesc(eucliudian_error1, [0 0.02]); 15 | 16 | -------------------------------------------------------------------------------- /lastStage.txt: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /rwSettings.txt: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /sample_image/NIKOND40_0008_dng_converted.dng: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/sample_image/NIKOND40_0008_dng_converted.dng -------------------------------------------------------------------------------- /sample_image/NikonD40_0008.NEF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/karaimer/camera-pipeline-UI/31cb1a9522242e3ed030faf89ece5aad6d732959/sample_image/NikonD40_0008.NEF -------------------------------------------------------------------------------- /stageSettings.txt: -------------------------------------------------------------------------------- 1 | 5 2 | -------------------------------------------------------------------------------- /wb.txt: -------------------------------------------------------------------------------- 1 | 0.4691 2 | 1.0000 3 | 0.6614 -------------------------------------------------------------------------------- /wbAndGainSettings.txt: -------------------------------------------------------------------------------- 1 | 1 2 | 0 3 | 1 4 | 0 5 | --------------------------------------------------------------------------------