how to get scene info of czi?

Discuss questions and projects related to processing of imaging data here
Post Reply
Park Jonghyun
Posts: 1
Joined: Wed Aug 05, 2020 7:42 am

how to get scene info of czi?

Post by Park Jonghyun »

Dear OP.

I got a problem to find size info and position info of each scene of czi file.

I tried to use GetBitmapSource in ImageAccesor for getting each scene, but I failed it because could not find size info and position info of each scene.

Please, help me to get them of each scene.

Thank you.
CarlZeissMicroscopy3
Posts: 180
Joined: Wed May 20, 2020 10:10 am

Re: how to get scene info of czi?

Post by CarlZeissMicroscopy3 »

To ‘extract’ part of an image with ZeissImageLib you have to address the part you expect via 'bounds' like:

Code: Select all

SubsetBounds subsetBounds = imageDocument.Bounds.Clone();
subsetBounds.SetSize(ImageDimension.S, 1);

BitmapSource bitmapSource = imageAccessor.GetBitmapSource(subsetBounds, null, 0.0);
In this example we cloned the original Bounds of the image and then set the scene index to 1 which means that only the first scene of the image is selected.

I hope this helps.
Post Reply