All three formats store the same ASC CDL parameters:
- Slope
- Offset
- Power
- Saturation
For each RGB channel:
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Copyright (c) 2026 promto-c | |
| # SPDX-License-Identifier: MIT | |
| # Standard Library Imports | |
| # ------------------------ | |
| import argparse | |
| import curses |
| """ | |
| MIT License | |
| Copyright (c) 2026 promto-c | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, subject to the following conditions: |
Photos → COLMAP (poses) → Brush (GSplat) → View
| import torch | |
| print("PyTorch version:", torch.__version__) | |
| # CUDA / ROCm (both use torch.cuda API in PyTorch) | |
| # ------------------------------------------------ | |
| has_cuda_api = torch.cuda.is_available() | |
| cuda_version = torch.version.cuda | |
| rocm_version = torch.version.hip # None if not ROCm build |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """Copyright (C) 2026 promto-c | |
| Permission Notice: | |
| - You are free to use, copy, modify, and distribute this software for any purpose. | |
| - No restrictions are imposed on its use. | |
| - Credit is appreciated but not required. | |
| - Use at your own risk; this software is provided "AS IS", without any warranty — express or implied — including, but not limited to, warranties of merchantability or fitness for a particular purpose. | |
| - This notice does not apply to any third-party libraries or dependencies; those are subject to their respective licenses. |
| """Copyright (C) 2025 promto-c | |
| Permission Notice: | |
| - You are free to use, copy, modify, and distribute this software for any purpose. | |
| - No restrictions are imposed on its use. | |
| - Credit is appreciated but not required. | |
| - Use at your own risk; this software is provided "AS IS", without any warranty — express or implied — including, but not limited to, warranties of merchantability or fitness for a particular purpose. | |
| - This notice does not apply to any third-party libraries or dependencies; those are subject to their respective licenses. | |
| """ |
| """Copyright (C) 2025 promto-c | |
| Permission Notice: | |
| - You are free to use, copy, modify, and distribute this software for any purpose. | |
| - No restrictions are imposed on its use. | |
| - Credit is appreciated but not required. | |
| - Use at your own risk; this software is provided "AS IS", without any warranty — express or implied — including, but not limited to, warranties of merchantability or fitness for a particular purpose. | |
| - This notice does not apply to any third-party libraries or dependencies; those are subject to their respective licenses. | |
| """ | |
| import fx |
| """Copyright (C) 2020 promto-c | |
| Permission Notice: | |
| - You are free to use, copy, modify, and distribute this software for any purpose. | |
| - No restrictions are imposed on the use of this software. | |
| - You do not need to give credit or include this notice in your work. | |
| - Use at your own risk. | |
| - This software is provided "AS IS" without any warranty, either expressed or implied. | |
| - This license does not cover any third-party libraries or dependencies used in this software. Those libraries are subject to their respective licenses. | |
| """ |
| """Copyright (C) 2024 promto-c | |
| Permission Notice: | |
| - You are free to use, copy, modify, and distribute this software for any purpose. | |
| - No restrictions are imposed on the use of this software. | |
| - You do not need to give credit or include this notice in your work. | |
| - Use at your own risk. | |
| - This software is provided "AS IS" without any warranty, either expressed or implied. | |
| """ | |
| from difflib import SequenceMatcher |