#331 closed defect (fixed)
psImageStats lacks const arguments
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | imageops | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: |
Description
Implementation is:
psStats* psImageStats(
psStats* stats, /< defines statistics to be calculated
psImage* in, /< image (or subimage) to calculate stats
psImage* mask, /< mask data for image (NULL ok)
psS32 maskVal /< mask Mask for mask
);
Specification is:
psStats *psImageStats(psStats *stats,
const psImage *in,
const psImage *mask,
unsigned int maskVal);
Use of psImageStats as implemented requires casting away "const" (yuk!).
Note:
See TracTickets
for help on using tickets.

thanks for pointing this out. I also corrected psImageHistogram.
The fix will be in the next release.