Skip to content
Snippets Groups Projects
Commit be912e40 authored by Hugo chauvet's avatar Hugo chauvet
Browse files

WTF, when their is a visible channel in the White, try to add that option

parent fe69da08
No related branches found
No related tags found
No related merge requests found
......@@ -291,7 +291,7 @@ def correct_dark_white(images: str, dark: str = '', white: str = '' ,
owhite = mmzarr_read(str(original_white))[0, 0, :, zpos].map_blocks(img_as_float)
# Fin the position of the white
i_viswhite = [i for i, wchname in enumerate(white_ch_names) if 'vis' in wchname]
i_viswhite = [i for i, wchname in enumerate(white_ch_names) if 'vis' in wchname.lower()]
if len(i_viswhite) > 0:
print("Their is a visible channel in white, I remove it !")
owhite = dask.array.delete(owhite, i_viswhite[0])
......@@ -371,7 +371,6 @@ def correct_dark_white(images: str, dark: str = '', white: str = '' ,
# Check if the white has the same number of filter that the images
if diff_im_darks.shape[2] != len(powerEstimation):
# If not Need to find the visible to put it's power to one
i_vis=0
for chan in range(diff_im_darks.shape[2]):
if 'vis' in img_ch_names[chan].lower():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment