22#include "hdrl_cat_areals.h"
56 cpl_size np = ap->npl_pix;
57 plstruct *plarray = ap->plarray;
58 double thresh = ap->thresh;
59 double fconst = ap->fconst;
60 double offset = ap->areal_offset;
63 memset(iareal, 0, NAREAL *
sizeof(cpl_size));
66 for (cpl_size i = 0; i < np; i++) {
68 double t = plarray[i].z;
72 cpl_size nup = CPL_MAX(1, CPL_MIN(NAREAL, (cpl_size)(log(t) * fconst - offset) + 1));
74 for (cpl_size j = 0; j < nup; j++) {
void hdrl_areals(ap_t *ap, cpl_size iareal[NAREAL])
Work out the areal profiles for an object.