Skip to content

Commit

Permalink
Also write as imagej format for cellprofiler
Browse files Browse the repository at this point in the history
  • Loading branch information
TorecLuik committed May 29, 2024
1 parent f152522 commit 45dde77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resources/convert_zarr_to_tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ def convert_zarr_to_tiff(zarr_file_path, key=None, output_file=None):

# Write the Dask array to the TIFF file
dask_image_data.persist()
tf.imwrite(output_file, dask_image_data, planarconfig='contig')
# to imagej tiff to be handled by cellprofiler wf wrt multiple channels
tf.imwrite(output_file, dask_image_data,
planarconfig='contig', imagej=True)

logger.info(f"Conversion completed successfully with key: '{key}'.")
logger.info(f"Output TIFF file: '{output_file}'")
Expand Down

0 comments on commit 45dde77

Please sign in to comment.