Scribbler: erase brush, mask refinement, radial-subtracted panels and cross-grid mask regridding #23
Unanswered
samlange04
asked this question in
Ideas & Proposals
Replies: 2 comments
|
PRs for the first step (erase brush and mask refinement) are open:
The radial-panels and regridding step will follow as separate PRs once these are in, since the branches build on them. |
0 replies
|
Thanks for the write-up and the three PRs, this is a nice piece of work. I have reviewed #635 and the docs PRs; there was one visible bug (the proposal outline was drawn mirrored under the default On your questions:
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Proposal: Scribbler erase brush, mask refinement, radial-subtracted panels and cross-grid mask regridding
I have been using
al.Scribbler/ag.Scribblerheavily to draw extra-galaxies and arc masks for an HST lens sample, and hit a set of limitations and defects that I have fixed in a pipeline of my own. I would like to contribute them back, and this discussion is to agree the scope before I open the pull requests (per the contribution guide).Problems
2) has no meaning, so an overshooting stroke means starting over, and a saved mask can never be reopened and adjusted.TypeErrorinsideadd_patch(xdataisNonethere).if not center[0]treats0.0as missing).cosmos_web_ringF150W 0.03"/px vs F277W 0.06"/px), with no way to transfer a mask between them.Proposed changes (all backwards compatible)
PyAutoGalaxy, PR 1: erase brush and mask refinement
2(red) becomes an ERASE brush. Newmask_from()returns(proposal | added) & ~erased;show_mask()is unchanged.proposal=argument: an existing boolean mask is outlined over the image and refined rather than redrawn.=/-resize the brush multiplicatively (default 1.4x per press, 1 px floor).TypeError, the missing redraw, and the pixel-0 rasteriser bug are fixed.test_autogalaxy/gui/test_scribbler.py.PyAutoGalaxy, PR 2 (after PR 1): radial-subtracted side-by-side panels and cross-grid regridding
autogalaxy/gui/display_util.py(pure numpy): per-radius median subtraction with anexcludemask, a 1 px mask outline, side-by-side panel compositing, and nearest-neighbour regridding of a boolean mask between uniform grids by arcsec coordinates.Scribbler(subtract_radial=True)shows[radial-subtracted | as-observed]; strokes on either panel fold back onto the image grid.Scribbler(positions=...)marks positions with dark crosses while painting.autolens_workspace and autogalaxy_workspace (docs, one PR each per library PR)
gui/mask.pyandgui/mask_extra_galaxies.pyusemask_from(), document the keys, and gain an opt-in refine-existing-mask section. The extra-galaxies guide mask grows from 3.0" to 4.0" with a note that it is better to draw too large than too small.mask_extra_galaxies_multi.py), an optional arc-mask GUI (mask_arcs.py), and agui/README.mdon the recommended mask-up order and where each product belongs.Questions for maintainers
autogalaxy/gui/display_util.pyan acceptable home for the regridding helper for now? Its long-term home is probablyautoarray.mask, but the GUI is currently its only caller.mask_2d_regridded_fromfromautogalaxy.gui.display_utildirectly. If a re-export throughautolensis preferred that is a one-line PyAutoLens change.mainand fail until the library PR merges. I will open them as drafts and mark them ready once the library side is in, unless you prefer another arrangement.The branches are ready on my forks (
samlange04/PyAutoGalaxy,samlange04/autolens_workspace,samlange04/autogalaxy_workspace, branchesfeature/scribbler-erase-and-reviewandfeature/scribbler-radial-panels-regrid). I will open the first PyAutoGalaxy PR now and link it here.All reactions