Changeset 21299
- Timestamp:
- Feb 4, 2009, 2:51:37 PM (17 years ago)
- Location:
- branches/pap_branch_20090128/ppStack/src
- Files:
-
- 2 edited
-
ppStackLoop.c (modified) (21 diffs)
-
ppStackMatch.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap_branch_20090128/ppStack/src/ppStackLoop.c
r21236 r21299 411 411 psList *fpaList = psListAlloc(NULL); // List of input FPAs, for concept averaging 412 412 psList *cellList = psListAlloc(NULL); // List of input cells, for concept averaging 413 psArray *covariances = psArrayAlloc(num); // Covariance matrices 413 414 for (int i = 0; i < num; i++) { 414 415 psTrace("ppStack", 2, "Convolving input %d of %d to target PSF....\n", i, num); … … 425 426 psFree(fpaList); 426 427 psFree(cellList); 428 psFree(covariances); 427 429 return false; 428 430 } … … 444 446 psFree(fpaList); 445 447 psFree(cellList); 448 psFree(covariances); 446 449 return false; 447 450 } … … 457 460 continue; 458 461 } 462 covariances->data[i] = psMemIncrRefCounter(readout->covariance); 459 463 460 464 if (stats) { … … 492 496 psFree(fpaList); 493 497 psFree(cellList); 498 psFree(covariances); 494 499 return false; 495 500 } … … 511 516 psFree(fpaList); 512 517 psFree(cellList); 518 psFree(covariances); 513 519 return false; 514 520 } … … 558 564 psFree(matchChi2); 559 565 psFree(values); 566 psFree(covariances); 560 567 return false; 561 568 } … … 599 606 psFree(inputMask); 600 607 psFree(matchChi2); 608 psFree(covariances); 601 609 return false; 602 610 } … … 632 640 psFree(matchChi2); 633 641 psFree(cells); 642 psFree(covariances); 634 643 return false; 635 644 } … … 645 654 psFree(matchChi2); 646 655 psFree(cells); 656 psFree(covariances); 647 657 return false; 648 658 } … … 663 673 psFree(outRO); 664 674 psFree(cells); 675 psFree(covariances); 665 676 return false; 666 677 } … … 682 693 psFree(view); 683 694 psFree(outRO); 695 psFree(covariances); 684 696 return false; 685 697 } … … 708 720 psFree(view); 709 721 psFree(outRO); 722 psFree(covariances); 710 723 return false; 711 724 } … … 722 735 psFree(view); 723 736 psFree(outRO); 737 psFree(covariances); 724 738 return false; 725 739 } … … 789 803 psFree(inspect); 790 804 psFree(rejected); 805 psFree(covariances); 791 806 return false; 792 807 } … … 804 819 psFree(inspect); 805 820 psFree(rejected); 821 psFree(covariances); 806 822 return false; 807 823 } … … 898 914 psFree(view); 899 915 psFree(outRO); 916 psFree(covariances); 900 917 return false; 901 918 } … … 926 943 psFree(view); 927 944 psFree(outRO); 945 psFree(covariances); 928 946 return false; 929 947 } … … 947 965 psFree(view); 948 966 psFree(outRO); 967 psFree(covariances); 949 968 return false; 950 969 } … … 959 978 psFree(view); 960 979 psFree(outRO); 980 psFree(covariances); 961 981 return false; 962 982 } … … 964 984 965 985 memDump("final"); 986 987 // Sum covariance matrices 988 for (int i = 0; i < num; i++) { 989 if (inputMask->data.U8[i]) { 990 psFree(covariances->data[i]); 991 covariances->data[i] = NULL; 992 } 993 } 994 outRO->covariance = psImageCovarianceSum(covariances); 995 psFree(covariances); 966 996 967 997 if (stats) { -
branches/pap_branch_20090128/ppStack/src/ppStackMatch.c
r21236 r21299 580 580 psFree(bg); 581 581 582 #if 0 583 582 584 #define RADIUS 10 // Radius of photometry 583 585 #define MIN_ERR 0.05 // Minimum photometric error, mag … … 632 634 psFree(ratio); 633 635 psFree(ratioMask); 636 #endif 634 637 635 638 #ifdef TESTING
Note:
See TracChangeset
for help on using the changeset viewer.
