improved function name

This commit is contained in:
Guillaume Raffy 2019-09-16 11:40:26 +02:00
parent 669d5822d1
commit 6ef25bd5e0
1 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ def compute_max(images_file_path):
return max_image
def replace_outer_frame(image, band_width):
def replace_border(image, band_width):
"""Overwrites the outer band of the image by duplicating the value of the pixels that touch this outer band
:param ImagePlus image:
@ -92,8 +92,8 @@ class WhiteEstimator(object):
self.average_size = average_size
def _remove_particles(self, white_estimate):
perform_gray_morphology(white_estimate, operator='open', structuring_element_shape='square', structuring_element_radius=(self.open_size + 1)/2)
perform_gray_morphology(white_estimate, operator='close', structuring_element_shape='square', structuring_element_radius=(self.close_size + 1)/2)
perform_gray_morphology(white_estimate, operator='open', structuring_element_shape='square', structuring_element_radius=(self.open_size + 1) / 2)
perform_gray_morphology(white_estimate, operator='close', structuring_element_shape='square', structuring_element_radius=(self.close_size + 1) / 2)
def estimate_white(self, sequences, channel_ids, dark=None):
"""Estimation of the white fluorescence image shape of synchrotron light from experimental images of Telemos microscope.
@ -204,7 +204,7 @@ class WhiteEstimator(object):
# modify spurious pixels on the side of the images
try:
replace_outer_frame(white_estimate, 3)
replace_border(white_estimate, 3)
except NotImplementedError as error:
print('warning: replace_outer_frame is not implemented yet')