From 97b43dfd064dfa11a4858977a3ce7c3cf96a043a Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Tue, 19 Dec 2023 16:37:02 -0500 Subject: [PATCH] DOC: Add note about roi chunk re-alignment --- examples/integrations/itk/SelectROI.ipynb | 7 +++++++ examples/integrations/itkwasm/SelectROI.ipynb | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/examples/integrations/itk/SelectROI.ipynb b/examples/integrations/itk/SelectROI.ipynb index 4eac1ab7..f48d1565 100644 --- a/examples/integrations/itk/SelectROI.ipynb +++ b/examples/integrations/itk/SelectROI.ipynb @@ -599,6 +599,13 @@ "to_ngff_zarr('roi.zarr', multiscales=roi_multiscales)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "If the goal is just to view or process the ROI, use `get_roi_image`. If the goal is to save the entire roi to disk, use `get_roi_multiscales` followed `to_ngff_zarr`. There is a need to re-align array chunks after roi extraction, which can take some time for the entire multiscale dataset with very large images." + ] + }, { "cell_type": "code", "execution_count": 17, diff --git a/examples/integrations/itkwasm/SelectROI.ipynb b/examples/integrations/itkwasm/SelectROI.ipynb index 0f0745f5..7d9aacd2 100644 --- a/examples/integrations/itkwasm/SelectROI.ipynb +++ b/examples/integrations/itkwasm/SelectROI.ipynb @@ -588,6 +588,13 @@ "to_ngff_zarr('roi.zarr', multiscales=roi_multiscales)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "If the goal is just to view or process the ROI, use `get_roi_image`. If the goal is to save the entire roi to disk, use `get_roi_multiscales` followed `to_ngff_zarr`. There is a need to re-align array chunks after roi extraction, which can take some time for the entire multiscale dataset with very large images." + ] + }, { "cell_type": "code", "execution_count": 17,