Skip to content

Single slice

linc_convert.modalities.df.single_slice

Converts JPEG2000 files generated by MBF-Neurolucida into a OME-ZARR pyramid.

It does not recompute the image pyramid but instead reuse the JPEG2000 levels (obtained by wavelet transform).

convert

convert(inp, *, thickness=None, general_config=None, zarr_config=None, nii_config=None)

Convert a JPEG2000 file generated by MBF-Neurolucida into a Zarr pyramid.

It does not recompute the image pyramid but instead reuse the JPEG2000 levels (obtained by wavelet transform).

Parameters:

Name Type Description Default
inp str

Path to the input JP2 file

required
thickness float | None

Slice thickness

None
general_config GeneralConfig

General configuration

None
zarr_config ZarrConfig

Zarr related configuration

None
nii_config NiftiConfig

NIfTI header related configuration

None