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.
how to get scene info of czi?
-
- Posts: 180
- Joined: Wed May 20, 2020 10:10 am
Re: how to get scene info of czi?
To ‘extract’ part of an image with ZeissImageLib you have to address the part you expect via 'bounds' like:
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.
Code: Select all
SubsetBounds subsetBounds = imageDocument.Bounds.Clone();
subsetBounds.SetSize(ImageDimension.S, 1);
BitmapSource bitmapSource = imageAccessor.GetBitmapSource(subsetBounds, null, 0.0);
I hope this helps.