| 1 | from numpy import ndarray |
| 2 | from numpy import uint8, uint16 |
| 3 | |
| 4 | from frames import Frames |
| 5 | |
| 6 | image = ndarray((500, 500), dtype=uint8) |
| 7 | image[:,:] = 128 |
| 8 | color = False |
| 9 | file_name = 'D:\SW-Development\Python\PlanetarySystemStacker\planetary_system_stacker\Images/new_file.tiff' |
| 10 | avoid_overwriting = True |
| 11 | |
| 12 | # Save the stacked image as 16bit int. |
| 13 | Frames.save_image(file_name, image, color=color, avoid_overwriting=avoid_overwriting) |
| 14 |