only apply additional mask if the mask has changed
This commit is contained in:
@ -150,14 +150,10 @@ def work(backend_address, accumulator_host, accumulator_port, visualisation_host
|
|||||||
if pixel_mask_corrected is not None:
|
if pixel_mask_corrected is not None:
|
||||||
#pixel_mask_corrected = np.ascontiguousarray(pixel_mask_corrected)
|
#pixel_mask_corrected = np.ascontiguousarray(pixel_mask_corrected)
|
||||||
pixel_mask_pf = np.ascontiguousarray(pixel_mask_corrected).astype(np.int8, copy=False)
|
pixel_mask_pf = np.ascontiguousarray(pixel_mask_corrected).astype(np.int8, copy=False)
|
||||||
|
calc_apply_additional_mask(results, pixel_mask_pf) # changes pixel_mask_pf in place
|
||||||
else:
|
else:
|
||||||
pixel_mask_pf = None
|
pixel_mask_pf = None
|
||||||
|
|
||||||
|
|
||||||
calc_apply_additional_mask(results, pixel_mask_pf) # changes pixel_mask_pf in place
|
|
||||||
|
|
||||||
|
|
||||||
if pixel_mask_corrected is not None:
|
if pixel_mask_corrected is not None:
|
||||||
data_s = copy(image)
|
data_s = copy(image)
|
||||||
saturated_pixels_coordinates = ju_stream_adapter.handler.get_saturated_pixels(data_s, mask=True, geometry=True, gap_pixels=True, double_pixels=double_pixels)
|
saturated_pixels_coordinates = ju_stream_adapter.handler.get_saturated_pixels(data_s, mask=True, geometry=True, gap_pixels=True, double_pixels=double_pixels)
|
||||||
|
Reference in New Issue
Block a user