#ifndef PS_IMAGE_UNBIN_H
#define PS_IMAGE_UNBIN_H

#include "pslib.h"

// This needs to be considered more carefully
psImage *psImageUnbin (psImage *out, psImage *in, int DX, int DY, int dx, int dy);

void psImageClippedStatsInit (int nMax);
void psImageClippedStatsCleanup ();

// my temporary image stats function; seems to be much faster than psLib???
psStats *psImageClippedStats (psImage *image, psImage *mask, psU8 maskValue, double fmin, double fmax);

// my temporary sort which is based on N.R.; seems to be faster than psLib sort???
void fsort (float *value, int N);

#endif
