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,
Read Z coordinate from CZI file
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:
I hope this code, and the other contributions in the forum, help to get an idea how to handle CZI files.
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() + "'");
}