LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, tuple[int, int] shape, npt.DTypeLike dtype=float, bool auto_update=True, int fit_radius=1) | |
tuple[int, int] | shape (self) |
tuple[int, int] | center (self) |
update (self, tuple[int, int] shape) | |
check_size (self, tuple[int, int] shape, tuple[int, int] center, bool update=True) | |
np.ndarray | __call__ (self, np.ndarray image, tuple[int, int] center) |
Public Attributes | |
dtype | |
auto_update | |
fit_radius | |
weights | |
distance | |
sizes | |
Class to implement Monotonicity Callable class that applies monotonicity as a pseudo proximal operator (actually a projection operator) to *a* radially monotonic solution. Notes ----- This differs from monotonicity in the main scarlet branch because this stores a single monotonicity operator to set the weights for all of the pixels up to the size of the largest shape expected, and only needs to be created once _per blend_, as opposed to once _per source_.. This class is then called with the source morphology to make monotonic and the location of the "center" of the image, and the full weight matrix is sliced accordingly. Parameters ---------- shape: The shape of the full operator. This must be larger than the largest possible object size in the blend. dtype: The numpy ``dtype`` of the output image. auto_update: If ``True`` the operator will update its shape if a image is too big to fit in the current operator. fit_radius: Pixels within `fit_radius` of the center of the array to make monotonic are checked to see if they have more flux than the center pixel. If they do, the pixel with larger flux is used as the center.
Definition at line 42 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.__init__ | ( | self, | |
tuple[int, int] | shape, | ||
npt.DTypeLike | dtype = float, | ||
bool | auto_update = True, | ||
int | fit_radius = 1 ) |
Definition at line 77 of file operators.py.
np.ndarray lsst.scarlet.lite.operators.Monotonicity.__call__ | ( | self, | |
np.ndarray | image, | ||
tuple[int, int] | center ) |
Make an input image monotonic about a center pixel Parameters ---------- image: The image to make monotonic. center: The ``(y, x)`` location _in image coordinates_ to make the center of the monotonic region. Returns ------- result: The input image is updated in place, but also returned from this method.
Definition at line 214 of file operators.py.
tuple[int, int] lsst.scarlet.lite.operators.Monotonicity.center | ( | self | ) |
The center of the full operator Returns ------- result: The center of the full operator.
Definition at line 105 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.check_size | ( | self, | |
tuple[int, int] | shape, | ||
tuple[int, int] | center, | ||
bool | update = True ) |
Check to see if the operator can be applied Parameters ---------- shape: The shape of the image to apply monotonicity. center: The location (in `shape`) of the point where the monotonicity will be taken from. update: When ``True`` the operator will update itself so that an image with shape `shape` can be made monotonic about the `center`. Raises ------ ValueError: Raised when an array with shape `shape` does not fit in the current operator and `update` is `False`.
Definition at line 186 of file operators.py.
tuple[int, int] lsst.scarlet.lite.operators.Monotonicity.shape | ( | self | ) |
The 2D shape of the largest component that can be made monotonic Returns ------- result: The shape of the oeprator.
Definition at line 94 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.update | ( | self, | |
tuple[int, int] | shape ) |
Update the operator with a new shape Parameters ---------- shape: The new shape
Definition at line 118 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.auto_update |
Definition at line 89 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.distance |
Definition at line 183 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.dtype |
Definition at line 88 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.fit_radius |
Definition at line 90 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.sizes |
Definition at line 184 of file operators.py.
lsst.scarlet.lite.operators.Monotonicity.weights |
Definition at line 102 of file operators.py.