Index: /trunk/psModules/test/tst_pmMaskBadPixels.c
===================================================================
--- /trunk/psModules/test/tst_pmMaskBadPixels.c	(revision 2950)
+++ /trunk/psModules/test/tst_pmMaskBadPixels.c	(revision 2951)
@@ -17,6 +17,6 @@
  *  @author Ross Harman, MHPCC
  *
- *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-10-15 21:08:04 $
+ *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-01-11 01:30:16 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -96,5 +96,7 @@
     CREATE_AND_SET_IMAGE(inImage1,F64,0,50,50);
     CREATE_AND_SET_IMAGE(mask1,U8,0,50,50)
-    psReadout *inReadout = psReadoutAlloc(0, 0, inImage1);
+    //    psReadout *inReadout = psReadoutAlloc(0, 0, inImage1);
+    psReadout *inReadout = psReadoutAlloc();
+    inReadout->image = inImage1;
     mask1->data.PS_TYPE_MASK_DATA[24][24]=1;
     PRINT_MATRIX(mask1, U8, "Data mask:");
@@ -112,5 +114,7 @@
     CREATE_AND_SET_IMAGE(inImage2,F64,150.0,50,50);
     CREATE_AND_SET_IMAGE(mask2,U8,0,50,50)
-    psReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2);
+    //    psReadout *inReadout2 = psReadoutAlloc(0, 0, inImage2);
+    psReadout *inReadout2 = psReadoutAlloc();
+    inReadout2->image = inImage2;
     PRINT_MATRIX(mask2, U8, "Data mask:");
     pmMaskBadPixels(inReadout2, mask2, 0, 100.0, 0, 0);
@@ -127,5 +131,7 @@
     CREATE_AND_SET_IMAGE(inImage3,F64,50.0,50,50);
     CREATE_AND_SET_IMAGE(mask3,U8,0,50,50)
-    psReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3);
+    //    psReadout *inReadout3 = psReadoutAlloc(0, 0, inImage3);
+    psReadout *inReadout3 = psReadoutAlloc();
+    inReadout3->image = inImage3;
     mask3->data.PS_TYPE_MASK_DATA[24][24]=1;
     mask3->data.PS_TYPE_MASK_DATA[4][3]=1;
@@ -146,5 +152,7 @@
     CREATE_AND_SET_IMAGE(mask4,U8,0,50,50)
     CREATE_AND_SET_IMAGE(mask4i,U8,0,50,50)
-    psReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4);
+    //    psReadout *inReadout4 = psReadoutAlloc(0, 0, inImage4);
+    psReadout *inReadout4 = psReadoutAlloc();
+    inReadout4->image = inImage4;
     inReadout4->mask = mask4i;
     mask4->data.PS_TYPE_MASK_DATA[24][24]=1;
@@ -162,5 +170,7 @@
     // Test E - Attempt to use null mask
     CREATE_AND_SET_IMAGE(inImage5,F64,50.0,50,50);
-    psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5);
+    //    psReadout *inReadout5 = psReadoutAlloc(0, 0, inImage5);
+    psReadout *inReadout5 = psReadoutAlloc();
+    inReadout5->image = inImage5;
     pmMaskBadPixels(inReadout5, NULL, 0, 100.0, 1, 10);
     psFree(inReadout5);
@@ -173,5 +183,6 @@
     // Test F - Attempt tp use null input image
     CREATE_AND_SET_IMAGE(mask6,U8,0,50,50)
-    psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL);
+    //    psReadout *inReadout6 = psReadoutAlloc(0, 0, NULL);
+    psReadout *inReadout6 = psReadoutAlloc();
     inReadout6->mask = mask6;
     pmMaskBadPixels(inReadout6, mask6, 0, 100.0, 1, 10);
@@ -187,5 +198,7 @@
     CREATE_AND_SET_IMAGE(mask7,U8,0,50,50)
     CREATE_AND_SET_IMAGE(mask7i,U8,0,50,50)
-    psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7);
+    //    psReadout *inReadout7 = psReadoutAlloc(0, 0, inImage7);
+    psReadout *inReadout7 = psReadoutAlloc();
+    inReadout7->image = inImage7;
     inReadout7->mask = mask7i;
     pmMaskBadPixels(inReadout7, mask7, 0, 100.0, 1, 10);
@@ -202,5 +215,7 @@
     CREATE_AND_SET_IMAGE(mask8,U8,0,50,50)
     CREATE_AND_SET_IMAGE(mask8i,U8,0,60,60)
-    psReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8);
+    //    psReadout *inReadout8 = psReadoutAlloc(0, 0, inImage8);
+    psReadout *inReadout8 = psReadoutAlloc();
+    inReadout8->image = inImage8;
     inReadout8->mask = mask8i;
     pmMaskBadPixels(inReadout8, mask8, 0, 100.0, 1, 10);
@@ -217,5 +232,7 @@
     CREATE_AND_SET_IMAGE(mask9,U8,0,50,50)
     CREATE_AND_SET_IMAGE(mask9i,U8,0,50,50)
-    psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9);
+    //    psReadout *inReadout9 = psReadoutAlloc(0, 0, inImage9);
+    psReadout *inReadout9 = psReadoutAlloc();
+    inReadout9->image = inImage9;
     inReadout9->mask = mask9i;
     *(int*)&inReadout9->col0 = 150;
@@ -234,5 +251,7 @@
     CREATE_AND_SET_IMAGE(mask10,U8,0,50,50)
     CREATE_AND_SET_IMAGE(mask10i,U8,0,50,50)
-    psReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10);
+    //    psReadout *inReadout10 = psReadoutAlloc(0, 0, inImage10);
+    psReadout *inReadout10 = psReadoutAlloc();
+    inReadout10->image = inImage10;
     inReadout10->mask = mask10i;
     pmMaskBadPixels(inReadout10, mask10, 0, 100.0, 1, 10);
@@ -249,5 +268,7 @@
     CREATE_AND_SET_IMAGE(mask11,F64,0,50,50)
     CREATE_AND_SET_IMAGE(mask11i,U8,0,50,50)
-    psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11);
+    //    psReadout *inReadout11 = psReadoutAlloc(0, 0, inImage11);
+    psReadout *inReadout11 = psReadoutAlloc();
+    inReadout11->image = inImage11;
     inReadout11->mask = mask11i;
     pmMaskBadPixels(inReadout11, mask11, 0, 100.0, 1, 10);
