Index: trunk/psModules/src/imcombine/pmSubtractionStamps.h
===================================================================
--- trunk/psModules/src/imcombine/pmSubtractionStamps.h	(revision 14480)
+++ trunk/psModules/src/imcombine/pmSubtractionStamps.h	(revision 14513)
@@ -17,5 +17,5 @@
 /// A stamp for image subtraction
 typedef struct {
-    int x, y;                           ///< Position
+    float x, y;                         ///< Position
     float xNorm, yNorm;                 ///< Normalised position
     psKernel *reference;                ///< Reference image postage stamp
@@ -30,8 +30,15 @@
 psArray *pmSubtractionFindStamps(psArray *stamps, ///< Output stamps, or NULL
                                  const psImage *image, ///< Image for which to find stamps
-                                 const psImage *mask, ///< Mask
-                                 const psRegion *region, ///< Region in which to search for stamps
+                                 const psImage *mask, ///< Mask, or NULL
+                                 const psRegion *region, ///< Region in which to search for stamps, or NULL
                                  float threshold, ///< Threshold for stamps in the image
                                  float spacing ///< Rough spacing for stamps
+    );
+
+/// Set stamps based on a list of x,y
+psArray *pmSubtractionSetStamps(const psVector *x, ///< x coordinates for each stamp
+                                const psVector *y, ///< y coordinates for each stamp
+                                const psImage *mask, ///< Mask, or NULL
+                                const psRegion *region ///< Region in which to search for stamps, or NULL
     );
 
@@ -45,3 +52,12 @@
     );
 
+/// Generate target for stamps based on list
+psArray *pmSubtractionGenerateStamps(const psVector *x, ///< x coordinates for each stamp
+                                     const psVector *y, ///< y coordinates for each stamp
+                                     const psVector *flux, ///< Flux for each stamp
+                                     float sigma, ///< Gaussian width for each stamp
+                                     int footprint, ///< Stamp footprint size
+                                     const pmSubtractionKernels *kernels ///< Kernel basis functions
+    );
+
 #endif
