Index: /trunk/psLib/test/image/verified/tst_psImageExtraction.stderr
===================================================================
--- /trunk/psLib/test/image/verified/tst_psImageExtraction.stderr	(revision 2093)
+++ /trunk/psLib/test/image/verified/tst_psImageExtraction.stderr	(revision 2094)
@@ -138,9 +138,9 @@
     Following should be an error.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Specified statistic can not be NULL.
-<DATE><TIME>|<HOST>|I|testImageSlice
-    Following should be an error.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Specified slice direction, 5, is invalid.
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1869636978x1635018016.
+<DATE><TIME>|<HOST>|I|testImageSlice
+    Following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1869636978x1635018016.
 <DATE><TIME>|<HOST>|I|testImageSlice
     Following should be an error.
@@ -150,33 +150,35 @@
     Following should be an error.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Specified subset range, [2001:<LINENO>,100:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageSlice
-    Following should be an error.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Specified subset range, [200:<LINENO>,1001:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageSlice
-    Following should be an error.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Specified subset range, [200:<LINENO>,100:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageSlice
-    Following should be an error.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Specified subset range, [200:<LINENO>,100:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageSlice
-    Following should be an error.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Specified statistic option, 0, is not valid.  Must specify one and only one statistic type.
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1869636978x1635018016.
+<DATE><TIME>|<HOST>|I|testImageSlice
+    Following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1869636978x1635018016.
+<DATE><TIME>|<HOST>|I|testImageSlice
+    Following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1869636978x1635018016.
+<DATE><TIME>|<HOST>|I|testImageSlice
+    Following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1869636978x1635018016.
+<DATE><TIME>|<HOST>|I|testImageSlice
+    Following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1869636978x1635018016.
 <DATE><TIME>|<HOST>|I|testImageSlice
     Following should be an error mask size != image size.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Input psImage mask size, 1000x2000, does not match psImage input size, 2000x1000.
+    Specified psImage type, psU8, is not supported.
 <DATE><TIME>|<HOST>|I|testImageSlice
     Following should be an error invalid mask type.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
-    Input psImage mask type, psS8, is not the supported mask datatype of psU8.
+    Input psImage mask size, 2000x1000, does not match psImage input size, 1000x2000.
 <DATE><TIME>|<HOST>|I|testImageSlice
     Following should be an error invalid image type.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageSlice
     Specified psImage type, psU8, is not supported.
+<DATE><TIME>|<HOST>|E|psLib.sysUtils.psFree
+    Block 12148, allocated at psImage.c:<LINENO>, freed multiple times at tst_psImageExtraction.c:<LINENO>.
 
 ---> TESTPOINT PASSED (psImage{psImageSlice} | tst_psImageExtraction.c)
@@ -188,30 +190,16 @@
 \**********************************************************************************/
 
-<DATE><TIME>|<HOST>|I|testImageTrim
-    Following should generate an error for NULL image.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
-    Can not operate on a NULL psImage.
-<DATE><TIME>|<HOST>|I|testImageTrim
-    Following should generate an error for trim outside.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
+    Can not operate on a NULL psImage.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
     Specified subset range, [-1:<LINENO>,0:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageTrim
-    Following should generate an error for trim outside.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
     Specified subset range, [0:<LINENO>,-1:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageTrim
-    Following should generate an error for trim outside.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
-    Specified subset range, [0:<LINENO>,0:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageTrim
-    Following should generate an error for trim outside.
-<DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
-    Specified subset range, [0:<LINENO>,0:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageTrim
-    Following should generate an error for trim outside.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
+    Specified subset range, [0:<LINENO>,0:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
+    Specified subset range, [0:<LINENO>,0:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
 <DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
     Specified subset range, [0:-1,0:<LINENO>], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
-<DATE><TIME>|<HOST>|I|testImageTrim
-    Following should generate an error for trim outside.
 <DATE><TIME>|<HOST>|E|psLib.image.psImageTrim
     Specified subset range, [0:<LINENO>,0:-1], is invalid or outside input psImage's boundaries, [0:<LINENO>,0:<LINENO>].
@@ -219,2 +207,60 @@
 ---> TESTPOINT PASSED (psImage{psImageTrim} | tst_psImageExtraction.c)
 
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_psImageExtraction.c                                    *
+*            TestPoint: psImage{psImageCut}                                        *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (-1.000000,10.000000)->(240.000000,180.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (300.000000,10.000000)->(240.000000,180.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (20.000000,10.000000)->(-1.000000,180.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (20.000000,10.000000)->(300.000000,180.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (20.000000,-1.000000)->(240.000000,180.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (20.000000,200.000000)->(240.000000,180.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (20.000000,10.000000)->(240.000000,-1.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    The following should be an error.
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified line, (20.000000,10.000000)->(240.000000,200.000000), does not entirely lie in psImage's boundaries, [0:<LINENO>,0:<LINENO>].
+<DATE><TIME>|<HOST>|I|testImageCut
+    Following should be an error (NULL image).
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Can not operate on a NULL psImage.
+<DATE><TIME>|<HOST>|I|testImageCut
+    Following should be an error (length=0).
+<DATE><TIME>|<HOST>|E|psLib.image.psImageCut
+    Specified number of samples, 0, must be greater than 1 to make a line.
+
+---> TESTPOINT PASSED (psImage{psImageCut} | tst_psImageExtraction.c)
+
+/***************************** TESTPOINT ******************************************\
+*             TestFile: tst_psImageExtraction.c                                    *
+*            TestPoint: psImage{psImageRadialCut}                                  *
+*             TestType: Positive                                                   *
+\**********************************************************************************/
+
+
+---> TESTPOINT PASSED (psImage{psImageRadialCut} | tst_psImageExtraction.c)
+
