Skip to content

Commit

Permalink
use the new concatenation wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Aug 6, 2024
1 parent 2f11603 commit 0481293
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
from pathlib import Path

import cyclopts
from depiction.image.horizontal_concat import horizontal_concat

from depiction.image.multi_channel_image import MultiChannelImage
from depiction.image.multi_channel_image_concatenation import MultiChannelImageConcatenation

app = cyclopts.App()


@app.default
def concatenate_images(output_hdf5: Path, paths: list[Path]) -> None:
images = [MultiChannelImage.read_hdf5(path) for path in paths]
concatenated = horizontal_concat(images, add_index=True)
concatenated.write_hdf5(output_hdf5)
concat = MultiChannelImageConcatenation.concat_images(images=images)
concat.write_hdf5(path=output_hdf5)


if __name__ == "__main__":
Expand Down

0 comments on commit 0481293

Please sign in to comment.