Read Z coordinate from CZI file

Your place to discuss general handling of images and the CZI file format
Post Reply
user-6850
Posts: 18
Joined: Thu Jan 01, 1970 1:00 am

Read Z coordinate from CZI file

Post by user-6850 »

Dears,

I purchased Axio Imager.Z2 Vario.
I want to read height information from a CZI file using ZeissImageLib.dll.
'Height information' is the Z coordinate of each pixel. (attached image)

I could understand how to display the image using the sample program (SimpleImageViewer).
What should I do?

Thanking you in advance.

Sincerely,
Attachments
Z Coordinate.jpg
Z Coordinate.jpg (14.07 KiB) Viewed 1306 times
user-4
Posts: 398
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello Yosuke,

Did you search for ‚ZeissImageLib‘ in the forum?
Did you read the ‚CZI Documentation‘?

There are quite a lot of CZI image 'types' or in other words: the image in a CZI file depends very much on how you acquired the image.

Therefore you should have some basic ideas about the flexibility of the CZI file format before accessing the image.

A general way to ‘ask’ the dimensions of a CZI would be something like:

Code: Select all

foreach (ImageDimension dimension in imageDocument.Bounds.GetContainedDimensions(true))
{
    Console.WriteLine("ImageDimension: '" + dimension.ToString() + "'");

    ImageDimensionRange imageDimensionRange = imageDocument.Bounds.GetRange(dimension);
    Console.WriteLine("ImageDimensionRange: '" + imageDimensionRange.ToString() + "'");
}
I hope this code, and the other contributions in the forum, help to get an idea how to handle CZI files.
Post Reply