"Standard_Map_Type" cleanup and refactor
This commit is contained in:
@@ -37,12 +37,13 @@ The pipeline steps are:
|
||||
* Resizes images based on `Configuration`.
|
||||
* Determines output bit depth and format based on `Configuration` and `SourceRule`.
|
||||
* Converts data types and saves images (`cv2.imwrite`).
|
||||
* The output filename uses the `standard_type` alias (e.g., `COL`, `NRM`) retrieved from the `Configuration.FILE_TYPE_DEFINITIONS` based on the file's effective `item_type`.
|
||||
* Calculates image statistics.
|
||||
* Stores processed map details.
|
||||
|
||||
7. **Map Merging (`_merge_maps_from_source`)**:
|
||||
* Iterates through `MAP_MERGE_RULES` in `Configuration`.
|
||||
* Identifies required source maps based on `SourceRule`.
|
||||
* Identifies required source maps by checking the `item_type_override` within the `SourceRule` (specifically in the `FileRule` for each file). Files with a base `item_type` of `"FILE_IGNORE"` are explicitly excluded from consideration.
|
||||
* Loads source channels, handling missing inputs with defaults from `Configuration` or `SourceRule`.
|
||||
* Merges channels (`cv2.merge`).
|
||||
* Determines output format/bit depth and saves the merged map.
|
||||
|
||||
Reference in New Issue
Block a user