Open lbaumo opened 1 year ago
Here is Erin Sheldon's code that creates the ubersegmentation map
step 2 above: _interpolate_coadd_seg_image Interpolates the coadd segmentation map onto the SE image frame.
step 3: get_uberseg will zero out pixels not nearest to central object. there is an option to use a "fast" c code here. This returns a weight map postage stamp with neighbors masked.
Where does this belong? basically we are changing the flagged images. This could either go in the vignet section, since the bookkeeping will be similar, or in the ngmix section, where the flags will be used. Maybe it should be it's own module, though that seems like a lot of overhead.
My preference would be either in the vignet or own module. In that way übersegmentation can be used with other shape measurement methods, if we implement others than ngmix.
The sextractor segmaps have problems with shear bias in the direction of neighbors in blended galaxies. From Jarvis 2016: tests revealed significant biases from the masking procedure we had been using, involving just the SEXTRACTOR segmentation maps. When a galaxy had a bright neighbor on the same postage stamp, light from the neighbor that was just outside the segmentation map was being included as part of the fit, thus significantly biasing the inferred shapes in the direction of the neighbor.
how to implement uberseg (again from Jarvis 2016)