#311 closed defect (fixed)
No function uses PS_INTERPOLATE_*_VARIANCE?
| Reported by: | Owned by: | Paul Price | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The description for psImageInterpolateMode (section 4.6.3 in PSDC-430-007-12)
states that the *_VARIANCE enum values would require modification of a variance
image, but no function that uses psImageInterpolateMode has a variance image
input, as far as I can see.
Can you give me some additional information on implementation of the *_VARIANCE
interpolate modes?
-rdd
Attachments (1)
Change History (8)
comment:1 by , 21 years ago
| Status: | new → assigned |
|---|
by , 21 years ago
| Attachment: | stacTransform.c added |
|---|
Demonstration of PS_INTERPOLATE_BILINEAR_VARIANCE
comment:2 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
So, the interpolation will not interpolate on the image and variance image
simultaneously; that is where I went astray.
So, I assume that the variance versions of the pixel interpolate will be folded
into psLib, i.e., there will be lower level functions like
p_psImagePixelInterpolateBILINEAR_VARIANCE available and all the functions
taking a psImageInterpolateMode parameter will be cognizant of the variance
interpolation modes.
comment:3 by , 21 years ago
| Resolution: | fixed |
|---|---|
| Severity: | critical → normal |
| Status: | closed → reopened |
comment:4 by , 21 years ago
| Severity: | normal → critical |
|---|
comment:5 by , 21 years ago
| Severity: | critical → normal |
|---|
comment:6 by , 21 years ago
| Status: | reopened → assigned |
|---|
The VARIANCE options need to be available in psImagePixelIterpolate (I love that
function!) in order to allow doing general warping of images. I understand that
other functions that warp images (e.g., psImageRotate) use
psImagePixelInterpolate, so I don't expect it would be difficult to make them
use the VARIANCE options either; but this is not necessary immediately.
comment:7 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
I think that this is clearly understood now.

The VARIANCE options aren't to support current psLib or psModule functions, but
rather to support the image combination step. I use them in my prototype image
combination program.
The idea is this: we have an input image, which we need to shift (using
psImagePixelInterpolate). The input image has an associated variance image,
which tells us the errors in the flux values for each pixel (using Poisson
statistics --- square root of the number of counts, plus some other stuff).
We'd like an error map for the shifted image.
I have a modified version of the PS_INTERPOLATE_BILINEAR option available as a
guide.