Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MagellanMapper uses "registered image suffixes" for two main purposes:
atlasVolume
for the atlas intensity image registered to a sample image,annotation
for the registered atlas labels image)atlas
type for the intensity image andannotation
type for the labels imageThese suffixes are accessed through the
--reg_suffixes
command-line flag or the "Intensity" and "Labels" selection controls in the "Registered Images" section of the GUI. Registered images are identified by a base image path to which these suffixes are appended. Filenames given in the GUI are deconstructed if possible to these base and suffix components, and starting in v1.4, the same occurs for files given by command-line.Occasionally, users may wish to load a labels image not registered to the main image, which the registered suffixes does not support. As a way to specify a non-registered path while still using the registered suffixes to load certain file types such as labels, this PR allows registered suffixes to be given as absolute paths and loaded directly, without modifying the path.
Also, an image loaded as a registered "atlas" (intensity) image takes precedence over the main intensity image, but this main image will still be loaded even if the registered atlas image is set. This loading allows any metadata from the main image to be loaded, but loading the main image could also trigger an image import or load unintended metadata. As a simplification, this PR skips loading the main image if a registered intensity image is specified.
Many of the atlas-related functions have assumed that certain registered suffixes are used, but we are slowly making these suffixes customizable through the CLI flag. This PR adds supports for this customization in the edge detection task.