<jupyter_start><jupyter_text>ntakt IOntakt offers rudimentary and experimental IO support for images and N5/Zarr. We use [`BigDataViewer`](https://imagej.net/BigDataViewer) to visualize images and multi-dimensional data in this example.<jupyter_code>// set up dependencies
// use local maven repository; not yet deployed to remote maven repositories.
@file:Repository("*mavenLocal")
@file:Repository("https://maven.scijava.org/content/groups/public")
@file:Repository("https://jitpack.io")

// uncomment to search in your local maven repo
// requires installation into local maven repository (./gradlew build publishToMavenLocal)
@file:DependsOn("org.ntakt:ntakt:0.1.0-SNAPSHOT")

// uncomment to search in jitpack
// @file:DependsOn("com.github.saalfeldlab:ntakt2:26c21b71795e20d94a90a35b4700ae0c66044bdf")

@file:DependsOn("net.imglib2:imglib2-label-multisets:0.8.1")
@file:DependsOn("sc.fiji:bigdataviewer-vistools:1.0.0-beta-21")
%use lets-plot
import org.ntakt.*<jupyter_output><empty_output><jupyter_text>2D ARGB Image<jupyter_code>// update path to an image on your computer
val path = "/home/zottel/Pictures/Screenshot_20200822_102323.png"
val img = ntakt.io.open(path).asInts().asARGBs()
img.show("screenshot")
null<jupyter_output><empty_output><jupyter_text>2D 16-bit Grayscale ImageThe `t1-head.tif` example is available in the ImageJ samples. Set the contrast range inside `BigDataViewer`.<jupyter_code>// update path to an image on your computer
val path = "/home/zottel/Downloads/t1-head.tif"
val img = ntakt.io.open(path).asUnsignedBytes()
img.show("head")
null<jupyter_output><empty_output><jupyter_text>3D Volumetric DataDownload the data on the CREMI [website](https://cremi.org/data)<jupyter_code>// update path to an image on your computer
val path = "/home/zottel/Downloads/sample_A_20160501.hdf"
val img = ntakt.io.n5.openUntypedHDF5(path, "volumes/raw")
// use volatileView to avoid blocking while loading data
img.volatileView.show("raw")
null<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12418627941912869, 'fraction_numerical': 0.03655483224837256, 'mean_word_length': 6.372693726937269, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '229010', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 764, 'n_tokens_neox': 712, 'n_words': 155, 'path': 'notebooks/examples/01_io.ipynb', 'repo_name': 'gitter-badger/ntakt', 'size': '1997'}