<jupyter_start><jupyter_text>From documentation, 3D grayscale is organized such that we effectively have (pln, row, col),where pln is plane, row is row and column is column.  Elements at the top left have the lowest brightness value,while elements in the bottom right have the highest brightness values.I'm going to take one plane (plane 0) and then convert it into a TIFF.<jupyter_code>data[0]
plane = 0;

##Iterate through all planes to get slices
for plane in range(data.shape[0]):
    ## Convert memmap array into ndarray for toimage process
    output = np.asarray(data[plane])
    ## Save as TIFF for Ilastik
    scipy.misc.toimage(output).save('outfile' + TokenName + str(plane) + '.tiff')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.08677685950413223, 'fraction_numerical': 0.006887052341597796, 'mean_word_length': 4.862903225806452, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '50781', 'license': 'Apache-2.0', 'n_tokens_mistral': 230, 'n_tokens_neox': 216, 'n_words': 90, 'path': 'Jupyter/NIFTI (.nii) Ilastik Membrane Detection.ipynb', 'repo_name': 'NeuroDataDesign/seelviz-archive', 'size': '726'}