IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 22 years ago

Closed 22 years ago

Last modified 22 years ago

#102 closed enhancement (fixed)

psImageRebin doesn't know of a mask, but should it?

Reported by: robert.desonia@… Owned by: eugene
Priority: high Milestone:
Component: PSLib SDRS Version: unspecified
Severity: minor Keywords:
Cc:

Description

Since this function is doing statistics, part of me doth thinks it should have a
mask like psImageStats.

Do you see not needing a mask for this function? I don't know if you would want
to use a bad pixel in the rebinning, for instance.

(Since I'm using the psVectorStats under the hood, it is not too hard to add
this in as it handles the mask checking)

Change History (3)

comment:1 by eugene, 22 years ago

Status: newassigned

you are right. any of these functions (like psImageCut and psImageRebin) which
apply a particular statistic need to have the mask and maskVal passed in as well.
I'll add it to the SDRS like this:

psVector *psImageSlice(psVector *out, const psImage *input,

const psImage *restrict mask,
unsigned int maskVal,
int x, int y, int nx, int ny,
psImageCutDirection direction, const psStats *stats);

and

psVector *psImageCut(psVector *out, const psImage *input,

const psImage *restrict mask,
unsigned int maskVal,
float xs, float ys, float xe, float ye,
float dw, const psStats *stats);

and

psVector *psImageRadialCut(psVector *out, const psImage *input,

const psImage *restrict mask,
unsigned int maskVal,
float x, float y,
const psVector *radii, const psStats *stats);

and

psImage *psImageRebin(psImage *out, const psImage *in,

const psImage *restrict mask,
unsigned int maskVal,
int scale, const psStats *stats);

and in any of these functions, mask may be NULL, in which case it is ignored.

comment:2 by eugene, 22 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by Paul Price, 22 years ago

These have been added to the SDRS (apart from the "restrict"s, which have been
dropped).

Note: See TracTickets for help on using tickets.