IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 2951


Ignore:
Timestamp:
Jan 10, 2005, 3:30:16 PM (22 years ago)
Author:
evanalst
Message:

Update psReadoutAlloc function.

File:
1 edited

Legend:

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

    r2158 r2951  
    1717 *  @author Ross Harman, MHPCC
    1818 *
    19  *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
    20  *  @date $Date: 2004-10-15 21:08:04 $
     19 *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
     20 *  @date $Date: 2005-01-11 01:30:16 $
    2121 *
    2222 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9696    CREATE_AND_SET_IMAGE(inImage1,F64,0,50,50);
    9797    CREATE_AND_SET_IMAGE(mask1,U8,0,50,50)
    98     psReadout *inReadout = psReadoutAlloc(0, 0, inImage1);
     98    //    psReadout *inReadout = psReadoutAlloc(0, 0, inImage1);
     99    psReadout *inReadout = psReadoutAlloc();
     100    inReadout->image = inImage1;
    99101    mask1->data.PS_TYPE_MASK_DATA[24][24]=1;
    100102    PRINT_MATRIX(mask1, U8, "Data mask:");
     
    112114    CREATE_AND_SET_IMAGE(inImage2,F64,150.0,50,50);
    113115    CREATE_AND_SET_IMAGE(mask2,U8,0,50,50)
    114     psReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2);
     116    //    psReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2);
     117    psReadout *inReadout2 = psReadoutAlloc();
     118    inReadout2->image = inImage2;
    115119    PRINT_MATRIX(mask2, U8, "Data mask:");
    116120    pmMaskBadPixels(inReadout2, mask2, 0, 100.0, 0, 0);
     
    127131    CREATE_AND_SET_IMAGE(inImage3,F64,50.0,50,50);
    128132    CREATE_AND_SET_IMAGE(mask3,U8,0,50,50)
    129     psReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3);
     133    //    psReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3);
     134    psReadout *inReadout3 = psReadoutAlloc();
     135    inReadout3->image = inImage3;
    130136    mask3->data.PS_TYPE_MASK_DATA[24][24]=1;
    131137    mask3->data.PS_TYPE_MASK_DATA[4][3]=1;
     
    146152    CREATE_AND_SET_IMAGE(mask4,U8,0,50,50)
    147153    CREATE_AND_SET_IMAGE(mask4i,U8,0,50,50)
    148     psReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4);
     154    //    psReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4);
     155    psReadout *inReadout4 = psReadoutAlloc();
     156    inReadout4->image = inImage4;
    149157    inReadout4->mask = mask4i;
    150158    mask4->data.PS_TYPE_MASK_DATA[24][24]=1;
     
    162170    // Test E - Attempt to use null mask
    163171    CREATE_AND_SET_IMAGE(inImage5,F64,50.0,50,50);
    164     psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5);
     172    //    psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5);
     173    psReadout *inReadout5 = psReadoutAlloc();
     174    inReadout5->image = inImage5;
    165175    pmMaskBadPixels(inReadout5, NULL, 0, 100.0, 1, 10);
    166176    psFree(inReadout5);
     
    173183    // Test F - Attempt tp use null input image
    174184    CREATE_AND_SET_IMAGE(mask6,U8,0,50,50)
    175     psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL);
     185    //    psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL);
     186    psReadout *inReadout6 = psReadoutAlloc();
    176187    inReadout6->mask = mask6;
    177188    pmMaskBadPixels(inReadout6, mask6, 0, 100.0, 1, 10);
     
    187198    CREATE_AND_SET_IMAGE(mask7,U8,0,50,50)
    188199    CREATE_AND_SET_IMAGE(mask7i,U8,0,50,50)
    189     psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7);
     200    //    psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7);
     201    psReadout *inReadout7 = psReadoutAlloc();
     202    inReadout7->image = inImage7;
    190203    inReadout7->mask = mask7i;
    191204    pmMaskBadPixels(inReadout7, mask7, 0, 100.0, 1, 10);
     
    202215    CREATE_AND_SET_IMAGE(mask8,U8,0,50,50)
    203216    CREATE_AND_SET_IMAGE(mask8i,U8,0,60,60)
    204     psReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8);
     217    //    psReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8);
     218    psReadout *inReadout8 = psReadoutAlloc();
     219    inReadout8->image = inImage8;
    205220    inReadout8->mask = mask8i;
    206221    pmMaskBadPixels(inReadout8, mask8, 0, 100.0, 1, 10);
     
    217232    CREATE_AND_SET_IMAGE(mask9,U8,0,50,50)
    218233    CREATE_AND_SET_IMAGE(mask9i,U8,0,50,50)
    219     psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9);
     234    //    psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9);
     235    psReadout *inReadout9 = psReadoutAlloc();
     236    inReadout9->image = inImage9;
    220237    inReadout9->mask = mask9i;
    221238    *(int*)&inReadout9->col0 = 150;
     
    234251    CREATE_AND_SET_IMAGE(mask10,U8,0,50,50)
    235252    CREATE_AND_SET_IMAGE(mask10i,U8,0,50,50)
    236     psReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10);
     253    //    psReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10);
     254    psReadout *inReadout10 = psReadoutAlloc();
     255    inReadout10->image = inImage10;
    237256    inReadout10->mask = mask10i;
    238257    pmMaskBadPixels(inReadout10, mask10, 0, 100.0, 1, 10);
     
    249268    CREATE_AND_SET_IMAGE(mask11,F64,0,50,50)
    250269    CREATE_AND_SET_IMAGE(mask11i,U8,0,50,50)
    251     psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11);
     270    //    psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11);
     271    psReadout *inReadout11 = psReadoutAlloc();
     272    inReadout11->image = inImage11;
    252273    inReadout11->mask = mask11i;
    253274    pmMaskBadPixels(inReadout11, mask11, 0, 100.0, 1, 10);
Note: See TracChangeset for help on using the changeset viewer.