Home

Awesome

WolframLibraryLink_libCZI

read CZI-documents from Mathematica / Wolfram Language

Description

This project provides a Wolfram Library Link implementation (based on libCZI) allowing to directly open and read a CZI-document.

See the module in action -> here and here.

Installing

A Paclet is provided which includes binaries for ARM (e.g. Raspberry Pi), Windows x86 & x64 and Linux x64 on the release-page here on GitHub. Please check this page for the latest version.

Paclet installation

PacletInstall["https://github.com/ptahmose/WolframLibraryLink_libCZI/releases/download/v0.1.2/CZIReader-0.1.2.paclet"]

FindFile["CZIReader`"]    (* see where the paclet was downloaded to and installed *)
-> "/home/pi/.Mathematica/Paclets/Repository/CZIReader-0.1.2/Kernel/CZIReader.m"

PacletUninstall["CZIReader"] (* uninstall the CZIReader-paclet *)

Usage

The following commands are provided:

commanddescription
GetCZIReaderLibraryInfogather information about the CZIReader-package
OpenCZIopen a CZI-file
ReleaseCZIdestroy the CZI-document object
CZIGetInfoget information about the content of the CZI-document
CZIGetSubBlockget the bitmap of the specified subblock
CZISingleChannelScaledCompositeget a (scaled) multi-tile composite
CZIMultiChannelScaledCompositeget a (scaled) multi-tile multi-channel composite
CZIGetMetadataXmlget the XML-information
CZIGetScalingget the scaling of the document
CZIGetSubBlockDataget content of a subblock

See the wiki for more information.

Building

The wllczi-shared-library can be built using cmake. Here is a recording of a build on a Raspberry Pi.

There is a build-pipeline configured here.