Skip to content

Commit

Permalink
Added create_bdv_h5 to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Jan 8, 2024
1 parent 3ad8346 commit 45c51cf
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion mesospim_stitcher/workflow.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
from pathlib import Path

import numpy as np

from mesospim_stitcher.big_stitcher_bridge import run_big_stitcher
from mesospim_stitcher.file_utils import write_big_stitcher_tile_config
from mesospim_stitcher.file_utils import (
create_pyramid_bdv_h5,
write_big_stitcher_tile_config,
)
from mesospim_stitcher.fuse import fuse_image

XML_PATH = (
Expand All @@ -23,6 +28,15 @@
"_ch488_ch561_ch647_bdv_tile_config.txt"
)

DOWNSAMPLE_ARRAY = np.array(
[[1, 1, 1], [2, 2, 2], [4, 4, 4], [8, 8, 8], [16, 16, 16]]
)
SUBDIVISION_ARRAY = np.array(
[[32, 32, 16], [32, 32, 16], [32, 32, 16], [32, 32, 16], [32, 32, 16]]
)

create_pyramid_bdv_h5(Path(H5_PATH), DOWNSAMPLE_ARRAY, SUBDIVISION_ARRAY)

tile_metadata = write_big_stitcher_tile_config(Path(TILE_CONFIG_PATH))

result_big_stitcher = run_big_stitcher(
Expand Down

0 comments on commit 45c51cf

Please sign in to comment.