Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/vstarstack/library/calibration/flat.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ def prepare_flat_sky(images : vstarstack.library.common.IImageSource,

no_stars_dataframe = vstarstack.library.stars.cut.cut_stars(dataframe, descs)
no_stars_dataframe = remove_hot_pixels(no_stars_dataframe)
for channel in no_stars_dataframe.get_channels():
layer, opts = no_stars_dataframe.get_channel(channel)
if not no_stars_dataframe.get_channel_option(channel, "signal"):
continue
layer = cv2.GaussianBlur(layer, (15, 15), 0)
layer = layer / np.median(layer)
no_stars_dataframe.replace_channel(layer, channel, **opts)

no_star_images.append(no_stars_dataframe)

no_star_source = vstarstack.library.common.ListImageSource(no_star_images)
Expand Down