Initial version of NDROIStat plugin. This provides simple statistics over multiple ROIs. The template file defines 8 ROIs by default. The stats calculated are Min, Max, Mean and Total. This plugin only consumes NDArrays and does not produce them.
Add NDROIStatN.template to Db/Makefile.
Fix missing bracket in template file.
Add NDROIStat to NDPluginSupport.
Fix dimension logic, and publish NDArraySize params. Fix Min and Max calculation (initialise to zero and only consider the ROI, not the whole array).
Fix logic for indexing the Y axis for 2-D arrays. Use the input array size, rather than the ROI size, which was wrong. Tested this logic by comparing with a normal ROI plugin and Stats plugin, and I get the same results for a 2-D input array.
NDPluginROIStat: add arraySize info to ROI struct for use in statistics function.
NDPluginROIStat: remove some printf statements.
NDPluginROIStat: precompute Y axis offset into data array, outside the X loop.
NDROIStat: fix some comments at top of template files.
Remove a couple printf statements.
NDROIStat: added NDROIStat8.template to instantiate 8 ROIs. If people need fewer, they need to use NDROIStat.template and NDROIStatN.template.
NDROIStat: forgot to commit this file in last commit.
NDPluginROIStat: fix some indenting.
NDPluginROIStat: remove print for net stats, as it's not being used.
NDPluginROIStat: add in Reset and ResetAll records and parameters. The Reset record will reset the ROI data for one ROI. The ResetAll will clear the data for all the ROIs.
NDPluginROIStat: implement ROI specific reset.
NDPluginROIStat: remove setting NDArraySize params, as these don't apply to this plugin.
NDPluginROIStat: move reset logic into function.
NDPluginROIStat: tidy up writeInt32 function error handling.