Skip to content

Commit

Permalink
added option to enable sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
yfukai committed Mar 25, 2024
1 parent afb62db commit cf6d093
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,15 @@ def get_args():
default="cpu",
help="Device to use, cpu or gpu [default = 'cpu'].",
)
optional.add_argument(
"-s",
"--sort_intensity",
action="store_true",
dest="sort_intensity",
required=False,
default=False,
help="If True, sort the intensity pixelwise (suitable for non-timelapse images).",
)

arg = parser.parse_args()

Expand All @@ -164,6 +173,7 @@ def main(args):
max_reweight_iterations=args.max_reweight_iterations,
fitting_mode=args.fitting_mode,
get_darkfield=args.darkfield,
sort_intensity=args.sort_intensity,
)

# Initialize flatfields and darkfields
Expand Down

0 comments on commit cf6d093

Please sign in to comment.