Documentation
¶
Index ¶
- func StackIncremental(stack, light *fits.Image, weight float32) *fits.Image
- func StackIncrementalFinalize(stack *fits.Image, weightSum float32)
- func StackLinearFit(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, ...) (clipLow, clipHigh int32)
- func StackMADSigma(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, ...) (clipLow, clipHigh int32)
- func StackMean(lightsData [][]float32, RefFrameLoc float32, res []float32)
- func StackMeanWeighted(lightsData [][]float32, weights []float32, RefFrameLoc float32, res []float32)
- func StackMedian(lightsData [][]float32, RefFrameLoc float32, res []float32)
- func StackSigma(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, ...) (clipLow, clipHigh int32)
- func StackSigmaWeighted(lightsData [][]float32, weights []float32, ...) (clipLow, clipHigh int32)
- func StackWinsorSigma(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, ...) (clipLow, clipHigh int32)
- func StackWinsorSigmaWeighted(lightsData [][]float32, weights []float32, ...) (clipLow, clipHigh int32)
- type OpStack
- type OpStackBatches
- type StackMode
- type StackWeighting
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StackIncremental ¶
Incrementally stacks the light onto the given stack, weighted by the given weight. Creates a new stack with same dimensions as light if stack is nil. Returns the modified or created stack. Does not calculate statistics, run star detections etc.
func StackIncrementalFinalize ¶
Finalizes an incremental stack. Divides pixel values by weight sum, and calculates extended stats
func StackLinearFit ¶
func StackLinearFit(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, res []float32) (clipLow, clipHigh int32)
Stacking with linear regression fit. Values which are more than sigmaLow/sigmaHigh standard deviations away from linear fit are excluded from the average calculation.
func StackMADSigma ¶
func StackMADSigma(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, res []float32) (clipLow, clipHigh int32)
Mean stacking with sigma clipping. Values which are more than sigmaLow/sigmaHigh MADs away from the median are excluded from the average calculation.
func StackMeanWeighted ¶
func StackMeanWeighted(lightsData [][]float32, weights []float32, RefFrameLoc float32, res []float32)
Stacking with mean function and weights
func StackMedian ¶
Stacking with median function
func StackSigma ¶
func StackSigma(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, res []float32) (clipLow, clipHigh int32)
Mean stacking with sigma clipping. Values which are more than sigmaLow/sigmaHigh standard deviations away from the mean are excluded from the average calculation. The standard deviation is calculated w.r.t the mean for robustness.
func StackSigmaWeighted ¶
func StackSigmaWeighted(lightsData [][]float32, weights []float32, RefFrameLoc, sigmaLow, sigmaHigh float32, res []float32) (clipLow, clipHigh int32)
Weighted mean stacking with sigma clipping. Values which are more than sigmaLow/sigmaHigh standard deviations away from the mean are excluded from the average calculation. The standard deviation is calculated w.r.t the mean for robustness.
func StackWinsorSigma ¶
func StackWinsorSigma(lightsData [][]float32, RefFrameLoc, sigmaLow, sigmaHigh float32, res []float32) (clipLow, clipHigh int32)
Weighted mean stacking with sigma clipping. Values which are more than sigmaLow/sigmaHigh standard deviations away from the mean are replaced with the lowest/highest valid value.
func StackWinsorSigmaWeighted ¶
func StackWinsorSigmaWeighted(lightsData [][]float32, weights []float32, RefFrameLoc, sigmaLow, sigmaHigh float32, res []float32) (clipLow, clipHigh int32)
Weighted mean stacking with sigma clipping. Values which are more than sigmaLow/sigmaHigh standard deviations away from the mean are replaced with the lowest/highest valid value.
Types ¶
type OpStack ¶
type OpStack struct { ops.OpBase Mode StackMode `json:"mode"` Weighting StackWeighting `json:"weighting"` SigmaLow float32 `json:"sigmaLow"` SigmaHigh float32 `json:"sigmaHigh"` RefFrameLoc float32 `json:"-"` }
func NewOpStack ¶
func NewOpStack(mode StackMode, weighting StackWeighting, sigmaLow, sigmaHigh float32) *OpStack
func NewOpStackDefault ¶
func NewOpStackDefault() *OpStack
func (*OpStack) Apply ¶
Stack a set of light frames. Limits parallelism to the number of available cores
func (*OpStack) MakePromises ¶
func (*OpStack) UnmarshalJSON ¶
Unmarshal the type from JSON with default values for missing entries
type OpStackBatches ¶
type OpStackBatches struct { ops.OpBase PerBatch *ops.OpSequence `json:"perBatch"` }
func NewOpStackBatches ¶
func NewOpStackBatches(perBatch *ops.OpSequence) (op *OpStackBatches)
func NewOpStackBatchesDefault ¶
func NewOpStackBatchesDefault() *OpStackBatches
func (*OpStackBatches) MakePromises ¶
type StackWeighting ¶
type StackWeighting int
const ( StWeightNone StackWeighting = iota StWeightExposure StWeightInverseNoise StWeightInverseHFR )