Changeset 5552
- Timestamp:
- Nov 18, 2005, 2:55:18 PM (21 years ago)
- Location:
- trunk/psModules
- Files:
-
- 3 edited
-
src/astrom/pmAstrometry.c (modified) (3 diffs)
-
src/imsubtract/pmSubtractBias.c (modified) (3 diffs)
-
test/imsubtract/tst_pmSubtractBias.c (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometry.c
r5543 r5552 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2005-11-1 8 19:43:14$10 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-11-19 00:55:18 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 498 498 return(p_psDeproject(outSphere, tpCoord, projection)); 499 499 } 500 /***************************************************************************** 501 XXX: What about units for the (x,y) coords? 502 503 XXX: This has not been tested. 504 *****************************************************************************/ 505 psPlane* pmCoordSkyToTP( 506 psPlane* tpCoord, 507 const psSphere* in, 508 const psProjection *projection) 509 { 510 PS_ASSERT_PTR_NON_NULL(in, NULL); 511 PS_ASSERT_PTR_NON_NULL(projection, NULL); 512 513 return(p_psProject(tpCoord, in, projection)); 514 } 500 515 501 516 … … 558 573 "WARNING: psCoordCellToSkyQuick(): This function is not fully specified in the SDRS. Returning NULL.\n"); 559 574 return(NULL); 560 }561 562 563 /*****************************************************************************564 XXX: What about units for the (x,y) coords?565 566 XXX: This has not been tested.567 *****************************************************************************/568 psPlane* pmCoordSkyToTP(569 psPlane* tpCoord,570 const psSphere* in,571 const psProjection *projection)572 {573 PS_ASSERT_PTR_NON_NULL(in, NULL);574 PS_ASSERT_PTR_NON_NULL(projection, NULL);575 576 return(p_psProject(tpCoord, in, projection));577 575 } 578 576 -
trunk/psModules/src/imsubtract/pmSubtractBias.c
r5516 r5552 6 6 * @author GLG, MHPCC 7 7 * 8 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-11-1 5 20:09:03$8 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-11-19 00:55:18 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 304 304 } 305 305 306 out->knots = psVectorCopy(out->knots, in->knots, in->knots->type.type); 306 // XXX: use psVectorCopy if they get it working. 307 out->knots = psVectorAlloc(in->knots->n, in->knots->type.type); 308 for (psS32 i = 0 ; i < in->knots->n ; i++) { 309 out->knots->data.F32[i] = in->knots->data.F32[i]; 310 } 311 /* 312 out->knots = psVectorCopy(out->knots, in->knots, in->knots->type.type); 313 */ 307 314 308 315 out->p_psDeriv2 = (psF32 *) psAlloc((in->n + 1) * sizeof(psF32)); … … 1184 1191 if (overscan == true) { 1185 1192 pmOverscanAxis overScanAxis = GetOverscanAxis(in); 1186 1187 1193 // 1188 1194 // Create a psStats data structure and determine the highest -
trunk/psModules/test/imsubtract/tst_pmSubtractBias.c
r5516 r5552 25 25 * XXX: Memory leaks are not being detected. 26 26 * 27 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $28 * @date $Date: 2005-11-1 5 20:09:03$27 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 28 * @date $Date: 2005-11-19 00:55:18 $ 29 29 * 30 30 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 42 42 static int test05(void); 43 43 testDescription tests[] = { 44 {test00a, 000, "doSubtractBiasFullFrame", 0, false},45 {test00b, 000, "doSubtractDarkFullFrame", 0, false},44 {test00a, 000, "doSubtractBiasFullFrame", 0, true}, 45 {test00b, 000, "doSubtractDarkFullFrame", 0, true}, 46 46 // {test01, 000, "pmSubtractBias", 0, true}, 47 47 // {test02, 000, "pmSubtractBias", 0, true}, 48 // {test03, 000, "pmSubtractBias", 0, false},48 // {test03, 000, "pmSubtractBias", 0, true}, 49 49 // {test04, 000, "pmSubtractBias", 0, true}, 50 50 {test05, 000, "pmSubtractBias", 0, false}, … … 509 509 */ 510 510 511 void PS_POLY1D_PRINT( 512 psPolynomial1D *poly) 513 { 514 printf("-------------- PS_POLY1D_PRINT() --------------\n"); 515 printf("poly->nX is %d\n", poly->nX); 516 for (psS32 i = 0 ; i < (1 + poly->nX) ; i++) { 517 printf("poly->coeff[%d] is %f\n", i, poly->coeff[i]); 518 } 519 } 520 521 void PS_PRINT_SPLINE2(psSpline1D *mySpline) 522 { 523 printf("-------------- PS_PRINT_SPLINE2() --------------\n"); 524 if (mySpline != NULL) { 525 printf("mySpline->n is %d\n", mySpline->n); 526 for (psS32 i = 0 ; i < mySpline->n ; i++) { 527 if (mySpline->spline[i] != NULL) { 528 PS_POLY1D_PRINT(mySpline->spline[i]); 529 } 530 } 531 if (mySpline->knots != NULL) { 532 PS_VECTOR_PRINT_F32(mySpline->knots); 533 } 534 } else { 535 printf("NULL\n"); 536 } 537 printf("-------------- PS_PRINT_SPLINE2() DONE --------------\n"); 538 } 539 540 541 542 543 544 511 545 /****************************************************************************** 512 doSubtract FullOverscanColumnsGeneric(): This is a general version of the546 doSubtractOverscansGeneric(): This is a general version of the 513 547 bias subtraction tests which allows the various parameters to be specified 514 548 as arguments. 515 549 *****************************************************************************/ 516 int doSubtract FullOverscanColumnsGeneric(550 int doSubtractOverscansGeneric( 517 551 int imageNumCols, 518 552 int imageNumRows, … … 531 565 532 566 printPositiveTestHeader(stdout, "pmSubtractBias", "PUT COMMENT HERE"); 533 printf("---- doSubtract FullOverscanColumnsGeneric() ----\n");567 printf("---- doSubtractOverscansGeneric() ----\n"); 534 568 printf(" Image size: %d by %d\n", imageNumRows, imageNumCols); 535 569 printf(" Overscan size: %d by %d\n", overscanNumRows, overscanNumCols); … … 636 670 stat, nBin, NULL, NULL); 637 671 } else if (fit == PM_FIT_SPLINE) { 672 // mySpline = psSpline1DAlloc(); 638 673 myReadout = pmSubtractBias(myReadout, mySpline, PM_FIT_SPLINE, overscanaxis, 639 674 stat, nBin, NULL, NULL); … … 652 687 } 653 688 } 689 // XXX: Figure out memory deallocation 654 690 psFree(fpa); 655 psFree(chip); 656 psFree(cell); 657 psListElem *tmpElem = (psListElem *) myReadout->bias->head; 658 while (NULL != tmpElem) { 659 psFree((psImage *) tmpElem->data); 660 tmpElem = tmpElem->next; 661 } 662 psFree(myReadout); 691 // psFree(chip); 692 // psFree(cell); 693 /* 694 psListElem *tmpElem = (psListElem *) myReadout->bias->head; 695 while (NULL != tmpElem) { 696 psFree((psImage *) tmpElem->data); 697 tmpElem = tmpElem->next; 698 } 699 psFree(myReadout); 700 */ 663 701 psFree(camera); 664 702 psFree(stat); … … 722 760 // Overscan images are same size, no fit, bin factor is 1. 723 761 // 724 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,762 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 725 763 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 726 764 PM_OVERSCAN_ALL, 727 765 PM_FIT_NONE, 1); 728 766 729 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,767 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 730 768 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 731 769 PM_OVERSCAN_COLUMNS, 732 770 PM_FIT_NONE, 1); 733 771 734 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,772 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 735 773 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 736 774 PM_OVERSCAN_ROWS, … … 740 778 // Overscan images are same size, no fit, bin factor is 2. 741 779 // 742 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,780 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 743 781 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 744 782 PM_OVERSCAN_ALL, 745 783 PM_FIT_NONE, 2); 746 784 747 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,785 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 748 786 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 749 787 PM_OVERSCAN_COLUMNS, 750 788 PM_FIT_NONE, 2); 751 789 752 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,790 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 753 791 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 754 792 PM_OVERSCAN_ROWS, … … 790 828 // Overscan images are too small, spline fit, bin factor is 1. 791 829 // 792 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,830 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 793 831 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 794 832 PM_OVERSCAN_ALL, 795 833 PM_FIT_SPLINE, 1); 796 834 797 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,835 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 798 836 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 799 837 PM_OVERSCAN_COLUMNS, 800 838 PM_FIT_SPLINE, 1); 801 839 802 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,840 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 803 841 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 804 842 PM_OVERSCAN_ROWS, … … 808 846 // Overscan images are too small, spline fit, bin factor is 2. 809 847 // 810 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,848 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 811 849 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 812 850 PM_OVERSCAN_ALL, 813 851 PM_FIT_SPLINE, 2); 814 852 815 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,853 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 816 854 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 817 855 PM_OVERSCAN_COLUMNS, 818 856 PM_FIT_SPLINE, 2); 819 857 820 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,858 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 821 859 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 822 860 PM_OVERSCAN_ROWS, … … 827 865 // Overscan images are same size, spline fit, bin factor is 1. 828 866 // 829 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,867 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 830 868 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 831 869 PM_OVERSCAN_ALL, 832 870 PM_FIT_SPLINE, 1); 833 871 834 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,872 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 835 873 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 836 874 PM_OVERSCAN_COLUMNS, 837 875 PM_FIT_SPLINE, 1); 838 876 839 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,877 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 840 878 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 841 879 PM_OVERSCAN_ROWS, … … 845 883 // Overscan images are same size, spline fit, bin factor is 2. 846 884 // 847 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,885 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 848 886 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 849 887 PM_OVERSCAN_ALL, 850 888 PM_FIT_SPLINE, 2); 851 889 852 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,890 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 853 891 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 854 892 PM_OVERSCAN_COLUMNS, 855 893 PM_FIT_SPLINE, 2); 856 894 857 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,895 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 858 896 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 859 897 PM_OVERSCAN_ROWS, … … 863 901 // Overscan images are too big, spline fit, bin factor is 1. 864 902 // 865 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,903 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 866 904 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 867 905 PM_OVERSCAN_ALL, 868 906 PM_FIT_SPLINE, 1); 869 907 870 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,908 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 871 909 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 872 910 PM_OVERSCAN_COLUMNS, 873 911 PM_FIT_SPLINE, 1); 874 912 875 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,913 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 876 914 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 877 915 PM_OVERSCAN_ROWS, … … 881 919 // Overscan images are too big, spline fit, bin factor is 2. 882 920 // 883 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,921 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 884 922 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 885 923 PM_OVERSCAN_ALL, 886 924 PM_FIT_SPLINE, 2); 887 925 888 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,926 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 889 927 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 890 928 PM_OVERSCAN_COLUMNS, 891 929 PM_FIT_SPLINE, 2); 892 930 893 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,931 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 894 932 overscanNumCols+2, overscanNumRows+2 , NUM_OVERSCANS, 895 933 PM_OVERSCAN_ROWS, … … 900 938 // A single overscan image of the same size, spline fit, bin factor is 1. 901 939 // 902 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,940 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 903 941 overscanNumCols, overscanNumRows, 1, 904 942 PM_OVERSCAN_ALL, 905 943 PM_FIT_SPLINE, 1); 906 944 907 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,945 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 908 946 overscanNumCols, overscanNumRows, 1, 909 947 PM_OVERSCAN_COLUMNS, 910 948 PM_FIT_SPLINE, 1); 911 949 912 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,950 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 913 951 overscanNumCols, overscanNumRows, 1, 914 952 PM_OVERSCAN_ROWS, … … 919 957 // Overscan images are too small, polynomial fit, bin factor is 1. 920 958 // 921 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,959 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 922 960 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 923 961 PM_OVERSCAN_ALL, 924 962 PM_FIT_POLYNOMIAL, 1); 925 963 926 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,964 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 927 965 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 928 966 PM_OVERSCAN_COLUMNS, 929 967 PM_FIT_POLYNOMIAL, 1); 930 968 931 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,969 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 932 970 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 933 971 PM_OVERSCAN_ROWS, … … 937 975 // Overscan images are too small, polynomial fit, bin factor is 2. 938 976 // 939 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,977 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 940 978 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 941 979 PM_OVERSCAN_ALL, 942 980 PM_FIT_POLYNOMIAL, 2); 943 981 944 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,982 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 945 983 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 946 984 PM_OVERSCAN_COLUMNS, 947 985 PM_FIT_POLYNOMIAL, 2); 948 986 949 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,987 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 950 988 overscanNumCols-2, overscanNumRows-2, NUM_OVERSCANS, 951 989 PM_OVERSCAN_ROWS, … … 956 994 // Overscan images are same size, polynomial fit, bin factor is 1. 957 995 // 958 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,996 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 959 997 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 960 998 PM_OVERSCAN_ALL, 961 999 PM_FIT_POLYNOMIAL, 1); 962 1000 963 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1001 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 964 1002 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 965 1003 PM_OVERSCAN_COLUMNS, 966 1004 PM_FIT_POLYNOMIAL, 1); 967 1005 968 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1006 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 969 1007 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 970 1008 PM_OVERSCAN_ROWS, … … 974 1012 // Overscan images are same size, polynomial fit, bin factor is 2. 975 1013 // 976 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1014 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 977 1015 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 978 1016 PM_OVERSCAN_ALL, 979 1017 PM_FIT_POLYNOMIAL, 2); 980 1018 981 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1019 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 982 1020 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 983 1021 PM_OVERSCAN_COLUMNS, 984 1022 PM_FIT_POLYNOMIAL, 2); 985 1023 986 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1024 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 987 1025 overscanNumCols, overscanNumRows, NUM_OVERSCANS, 988 1026 PM_OVERSCAN_ROWS, … … 992 1030 // Overscan images are too big, polynomial fit, bin factor is 1. 993 1031 // 994 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1032 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 995 1033 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 996 1034 PM_OVERSCAN_ALL, 997 1035 PM_FIT_POLYNOMIAL, 1); 998 1036 999 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1037 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1000 1038 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 1001 1039 PM_OVERSCAN_COLUMNS, 1002 1040 PM_FIT_POLYNOMIAL, 1); 1003 1041 1004 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1042 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1005 1043 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 1006 1044 PM_OVERSCAN_ROWS, … … 1010 1048 // Overscan images are too big, polynomial fit, bin factor is 2. 1011 1049 // 1012 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1050 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1013 1051 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 1014 1052 PM_OVERSCAN_ALL, 1015 1053 PM_FIT_POLYNOMIAL, 2); 1016 1054 1017 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1055 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1018 1056 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 1019 1057 PM_OVERSCAN_COLUMNS, 1020 1058 PM_FIT_POLYNOMIAL, 2); 1021 1059 1022 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1060 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1023 1061 overscanNumCols+2, overscanNumRows+2, NUM_OVERSCANS, 1024 1062 PM_OVERSCAN_ROWS, … … 1028 1066 // A single overscan image of the same size, polynomial fit, bin factor is 1. 1029 1067 // 1030 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1068 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1031 1069 overscanNumCols, overscanNumRows, 1, 1032 1070 PM_OVERSCAN_ALL, 1033 1071 PM_FIT_POLYNOMIAL, 1); 1034 1072 1035 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1073 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1036 1074 overscanNumCols, overscanNumRows, 1, 1037 1075 PM_OVERSCAN_COLUMNS, 1038 1076 PM_FIT_POLYNOMIAL, 1); 1039 1077 1040 testStatus |= doSubtract FullOverscanColumnsGeneric(imageNumCols, imageNumRows,1078 testStatus |= doSubtractOverscansGeneric(imageNumCols, imageNumRows, 1041 1079 overscanNumCols, overscanNumRows, 1, 1042 1080 PM_OVERSCAN_ROWS, … … 1062 1100 { 1063 1101 int testStatus = 0; 1064 testStatus = test05a(NUM_COLS, NUM_ROWS, NUM_COLS, NUM_ROWS);1102 // testStatus = test05a(NUM_COLS, NUM_ROWS, NUM_COLS, NUM_ROWS); 1065 1103 1066 1104 // testStatus|= test05b(LOW_COLS, LOW_ROWS, LOW_COLS, LOW_ROWS); … … 1089 1127 1090 1128 1129 // This code will
Note:
See TracChangeset
for help on using the changeset viewer.
