Git Product home page Git Product logo

Comments (12)

cgohlke avatar cgohlke commented on June 4, 2024

Compression >= 1000 is documented as "System specific RAW data" in the CZI specification v1.2.2. No further details are given. Looks like uncompressed in this case.

from libczi.

toloudis avatar toloudis commented on June 4, 2024

CziUtils::CompressionModeFromInt turns 1001 into "Invalid" and then libCZI::CreateBitmapFromSubBlock throws an exception and doesn't try to return the bitmap.

from libczi.

zeissmicroscopy avatar zeissmicroscopy commented on June 4, 2024

Hi all,

this 1001 compression refers to an special raw CZi used to write image data "really fast" to disk when using cameras. Such an raw CZI is not supported by libCZI.

Workaround: Open the 1001 CZI in ZEN and save it again. This should work then.

from libczi.

pr4deepr avatar pr4deepr commented on June 4, 2024

Thanks for the comment. It is working now when I resave it using Zen with:

  • Save As or
  • if I use Save As with options and select 'Original' under 'compression'

However, considering that we have 200 to 500 GB datasets, it looks like we have to duplicate them again to make it readable with libCZI!

from libczi.

zeissmicroscopy avatar zeissmicroscopy commented on June 4, 2024

Hi @pr4deepr ,

you mean you can already view and press the "raw" CZI in ZEN blue? AFAIK such an CZI is automatically converted to normal when opening it in ZEN since this special format is only used during "save process" when streaming data from the camera.

Can you elaborate a bit on your workflow:

  • you acquire a CZI and save it to disk using ZEN Black?
  • you open the CZI in ZEN Black or ZEN Blue to check the data?
  • you tried to read the CZI that was already opened and saved in ZEN blue using aicslibCZI --> OK?
  • you tried to read the CZI that was already opened but not saved in ZEN blue using aicslibCZI --> NOK?
  • you tried to read the CZI that was never opened in ZEN blue using aicslibCZI --> NOK?

from libczi.

pr4deepr avatar pr4deepr commented on June 4, 2024

Hi
Thanks for the reply. We use Zen Blue (v 3.4) to acquire the data from the Zeiss lattice, and have Auto-Save enabled. Once the experiment is complete, it is automatically saved as a .czi file. We DO NOT do any resaving after this.

- you open the CZI in ZEN Black or ZEN Blue to check the data?
Using Zen Blue, we can open and check the data fine.
- you tried to read the CZI that was already opened and saved in ZEN blue using aicslibCZI -->
Yes, but it DOES NOT work when we open it using aicslibCZI
- you tried to read the CZI that was already opened but not saved in ZEN blue using aicslibCZI
No, We use Zen Blue for acquisition and saving (auto saving)

As I mentioned, When I open the raw .czi file with Zen Blue, it opens fine. I have to use "Save As" option to save it into a czi format that aicslibCZI can recognise.

If the auto-save is the issue, is it possible to enable a convert to "normal" czi after this?
Thanks again!

Cheers
Pradeep

from libczi.

zeissmicroscopy avatar zeissmicroscopy commented on June 4, 2024

Hi @pr4deepr ,

ok, I think I should have realized that earlier ...

You are talking about CZI data acquired with the Lattice Light Sheet. AFIAK ZEN blue 3.4 should not use this anymore, but apparently there still is an issue so we will check, if this has to do with the AutoSave functionality.

Is there any chance you can give me access to a small CZI file having this problematic RAW compressing from your system?

What happens is you do not use Autosave but just acquire and save normally? Does this CZI work for you? And obviously one could automate the process of re-opening and saving the CZI again (as a workaround).

Best regards, Sebi

from libczi.

zeissmicroscopy avatar zeissmicroscopy commented on June 4, 2024

Hi @pr4deepr ,

the problematic compression should actually not be used in ZEN blue 3.4 anymore? Are the CZIs, that do not open "older" and where acquired with earlier versions of ZEN blue (controlling your LLS)?

Sebi

from libczi.

pr4deepr avatar pr4deepr commented on June 4, 2024

Hi
I havent gotten a chance to check the new files yet. I have been testing this with "older" files acquired with an earlier version of ZEN blue controlling the LLS, where I have been running into trouble.

I'll update this post once I test it using recently acquired files.

Cheers
Pradeep

from libczi.

pr4deepr avatar pr4deepr commented on June 4, 2024

Problematic czi file download

from libczi.

pr4deepr avatar pr4deepr commented on June 4, 2024

Hi
Apologies for this extremely late reply.
I finally got my hand on the new files acquired using the latest version of Zen and I can confirm that it opens without a problem using aicsimageio.
With files from older versions of Zen, I have to resave it as a czi so that it can be recognised by aicsimageio library.

Appreciate the help in this matter

Cheers
Pradeep

from libczi.

zeissmicroscopy avatar zeissmicroscopy commented on June 4, 2024

Feel free to reopen the issue in case of new questions.

from libczi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.