punchbowl.level2.preprocess#
Functions#
|
Trim the edges of the image, expanding the mask the same amount. Sets masked pixels to nan. |
|
|
|
Apply image masks. Sets masked pixels to nan. |
|
Apply alpha scalings. |
|
Preprocess trefoil inputs. |
Module Contents#
- punchbowl.level2.preprocess.trim_edges(data_list: list[punchbowl.data.punchcube.PUNCHCube], trim_edge_px: int | list[int] = 0) None[source]#
Trim the edges of the image, expanding the mask the same amount. Sets masked pixels to nan.
- punchbowl.level2.preprocess.apply_masks(data_list: list[punchbowl.data.punchcube.PUNCHCube], mask_list: list[str | None]) None[source]#
Apply image masks. Sets masked pixels to nan.
- punchbowl.level2.preprocess.apply_alpha(data_list: list[punchbowl.data.punchcube.PUNCHCube], alphas_file: str | None = None) None[source]#
Apply alpha scalings.
- punchbowl.level2.preprocess.preprocess_trefoil_inputs(data_list: list[punchbowl.data.punchcube.PUNCHCube], mask_list: list[str | None], trim_edge_px: int = 0, alphas_file: str | None = None) None[source]#
Preprocess trefoil inputs.