Code Monkey home page Code Monkey logo

Comments (4)

ptahmose avatar ptahmose commented on June 17, 2024

Please see the discussion here - this seems to be the same topic.

from libczi.

dimin avatar dimin commented on June 17, 2024

Thank you for the detailed answer. Although I can understand why the reported size is reported as such I would consider that a bug. There is only one image size in pixels independent of how data storage is organized. When pyramidal levels are computed from this original size there's no ambiguity on their sizes nor to what the original size is. Moreover, the correct size is reported by the Zen software as well as embedded meta-data.

I can submit a fix pull-request if you decide this is an issue. Otherwise I'll be using my own block enumeration and image statistics for now.

from libczi.

ptahmose avatar ptahmose commented on June 17, 2024

I chose to extend "SubBlockStatistics" in order to provide both size-definitions - because both are reasonable and both are in use. It is conceivable to have files without any layer0-subblocks at all, so relying only on layer0-subblocks is not sufficient.

from libczi.

dimin avatar dimin commented on June 17, 2024

That sounds like a great solution for the problem! Thank you!

I'm guessing the no layer 0 image is a degenerate case that is possible in format but unlikely to happen, do you have any situations when that is needed? I would feel that in that case the highest resolution available effectively is level-0 and should be stored as such, pixel resolution parameters should be adjusted along with objective magnification and other metadata and the image would be completely valid.

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.