Index: /trunk/psLib/test/image/tst_psImageStats00.c
===================================================================
--- /trunk/psLib/test/image/tst_psImageStats00.c	(revision 903)
+++ /trunk/psLib/test/image/tst_psImageStats00.c	(revision 904)
@@ -11,92 +11,162 @@
 #define NUM_BINS 20
 #define IMAGE_SIZE 20
+#define N 32
+#define M 64
 
 int main()
 {
     psHistogram *myHist = NULL;
+    psHistogram *myHist2= NULL;
     psImage *tmpImage   = NULL;
     psImage *tmpMask    = NULL;
     int testStatus      = true;
     int memLeaks        = 0;
+    int nb              = 0;
     int i               = 0;
     int j               = 0;
+    int IMAGE_X_SIZE    = 0;
+    int IMAGE_Y_SIZE    = 0;
     int currentId       = 0;
 
     currentId       = psMemGetId();
-    /*************************************************************************/
-    /*  Allocate and initialize data structures                      */
-    /*************************************************************************/
-    tmpImage = psImageAlloc(IMAGE_SIZE, IMAGE_SIZE, PS_TYPE_F32);
-    for (i=0;i<IMAGE_SIZE;i++) {
-        for (j=0;j<IMAGE_SIZE;j++) {
-            tmpImage->data.F32[i][j] = (float) (i + j);
+    for (nb=0;nb<6;nb++) {
+        if (nb == 0) {
+            IMAGE_X_SIZE = 1;
+            IMAGE_Y_SIZE = 1;
         }
-    }
-    tmpMask = psImageAlloc(IMAGE_SIZE, IMAGE_SIZE, PS_TYPE_U8);
-    for (i=0;i<IMAGE_SIZE;i++) {
-        for (j=0;j<IMAGE_SIZE;j++) {
-            if ((i > (IMAGE_SIZE/2)) &&
-                    (j > (IMAGE_SIZE/2))) {
-                tmpMask->data.U8[i][j] = 1;
-            } else {
-                tmpMask->data.U8[i][j] = 0;
+        if (nb == 1) {
+            IMAGE_X_SIZE = 1;
+            IMAGE_Y_SIZE = N;
+        }
+        if (nb == 2) {
+            IMAGE_X_SIZE = N;
+            IMAGE_Y_SIZE = 1;
+        }
+        if (nb == 3) {
+            IMAGE_X_SIZE = N;
+            IMAGE_Y_SIZE = N;
+        }
+        if (nb == 4) {
+            IMAGE_X_SIZE = N;
+            IMAGE_Y_SIZE = M;
+        }
+        if (nb == 5) {
+            IMAGE_X_SIZE = M;
+            IMAGE_Y_SIZE = N;
+        }
+        printf("*******************************\n");
+        printf("* IMAGE SIZE is (%d by %d)\n", IMAGE_X_SIZE, IMAGE_Y_SIZE);
+        printf("*******************************\n");
+        /*********************************************************************/
+        /*  Allocate and initialize data structures                      */
+        /*********************************************************************/
+        tmpImage = psImageAlloc(IMAGE_X_SIZE, IMAGE_Y_SIZE, PS_TYPE_F32);
+
+        for (i=0;i<tmpImage->numRows;i++) {
+            for (j=0;j<tmpImage->numCols;j++) {
+                tmpImage->data.F32[i][j] = (float) (i + j);
             }
         }
+        tmpMask = psImageAlloc(IMAGE_X_SIZE, IMAGE_Y_SIZE, PS_TYPE_U8);
+        for (i=0;i<tmpMask->numRows;i++) {
+            for (j=0;j<tmpMask->numCols;j++) {
+                if ((i > (tmpMask->numRows/2)) &&
+                        (j > (tmpMask->numCols/2))) {
+                    tmpMask->data.U8[i][j] = 1;
+                } else {
+                    tmpMask->data.U8[i][j] = 0;
+                }
+            }
+        }
+
+        /*************************************************************************/
+        /*  Calculate Histogram with no mask                             */
+        /*************************************************************************/
+        printPositiveTestHeader(stdout,
+                                "psImageStats functions",
+                                "Calculate Histogram, no mask");
+
+        myHist = psHistogramAlloc(0.0, (float) (IMAGE_X_SIZE + IMAGE_Y_SIZE),
+                                  NUM_BINS);
+        myHist = psImageHistogram(myHist, tmpImage, NULL, 0);
+        for (i=0;i<NUM_BINS;i++) {
+            printf("Bin number %d bounds: (%f - %f) data (%d)\n", i,
+                   myHist->bounds->data.F32[i],
+                   myHist->bounds->data.F32[i+1],
+                   myHist->nums->data.S32[i]);
+        }
+        psHistogramFree(myHist);
+
+        psMemCheckCorruption(1);
+        printFooter(stdout,
+                    "psImageStats functions",
+                    "Calculate Histogram, no mask",
+                    testStatus);
+
+        /*************************************************************************/
+        /*  Calculate Histogram with mask                                */
+        /*************************************************************************/
+        printPositiveTestHeader(stdout,
+                                "psImageStats functions",
+                                "Calculate Histogram with mask");
+
+        myHist = psHistogramAlloc(0.0, (float) (IMAGE_X_SIZE + IMAGE_Y_SIZE),
+                                  NUM_BINS);
+        myHist = psImageHistogram(myHist, tmpImage, tmpMask, 1);
+        for (i=0;i<NUM_BINS;i++) {
+            printf("Bin number %d bounds: (%f - %f) data (%d)\n", i,
+                   myHist->bounds->data.F32[i],
+                   myHist->bounds->data.F32[i+1],
+                   myHist->nums->data.S32[i]);
+        }
+
+        psMemCheckCorruption(1);
+        printFooter(stdout,
+                    "psImageStats functions",
+                    "Calculate Histogram with mask",
+                    testStatus);
+
+        /*************************************************************************/
+        /*  Deallocate data structures                                   */
+        /*************************************************************************/
+        printPositiveTestHeader(stdout,
+                                "psImageStats functions",
+                                "Deallocate the psHistogram/psImage structure.");
+        psHistogramFree(myHist);
+        psImageFree(tmpImage);
+        psImageFree(tmpMask);
+
+        psMemCheckCorruption(1);
+        memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
+        if (0 != memLeaks) {
+            psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
+        }
+
+        printFooter(stdout,
+                    "psImageStats functions",
+                    "Deallocate the psHistogram/psImage structure.",
+                    testStatus);
     }
-    /*************************************************************************/
-    /*  Calculate Histogram with no mask                             */
-    /*************************************************************************/
     printPositiveTestHeader(stdout,
                             "psImageStats functions",
-                            "Calculate Histogram, no mask");
+                            "Calling psImageHistogram() with NULL parameters");
 
-    myHist = psHistogramAlloc(0.0, (float) (2 * IMAGE_SIZE), NUM_BINS);
-    myHist = psImageHistogram(myHist, tmpImage, NULL, 0);
-    for (i=0;i<NUM_BINS;i++) {
-        printf("Bin number %d bounds: (%f - %f) data (%d)\n", i,
-               myHist->bounds->data.F32[i],
-               myHist->bounds->data.F32[i+1],
-               myHist->nums->data.S32[i]);
+    tmpImage = psImageAlloc(IMAGE_X_SIZE, IMAGE_Y_SIZE, PS_TYPE_F32);
+    myHist  = psHistogramAlloc(0.0, (float) (IMAGE_X_SIZE + IMAGE_Y_SIZE),
+                               NUM_BINS);
+    myHist2 = psImageHistogram(NULL, tmpImage, NULL, 0);
+    if (myHist2 != NULL) {
+        printf("ERROR: myHist2 not equal to NULL\n");
     }
-    psHistogramFree(myHist);
 
-    psMemCheckCorruption(1);
-    printFooter(stdout,
-                "psImageStats functions",
-                "Calculate Histogram, no mask",
-                testStatus);
-
-    /*************************************************************************/
-    /*  Calculate Histogram with mask                                */
-    /*************************************************************************/
-    printPositiveTestHeader(stdout,
-                            "psImageStats functions",
-                            "Calculate Histogram with mask");
-
-    myHist = psHistogramAlloc(0.0, (float) (2 * IMAGE_SIZE), NUM_BINS);
-    myHist = psImageHistogram(myHist, tmpImage, tmpMask, 1);
-    for (i=0;i<NUM_BINS;i++) {
-        printf("Bin number %d bounds: (%f - %f) data (%d)\n", i,
-               myHist->bounds->data.F32[i],
-               myHist->bounds->data.F32[i+1],
-               myHist->nums->data.S32[i]);
+    myHist2 = psImageHistogram(myHist, NULL, NULL, 0);
+    myHist2 = psImageHistogram(NULL, tmpImage, NULL, 0);
+    if (myHist2 != NULL) {
+        printf("ERROR: myHist2 not equal to NULL\n");
     }
 
     psMemCheckCorruption(1);
-    printFooter(stdout,
-                "psImageStats functions",
-                "Calculate Histogram with mask",
-                testStatus);
-
-    /*************************************************************************/
-    /*  Deallocate data structures                                   */
-    /*************************************************************************/
-    printPositiveTestHeader(stdout,
-                            "psImageStats functions",
-                            "Deallocate the psHistogram/psImage structure.");
     psHistogramFree(myHist);
     psImageFree(tmpImage);
-    psImageFree(tmpMask);
-
     psMemCheckCorruption(1);
     memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
@@ -107,5 +177,5 @@
     printFooter(stdout,
                 "psImageStats functions",
-                "Deallocate the psHistogram/psImage structure.",
+                "Calling psImageHistogram() with NULL parameters",
                 testStatus);
 
Index: /trunk/psLib/test/image/verified/tst_psImageStats00.stdout
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageStats00.stdout	(revision 903)
+++ /trunk/psLib/test/image/verified/tst_psImageStats00.stdout	(revision 904)
@@ -1,67 +1,429 @@
-/----------------------------- TESTPOINT ------------------------------------------\
-|             TestFile: tst_psImageStats00.c                                       |
-|            TestPoint: psImageStats functions{Calculate Histogram, no mask}       |
-|             TestType: Positive                                                   |
-\----------------------------------------------------------------------------------/
-
-Bin number 0 bounds: (0.000000 - 2.000000) data (3)
-Bin number 1 bounds: (2.000000 - 4.000000) data (7)
-Bin number 2 bounds: (4.000000 - 6.000000) data (11)
-Bin number 3 bounds: (6.000000 - 8.000000) data (15)
-Bin number 4 bounds: (8.000000 - 10.000000) data (19)
-Bin number 5 bounds: (10.000000 - 12.000000) data (23)
-Bin number 6 bounds: (12.000000 - 14.000000) data (27)
-Bin number 7 bounds: (14.000000 - 16.000000) data (31)
-Bin number 8 bounds: (16.000000 - 18.000000) data (35)
-Bin number 9 bounds: (18.000000 - 20.000000) data (39)
-Bin number 10 bounds: (20.000000 - 22.000000) data (37)
-Bin number 11 bounds: (22.000000 - 24.000000) data (33)
-Bin number 12 bounds: (24.000000 - 26.000000) data (29)
-Bin number 13 bounds: (26.000000 - 28.000000) data (25)
-Bin number 14 bounds: (28.000000 - 30.000000) data (21)
-Bin number 15 bounds: (30.000000 - 32.000000) data (17)
-Bin number 16 bounds: (32.000000 - 34.000000) data (13)
-Bin number 17 bounds: (34.000000 - 36.000000) data (9)
-Bin number 18 bounds: (36.000000 - 38.000000) data (5)
-Bin number 19 bounds: (38.000000 - 40.000000) data (1)
-
----> TESTPOINT PASSED (psImageStats functions{Calculate Histogram, no mask} | tst_psImageStats00.c)
-
-/----------------------------- TESTPOINT ------------------------------------------\
-|             TestFile: tst_psImageStats00.c                                       |
-|            TestPoint: psImageStats functions{Calculate Histogram with mask}      |
-|             TestType: Positive                                                   |
-\----------------------------------------------------------------------------------/
-
-Bin number 0 bounds: (0.000000 - 2.000000) data (3)
-Bin number 1 bounds: (2.000000 - 4.000000) data (7)
-Bin number 2 bounds: (4.000000 - 6.000000) data (11)
-Bin number 3 bounds: (6.000000 - 8.000000) data (15)
-Bin number 4 bounds: (8.000000 - 10.000000) data (19)
-Bin number 5 bounds: (10.000000 - 12.000000) data (23)
-Bin number 6 bounds: (12.000000 - 14.000000) data (27)
-Bin number 7 bounds: (14.000000 - 16.000000) data (31)
-Bin number 8 bounds: (16.000000 - 18.000000) data (35)
-Bin number 9 bounds: (18.000000 - 20.000000) data (39)
-Bin number 10 bounds: (20.000000 - 22.000000) data (37)
-Bin number 11 bounds: (22.000000 - 24.000000) data (30)
-Bin number 12 bounds: (24.000000 - 26.000000) data (22)
-Bin number 13 bounds: (26.000000 - 28.000000) data (14)
-Bin number 14 bounds: (28.000000 - 30.000000) data (6)
-Bin number 15 bounds: (30.000000 - 32.000000) data (0)
-Bin number 16 bounds: (32.000000 - 34.000000) data (0)
-Bin number 17 bounds: (34.000000 - 36.000000) data (0)
-Bin number 18 bounds: (36.000000 - 38.000000) data (0)
-Bin number 19 bounds: (38.000000 - 40.000000) data (0)
-
----> TESTPOINT PASSED (psImageStats functions{Calculate Histogram with mask} | tst_psImageStats00.c)
-
-/----------------------------- TESTPOINT ------------------------------------------\
-|             TestFile: tst_psImageStats00.c                                       |
-|            TestPoint: psImageStats functions{Deallocate the psHistogram/psImage structure.} |
-|             TestType: Positive                                                   |
-\----------------------------------------------------------------------------------/
-
-
----> TESTPOINT PASSED (psImageStats functions{Deallocate the psHistogram/psImage structure.} | tst_psImageStats00.c)
-
+*******************************
+* IMAGE SIZE is (1 by 1)
+*******************************
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram, no mask}       |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 0.100000) data (1)
+Bin number 1 bounds: (0.100000 - 0.200000) data (0)
+Bin number 2 bounds: (0.200000 - 0.300000) data (0)
+Bin number 3 bounds: (0.300000 - 0.400000) data (0)
+Bin number 4 bounds: (0.400000 - 0.500000) data (0)
+Bin number 5 bounds: (0.500000 - 0.600000) data (0)
+Bin number 6 bounds: (0.600000 - 0.700000) data (0)
+Bin number 7 bounds: (0.700000 - 0.800000) data (0)
+Bin number 8 bounds: (0.800000 - 0.900000) data (0)
+Bin number 9 bounds: (0.900000 - 1.000000) data (0)
+Bin number 10 bounds: (1.000000 - 1.100000) data (0)
+Bin number 11 bounds: (1.100000 - 1.200000) data (0)
+Bin number 12 bounds: (1.200000 - 1.300000) data (0)
+Bin number 13 bounds: (1.300000 - 1.400000) data (0)
+Bin number 14 bounds: (1.400000 - 1.500000) data (0)
+Bin number 15 bounds: (1.500000 - 1.600000) data (0)
+Bin number 16 bounds: (1.600000 - 1.700000) data (0)
+Bin number 17 bounds: (1.700000 - 1.800000) data (0)
+Bin number 18 bounds: (1.800000 - 1.900000) data (0)
+Bin number 19 bounds: (1.900000 - 2.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram, no mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram with mask}      |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 0.100000) data (1)
+Bin number 1 bounds: (0.100000 - 0.200000) data (0)
+Bin number 2 bounds: (0.200000 - 0.300000) data (0)
+Bin number 3 bounds: (0.300000 - 0.400000) data (0)
+Bin number 4 bounds: (0.400000 - 0.500000) data (0)
+Bin number 5 bounds: (0.500000 - 0.600000) data (0)
+Bin number 6 bounds: (0.600000 - 0.700000) data (0)
+Bin number 7 bounds: (0.700000 - 0.800000) data (0)
+Bin number 8 bounds: (0.800000 - 0.900000) data (0)
+Bin number 9 bounds: (0.900000 - 1.000000) data (0)
+Bin number 10 bounds: (1.000000 - 1.100000) data (0)
+Bin number 11 bounds: (1.100000 - 1.200000) data (0)
+Bin number 12 bounds: (1.200000 - 1.300000) data (0)
+Bin number 13 bounds: (1.300000 - 1.400000) data (0)
+Bin number 14 bounds: (1.400000 - 1.500000) data (0)
+Bin number 15 bounds: (1.500000 - 1.600000) data (0)
+Bin number 16 bounds: (1.600000 - 1.700000) data (0)
+Bin number 17 bounds: (1.700000 - 1.800000) data (0)
+Bin number 18 bounds: (1.800000 - 1.900000) data (0)
+Bin number 19 bounds: (1.900000 - 2.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram with mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Deallocate the psHistogram/psImage structure.} |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psImageStats functions{Deallocate the psHistogram/psImage structure.} | tst_psImageStats00.c)
+
+*******************************
+* IMAGE SIZE is (1 by 32)
+*******************************
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram, no mask}       |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 1.650000) data (2)
+Bin number 1 bounds: (1.650000 - 3.300000) data (2)
+Bin number 2 bounds: (3.300000 - 4.950000) data (1)
+Bin number 3 bounds: (4.950000 - 6.600000) data (2)
+Bin number 4 bounds: (6.600000 - 8.250000) data (2)
+Bin number 5 bounds: (8.250000 - 9.900000) data (1)
+Bin number 6 bounds: (9.900000 - 11.550000) data (2)
+Bin number 7 bounds: (11.550000 - 13.200000) data (2)
+Bin number 8 bounds: (13.200000 - 14.849999) data (1)
+Bin number 9 bounds: (14.849999 - 16.500000) data (2)
+Bin number 10 bounds: (16.500000 - 18.150000) data (2)
+Bin number 11 bounds: (18.150000 - 19.799999) data (1)
+Bin number 12 bounds: (19.799999 - 21.449999) data (2)
+Bin number 13 bounds: (21.449999 - 23.100000) data (2)
+Bin number 14 bounds: (23.100000 - 24.750000) data (1)
+Bin number 15 bounds: (24.750000 - 26.400000) data (2)
+Bin number 16 bounds: (26.400000 - 28.049999) data (2)
+Bin number 17 bounds: (28.049999 - 29.699999) data (1)
+Bin number 18 bounds: (29.699999 - 31.350000) data (2)
+Bin number 19 bounds: (31.350000 - 33.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram, no mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram with mask}      |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 1.650000) data (2)
+Bin number 1 bounds: (1.650000 - 3.300000) data (2)
+Bin number 2 bounds: (3.300000 - 4.950000) data (1)
+Bin number 3 bounds: (4.950000 - 6.600000) data (2)
+Bin number 4 bounds: (6.600000 - 8.250000) data (2)
+Bin number 5 bounds: (8.250000 - 9.900000) data (1)
+Bin number 6 bounds: (9.900000 - 11.550000) data (2)
+Bin number 7 bounds: (11.550000 - 13.200000) data (2)
+Bin number 8 bounds: (13.200000 - 14.849999) data (1)
+Bin number 9 bounds: (14.849999 - 16.500000) data (2)
+Bin number 10 bounds: (16.500000 - 18.150000) data (2)
+Bin number 11 bounds: (18.150000 - 19.799999) data (1)
+Bin number 12 bounds: (19.799999 - 21.449999) data (2)
+Bin number 13 bounds: (21.449999 - 23.100000) data (2)
+Bin number 14 bounds: (23.100000 - 24.750000) data (1)
+Bin number 15 bounds: (24.750000 - 26.400000) data (2)
+Bin number 16 bounds: (26.400000 - 28.049999) data (2)
+Bin number 17 bounds: (28.049999 - 29.699999) data (1)
+Bin number 18 bounds: (29.699999 - 31.350000) data (2)
+Bin number 19 bounds: (31.350000 - 33.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram with mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Deallocate the psHistogram/psImage structure.} |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psImageStats functions{Deallocate the psHistogram/psImage structure.} | tst_psImageStats00.c)
+
+*******************************
+* IMAGE SIZE is (32 by 1)
+*******************************
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram, no mask}       |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 1.650000) data (2)
+Bin number 1 bounds: (1.650000 - 3.300000) data (2)
+Bin number 2 bounds: (3.300000 - 4.950000) data (1)
+Bin number 3 bounds: (4.950000 - 6.600000) data (2)
+Bin number 4 bounds: (6.600000 - 8.250000) data (2)
+Bin number 5 bounds: (8.250000 - 9.900000) data (1)
+Bin number 6 bounds: (9.900000 - 11.550000) data (2)
+Bin number 7 bounds: (11.550000 - 13.200000) data (2)
+Bin number 8 bounds: (13.200000 - 14.849999) data (1)
+Bin number 9 bounds: (14.849999 - 16.500000) data (2)
+Bin number 10 bounds: (16.500000 - 18.150000) data (2)
+Bin number 11 bounds: (18.150000 - 19.799999) data (1)
+Bin number 12 bounds: (19.799999 - 21.449999) data (2)
+Bin number 13 bounds: (21.449999 - 23.100000) data (2)
+Bin number 14 bounds: (23.100000 - 24.750000) data (1)
+Bin number 15 bounds: (24.750000 - 26.400000) data (2)
+Bin number 16 bounds: (26.400000 - 28.049999) data (2)
+Bin number 17 bounds: (28.049999 - 29.699999) data (1)
+Bin number 18 bounds: (29.699999 - 31.350000) data (2)
+Bin number 19 bounds: (31.350000 - 33.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram, no mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram with mask}      |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 1.650000) data (2)
+Bin number 1 bounds: (1.650000 - 3.300000) data (2)
+Bin number 2 bounds: (3.300000 - 4.950000) data (1)
+Bin number 3 bounds: (4.950000 - 6.600000) data (2)
+Bin number 4 bounds: (6.600000 - 8.250000) data (2)
+Bin number 5 bounds: (8.250000 - 9.900000) data (1)
+Bin number 6 bounds: (9.900000 - 11.550000) data (2)
+Bin number 7 bounds: (11.550000 - 13.200000) data (2)
+Bin number 8 bounds: (13.200000 - 14.849999) data (1)
+Bin number 9 bounds: (14.849999 - 16.500000) data (2)
+Bin number 10 bounds: (16.500000 - 18.150000) data (2)
+Bin number 11 bounds: (18.150000 - 19.799999) data (1)
+Bin number 12 bounds: (19.799999 - 21.449999) data (2)
+Bin number 13 bounds: (21.449999 - 23.100000) data (2)
+Bin number 14 bounds: (23.100000 - 24.750000) data (1)
+Bin number 15 bounds: (24.750000 - 26.400000) data (2)
+Bin number 16 bounds: (26.400000 - 28.049999) data (2)
+Bin number 17 bounds: (28.049999 - 29.699999) data (1)
+Bin number 18 bounds: (29.699999 - 31.350000) data (2)
+Bin number 19 bounds: (31.350000 - 33.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram with mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Deallocate the psHistogram/psImage structure.} |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psImageStats functions{Deallocate the psHistogram/psImage structure.} | tst_psImageStats00.c)
+
+*******************************
+* IMAGE SIZE is (32 by 32)
+*******************************
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram, no mask}       |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 3.200000) data (10)
+Bin number 1 bounds: (3.200000 - 6.400000) data (18)
+Bin number 2 bounds: (6.400000 - 9.600000) data (27)
+Bin number 3 bounds: (9.600000 - 12.800000) data (36)
+Bin number 4 bounds: (12.800000 - 16.000000) data (62)
+Bin number 5 bounds: (16.000000 - 19.200001) data (57)
+Bin number 6 bounds: (19.200001 - 22.400000) data (66)
+Bin number 7 bounds: (22.400000 - 25.600000) data (75)
+Bin number 8 bounds: (25.600000 - 28.800001) data (84)
+Bin number 9 bounds: (28.800001 - 32.000000) data (124)
+Bin number 10 bounds: (32.000000 - 35.200001) data (87)
+Bin number 11 bounds: (35.200001 - 38.400002) data (78)
+Bin number 12 bounds: (38.400002 - 41.600002) data (69)
+Bin number 13 bounds: (41.600002 - 44.799999) data (60)
+Bin number 14 bounds: (44.799999 - 48.000000) data (66)
+Bin number 15 bounds: (48.000000 - 51.200001) data (39)
+Bin number 16 bounds: (51.200001 - 54.400002) data (30)
+Bin number 17 bounds: (54.400002 - 57.600002) data (21)
+Bin number 18 bounds: (57.600002 - 60.799999) data (12)
+Bin number 19 bounds: (60.799999 - 64.000000) data (3)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram, no mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram with mask}      |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 3.200000) data (10)
+Bin number 1 bounds: (3.200000 - 6.400000) data (18)
+Bin number 2 bounds: (6.400000 - 9.600000) data (27)
+Bin number 3 bounds: (9.600000 - 12.800000) data (36)
+Bin number 4 bounds: (12.800000 - 16.000000) data (62)
+Bin number 5 bounds: (16.000000 - 19.200001) data (57)
+Bin number 6 bounds: (19.200001 - 22.400000) data (66)
+Bin number 7 bounds: (22.400000 - 25.600000) data (75)
+Bin number 8 bounds: (25.600000 - 28.800001) data (84)
+Bin number 9 bounds: (28.800001 - 32.000000) data (124)
+Bin number 10 bounds: (32.000000 - 35.200001) data (84)
+Bin number 11 bounds: (35.200001 - 38.400002) data (66)
+Bin number 12 bounds: (38.400002 - 41.600002) data (48)
+Bin number 13 bounds: (41.600002 - 44.799999) data (30)
+Bin number 14 bounds: (44.799999 - 48.000000) data (12)
+Bin number 15 bounds: (48.000000 - 51.200001) data (0)
+Bin number 16 bounds: (51.200001 - 54.400002) data (0)
+Bin number 17 bounds: (54.400002 - 57.600002) data (0)
+Bin number 18 bounds: (57.600002 - 60.799999) data (0)
+Bin number 19 bounds: (60.799999 - 64.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram with mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Deallocate the psHistogram/psImage structure.} |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psImageStats functions{Deallocate the psHistogram/psImage structure.} | tst_psImageStats00.c)
+
+*******************************
+* IMAGE SIZE is (32 by 64)
+*******************************
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram, no mask}       |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 4.800000) data (15)
+Bin number 1 bounds: (4.800000 - 9.600000) data (40)
+Bin number 2 bounds: (9.600000 - 14.400001) data (65)
+Bin number 3 bounds: (14.400001 - 19.200001) data (90)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
+Bin number 6 bounds: (28.800001 - 33.600002) data (157)
+Bin number 7 bounds: (33.600002 - 38.400002) data (160)
+Bin number 8 bounds: (38.400002 - 43.200001) data (160)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (128)
+Bin number 11 bounds: (52.800003 - 57.600002) data (160)
+Bin number 12 bounds: (57.600002 - 62.400002) data (160)
+Bin number 13 bounds: (62.400002 - 67.200005) data (150)
+Bin number 14 bounds: (67.200005 - 72.000000) data (125)
+Bin number 15 bounds: (72.000000 - 76.800003) data (82)
+Bin number 16 bounds: (76.800003 - 81.600006) data (80)
+Bin number 17 bounds: (81.600006 - 86.400002) data (55)
+Bin number 18 bounds: (86.400002 - 91.200005) data (30)
+Bin number 19 bounds: (91.200005 - 96.000000) data (6)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram, no mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram with mask}      |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 4.800000) data (15)
+Bin number 1 bounds: (4.800000 - 9.600000) data (40)
+Bin number 2 bounds: (9.600000 - 14.400001) data (65)
+Bin number 3 bounds: (14.400001 - 19.200001) data (90)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
+Bin number 6 bounds: (28.800001 - 33.600002) data (157)
+Bin number 7 bounds: (33.600002 - 38.400002) data (160)
+Bin number 8 bounds: (38.400002 - 43.200001) data (160)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (122)
+Bin number 11 bounds: (52.800003 - 57.600002) data (130)
+Bin number 12 bounds: (57.600002 - 62.400002) data (105)
+Bin number 13 bounds: (62.400002 - 67.200005) data (76)
+Bin number 14 bounds: (67.200005 - 72.000000) data (50)
+Bin number 15 bounds: (72.000000 - 76.800003) data (22)
+Bin number 16 bounds: (76.800003 - 81.600006) data (6)
+Bin number 17 bounds: (81.600006 - 86.400002) data (0)
+Bin number 18 bounds: (86.400002 - 91.200005) data (0)
+Bin number 19 bounds: (91.200005 - 96.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram with mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Deallocate the psHistogram/psImage structure.} |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psImageStats functions{Deallocate the psHistogram/psImage structure.} | tst_psImageStats00.c)
+
+*******************************
+* IMAGE SIZE is (64 by 32)
+*******************************
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram, no mask}       |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 4.800000) data (15)
+Bin number 1 bounds: (4.800000 - 9.600000) data (40)
+Bin number 2 bounds: (9.600000 - 14.400001) data (65)
+Bin number 3 bounds: (14.400001 - 19.200001) data (90)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
+Bin number 6 bounds: (28.800001 - 33.600002) data (157)
+Bin number 7 bounds: (33.600002 - 38.400002) data (160)
+Bin number 8 bounds: (38.400002 - 43.200001) data (160)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (128)
+Bin number 11 bounds: (52.800003 - 57.600002) data (160)
+Bin number 12 bounds: (57.600002 - 62.400002) data (160)
+Bin number 13 bounds: (62.400002 - 67.200005) data (150)
+Bin number 14 bounds: (67.200005 - 72.000000) data (125)
+Bin number 15 bounds: (72.000000 - 76.800003) data (82)
+Bin number 16 bounds: (76.800003 - 81.600006) data (80)
+Bin number 17 bounds: (81.600006 - 86.400002) data (55)
+Bin number 18 bounds: (86.400002 - 91.200005) data (30)
+Bin number 19 bounds: (91.200005 - 96.000000) data (6)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram, no mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calculate Histogram with mask}      |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+Bin number 0 bounds: (0.000000 - 4.800000) data (15)
+Bin number 1 bounds: (4.800000 - 9.600000) data (40)
+Bin number 2 bounds: (9.600000 - 14.400001) data (65)
+Bin number 3 bounds: (14.400001 - 19.200001) data (90)
+Bin number 4 bounds: (19.200001 - 24.000000) data (115)
+Bin number 5 bounds: (24.000000 - 28.800001) data (110)
+Bin number 6 bounds: (28.800001 - 33.600002) data (157)
+Bin number 7 bounds: (33.600002 - 38.400002) data (160)
+Bin number 8 bounds: (38.400002 - 43.200001) data (160)
+Bin number 9 bounds: (43.200001 - 48.000000) data (160)
+Bin number 10 bounds: (48.000000 - 52.800003) data (122)
+Bin number 11 bounds: (52.800003 - 57.600002) data (130)
+Bin number 12 bounds: (57.600002 - 62.400002) data (105)
+Bin number 13 bounds: (62.400002 - 67.200005) data (76)
+Bin number 14 bounds: (67.200005 - 72.000000) data (50)
+Bin number 15 bounds: (72.000000 - 76.800003) data (22)
+Bin number 16 bounds: (76.800003 - 81.600006) data (6)
+Bin number 17 bounds: (81.600006 - 86.400002) data (0)
+Bin number 18 bounds: (86.400002 - 91.200005) data (0)
+Bin number 19 bounds: (91.200005 - 96.000000) data (0)
+
+---> TESTPOINT PASSED (psImageStats functions{Calculate Histogram with mask} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Deallocate the psHistogram/psImage structure.} |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psImageStats functions{Deallocate the psHistogram/psImage structure.} | tst_psImageStats00.c)
+
+/----------------------------- TESTPOINT ------------------------------------------\
+|             TestFile: tst_psImageStats00.c                                       |
+|            TestPoint: psImageStats functions{Calling psImageHistogram() with NULL parameters} |
+|             TestType: Positive                                                   |
+\----------------------------------------------------------------------------------/
+
+
+---> TESTPOINT PASSED (psImageStats functions{Calling psImageHistogram() with NULL parameters} | tst_psImageStats00.c)
+
