Coder Social home page Coder Social logo

Fast model of CCellularGridND about dgtal HOT 4 OPEN

dgtal-team avatar dgtal-team commented on June 12, 2024
Fast model of CCellularGridND

from dgtal.

Comments (4)

JacquesOlivierLachaud avatar JacquesOlivierLachaud commented on June 12, 2024 1

In fact, in my former "digital" library "Imagene", there was a compact (and somewhat faster) model of KhalimskySpaceND. The idea was simply, if you have a bounded domain, to encode all information describing a cell (topology + coordinates) as some 32 bits or 64 bits integer. Then, set of cells (for instance with same dimension) could be encoded as bitsets. Another advantage was that the sign+topology was coded as a (d+1)-bit word, so incidence relations were precomputed as LUT.
So this issue is related to back porting this model of CCellularGridSpaceND into DGtal.
In fact, there is (an old) branch on my repository FastKSpace
https://github.com/JacquesOlivierLachaud/DGtal/tree/FastKSpace
where this is done...
The only problem is that this approach is efficient if you encode the digital sets as bit sets, which was not done at the time. I am afraid also that this branch is no more mergeable due to the improvements made by Roland to have "Unbounded" and "Toric" KSpaces.

from dgtal.

phcerdan avatar phcerdan commented on June 12, 2024

Asking here out of curiosity. What is the difference between KnSpace and the current Khalimsky Space? Where is the bottle neck in current implementation of K-Spaces? And... more generally: is there any "winner" in terms of computational efficiency for a data structure for Cellular Grids and/or Cubical Complexes? I find the literature a little bit too vast to form a clearer idea on this. So asking for insight here.

I am pretty sure the following idea has been explored before, but, what is your opinion on ND cellular complexes in an image grid, which have the occupancy of lower dimension cells encoded in a bitset?
There are 26 lower-dimension cells in a voxel (8 points, 12 edges, 6 faces) plus the d-cell voxel itself.

Maybe it is not superflexible, neither generic for dimensions greater than 3, but it seems... compact.

Anyway, just thinking out-loud, sorry to invade this issue! @dcoeurjo @rolanddenis

from dgtal.

phcerdan avatar phcerdan commented on June 12, 2024

As a reference to what you were illustrating, I link this paper of yours in arxiv: https://arxiv.org/pdf/0906.2767.pdf

And also your branch FastKSpace, but rebased on top of current master: https://github.com/phcerdan/DGtal/tree/fast_kspace

from dgtal.

JacquesOlivierLachaud avatar JacquesOlivierLachaud commented on June 12, 2024

Thanks for the link and the rebase.

from dgtal.

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.