IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#328 closed defect (fixed)

psImageTransform has no errors output like stacTransform

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

Description

I was looking at the stacTransform code sample posted on the website, and it had
an output errors map, but the psImageTransform does not.

I just want to check that that is correct; psImageTransform does not perform
that calculation like stacTransform does.

-rdd

Change History (1)

comment:1 by Paul Price, 21 years ago

Resolution: fixed
Status: newclosed

I imagined the error images being transformed separately. Here's a snippet of
the combination code I had in mind (it will be in the next Modules SDRS).

psArray *transformed = psArrayAlloc(nImages); Array of transformed images
psArray *transformedErr = psArrayAlloc(nImages);
Array of transformed

error images

psArray *transformedMask = psArrayAlloc(nImages); Array of masks for

transformed images

for (int i = 0; i < nImages; i++) {

psPixels *blanks = NULL; List of blank pixels
transformed->data[i] = psImageTransform(NULL, &blanks, inputs->data[i],

inputMask->data[i], inputMaskVal, NAN, skyToDetector,
combineRegion, NULL, PS_INTERPOLATE_BILINEAR);

transformedErr->data[i] = psImageTransform(NULL, NULL, inputsErr->data[i],

inputMask->data[i],

inputMaskVal, NAN, skyToDetector, combineRegion, NULL,
PS_INTERPOLATE_BILINEAR_VARIANCE);

psImage *skyImage = transformed->data[i]; Dereference the transformed image
psRegion *blankRegion = psRegionAlloc(0, 0, skyImage->numCols,

skyImage->numRows); Size of

transformed
image

transformedMask->data[i] = psPixelsToMask(NULL, blanks, blankRegion,

PS_MASK_BLANK);

psFree(blankRegion);
psFree(blanks);

}

Note: See TracTickets for help on using tickets.