IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2005, 3:10:36 PM (21 years ago)
Author:
gusciora
Message:

There are a lot of changes here required by the new SDRS. Most changes
involve the new definitions of the psAstrometry types. Not all tests work
correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/test/tst_pmMaskBadPixels.c

    r2951 r4770  
    1717 *  @author Ross Harman, MHPCC
    1818 *
    19  *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    20  *  @date $Date: 2005-01-11 01:30:16 $
     19 *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     20 *  @date $Date: 2005-08-16 01:10:36 $
    2121 *
    2222 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8787int main(int argc, char* argv[])
    8888{
     89    psLogSetFormat("HLNM");
    8990    return !runTestSuite(stderr, "Test Point Driver", tests, argc, argv);
    9091}
     
    9697    CREATE_AND_SET_IMAGE(inImage1,F64,0,50,50);
    9798    CREATE_AND_SET_IMAGE(mask1,U8,0,50,50)
    98     //    psReadout *inReadout = psReadoutAlloc(0, 0, inImage1);
    99     psReadout *inReadout = psReadoutAlloc();
     99    //    pmReadout *inReadout = pmReadoutAlloc(0, 0, inImage1);
     100    pmReadout *inReadout = pmReadoutAlloc(NULL);
    100101    inReadout->image = inImage1;
    101102    mask1->data.PS_TYPE_MASK_DATA[24][24]=1;
     
    114115    CREATE_AND_SET_IMAGE(inImage2,F64,150.0,50,50);
    115116    CREATE_AND_SET_IMAGE(mask2,U8,0,50,50)
    116     //    psReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2);
    117     psReadout *inReadout2 = psReadoutAlloc();
     117    //    pmReadout *inReadout2 = pmReadoutAlloc(0, 0, inImage2);
     118    pmReadout *inReadout2 = pmReadoutAlloc(NULL);
    118119    inReadout2->image = inImage2;
    119120    PRINT_MATRIX(mask2, U8, "Data mask:");
     
    131132    CREATE_AND_SET_IMAGE(inImage3,F64,50.0,50,50);
    132133    CREATE_AND_SET_IMAGE(mask3,U8,0,50,50)
    133     //    psReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3);
    134     psReadout *inReadout3 = psReadoutAlloc();
     134    //    pmReadout *inReadout3 = pmReadoutAlloc(0, 0, inImage3);
     135    pmReadout *inReadout3 = pmReadoutAlloc(NULL);
    135136    inReadout3->image = inImage3;
    136137    mask3->data.PS_TYPE_MASK_DATA[24][24]=1;
     
    152153    CREATE_AND_SET_IMAGE(mask4,U8,0,50,50)
    153154    CREATE_AND_SET_IMAGE(mask4i,U8,0,50,50)
    154     //    psReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4);
    155     psReadout *inReadout4 = psReadoutAlloc();
     155    //    pmReadout *inReadout4 = pmReadoutAlloc(0, 0, inImage4);
     156    pmReadout *inReadout4 = pmReadoutAlloc(NULL);
    156157    inReadout4->image = inImage4;
    157158    inReadout4->mask = mask4i;
     
    170171    // Test E - Attempt to use null mask
    171172    CREATE_AND_SET_IMAGE(inImage5,F64,50.0,50,50);
    172     //    psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5);
    173     psReadout *inReadout5 = psReadoutAlloc();
     173    //    pmReadout *inReadout5 = pmReadoutAlloc(0, 0, inImage5);
     174    pmReadout *inReadout5 = pmReadoutAlloc(NULL);
    174175    inReadout5->image = inImage5;
    175176    pmMaskBadPixels(inReadout5, NULL, 0, 100.0, 1, 10);
     
    183184    // Test F - Attempt tp use null input image
    184185    CREATE_AND_SET_IMAGE(mask6,U8,0,50,50)
    185     //    psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL);
    186     psReadout *inReadout6 = psReadoutAlloc();
     186    //    pmReadout *inReadout6 = pmReadoutAlloc(0, 0, NULL);
     187    pmReadout *inReadout6 = pmReadoutAlloc(NULL);
    187188    inReadout6->mask = mask6;
    188189    pmMaskBadPixels(inReadout6, mask6, 0, 100.0, 1, 10);
     
    198199    CREATE_AND_SET_IMAGE(mask7,U8,0,50,50)
    199200    CREATE_AND_SET_IMAGE(mask7i,U8,0,50,50)
    200     //    psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7);
    201     psReadout *inReadout7 = psReadoutAlloc();
     201    //    pmReadout *inReadout7 = pmReadoutAlloc(0, 0, inImage7);
     202    pmReadout *inReadout7 = pmReadoutAlloc(NULL);
    202203    inReadout7->image = inImage7;
    203204    inReadout7->mask = mask7i;
     
    215216    CREATE_AND_SET_IMAGE(mask8,U8,0,50,50)
    216217    CREATE_AND_SET_IMAGE(mask8i,U8,0,60,60)
    217     //    psReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8);
    218     psReadout *inReadout8 = psReadoutAlloc();
     218    //    pmReadout *inReadout8 = pmReadoutAlloc(0, 0, inImage8);
     219    pmReadout *inReadout8 = pmReadoutAlloc(NULL);
    219220    inReadout8->image = inImage8;
    220221    inReadout8->mask = mask8i;
     
    232233    CREATE_AND_SET_IMAGE(mask9,U8,0,50,50)
    233234    CREATE_AND_SET_IMAGE(mask9i,U8,0,50,50)
    234     //    psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9);
    235     psReadout *inReadout9 = psReadoutAlloc();
     235    //    pmReadout *inReadout9 = pmReadoutAlloc(0, 0, inImage9);
     236    pmReadout *inReadout9 = pmReadoutAlloc(NULL);
    236237    inReadout9->image = inImage9;
    237238    inReadout9->mask = mask9i;
     
    251252    CREATE_AND_SET_IMAGE(mask10,U8,0,50,50)
    252253    CREATE_AND_SET_IMAGE(mask10i,U8,0,50,50)
    253     //    psReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10);
    254     psReadout *inReadout10 = psReadoutAlloc();
     254    //    pmReadout *inReadout10 = pmReadoutAlloc(0, 0, inImage10);
     255    pmReadout *inReadout10 = pmReadoutAlloc(NULL);
    255256    inReadout10->image = inImage10;
    256257    inReadout10->mask = mask10i;
     
    268269    CREATE_AND_SET_IMAGE(mask11,F64,0,50,50)
    269270    CREATE_AND_SET_IMAGE(mask11i,U8,0,50,50)
    270     //    psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11);
    271     psReadout *inReadout11 = psReadoutAlloc();
     271    //    pmReadout *inReadout11 = pmReadoutAlloc(0, 0, inImage11);
     272    pmReadout *inReadout11 = pmReadoutAlloc(NULL);
    272273    inReadout11->image = inImage11;
    273274    inReadout11->mask = mask11i;
Note: See TracChangeset for help on using the changeset viewer.