#ifndef PS_IMAGE_BACKGROUND_H
#define PS_IMAGE_BACKGROUND_H

#include "psStats.h"
#include "psImage.h"
#include "psType.h"

// Get the background for an image
bool psImageBackground(psStats *stats, // desired measurement and options
                       const psImage *image, // Image for which to get the background
                       const psImage *mask, // Mask image
                       psMaskType maskValue, // Mask pixels which this mask value
                       psRandom *rng // Random number generator (for pixel selection)
                      );

#endif // #ifndef PS_IMAGE_BACKGROUND_H
