Index: trunk/ppImage/src/ppImage.h
===================================================================
--- trunk/ppImage/src/ppImage.h	(revision 26895)
+++ trunk/ppImage/src/ppImage.h	(revision 28043)
@@ -49,4 +49,6 @@
     bool applyParity;                   // Apply Cell parities
 
+  bool doMaskStats;                      // Calculate mask statistics
+  
     bool doCrosstalkMeasure;            // measure crosstalk signal
     bool doCrosstalkCorrect;            // apply crosstalk correction
@@ -110,4 +112,10 @@
 
     char *normClass;                    // class to use for per-class normalization
+
+  psU16 maskstat_static;
+  psU16 maskstat_dynamic;
+  psU16 maskstat_magic;
+  psU16 maskstat_advisory;
+  
 } ppImageOptions;
 
@@ -268,4 +276,7 @@
     );
 
+// Calculate Mask statistics
+bool ppImageMaskStats(pmConfig *config, pmFPAview *view, psMetadata *stats);
+
 // calculate stats from headers and concepts
 bool ppImageMetadataStats(pmConfig *config, // Configuration
