|
|
| __init__ (self, tuple bands, np.ndarray|Parameter spectrum, np.ndarray|Parameter morph, Box model_bbox, float|None bg_thresh=None, np.ndarray|None bg_rms=None, float floor=1e-20, list[tuple[int, int]]|None peaks=None, float min_area=0) |
| |
| np.ndarray | prox_spectrum (self, np.ndarray spectrum) |
| |
| np.ndarray | prox_morph (self, np.ndarray morph) |
| |
| bool | resize (self, Box model_box) |
| |
|
| __str__ (self) |
| |
|
| __repr__ (self) |
| |
|
| __init__ (self, tuple bands, Parameter|np.ndarray spectrum, Parameter|np.ndarray morph, Box bbox, tuple[int, int]|None peak=None, np.ndarray|None bg_rms=None, float|None bg_thresh=0.25, float floor=1e-20, Monotonicity|None monotonicity=None, int padding=5, bool is_symmetric=False) |
| |
| tuple[int, int]|None | peak (self) |
| |
| tuple[int, int]|None | component_center (self) |
| |
| np.ndarray | spectrum (self) |
| |
| np.ndarray | morph (self) |
| |
| tuple | shape (self) |
| |
| Image | get_model (self) |
| |
| | grad_spectrum (self, np.ndarray input_grad, np.ndarray spectrum, np.ndarray morph) |
| |
| | grad_morph (self, np.ndarray input_grad, np.ndarray morph, np.ndarray spectrum) |
| |
| | update (self, int it, np.ndarray input_grad) |
| |
| None | parameterize (self, Callable parameterization) |
| |
| ScarletComponentBaseData | to_data (self) |
| |
|
| __str__ (self) |
| |
|
| __repr__ (self) |
| |
| FactorizedComponent | __getitem__ (self, Any indices) |
| |
| FactorizedComponent | __deepcopy__ (self, dict[int, Any] memo) |
| |
| FactorizedComponent | __copy__ (self) |
| |
|
| __init__ (self, tuple bands, Box bbox) |
| |
| Box | bbox (self) |
| |
| tuple | bands (self) |
| |
| Component | __getitem__ (self, Any indices) |
| |
| Component | __copy__ (self) |
| |
| Component | __deepcopy__ (self, dict[int, Any] memo) |
| |
| Component | copy (self, bool deep=False) |
| |
Implements a free-form component
With no constraints this component is typically either a garbage collector,
or part of a set of components to deconvolve an image by separating out
the different spectral components.
See `FactorizedComponent` for a list of parameters not shown here.
Parameters
----------
peaks: `list` of `tuple`
A set of ``(cy, cx)`` peaks for detected sources.
If peak is not ``None`` then only pixels in the same "footprint"
as one of the peaks are included in the morphology.
If `peaks` is ``None`` then there is no constraint applied.
min_area: float
The minimum area for a peak.
If `min_area` is not `None` then all regions of the morphology
with fewer than `min_area` connected pixels are removed.