GithubHelp home page GithubHelp logo

Comments (5)

william-silversmith avatar william-silversmith commented on July 22, 2024

With regards to allowing binary images represented as std::vector<bool>, this is simple to do through the C++ interface, but may require copy-pasting a lot of code (ugly). It's not so simple to do through the Cython interface. If there's demand for this, let me know, but it should be pretty easy to just change some declarations to const std::vector<bool> &in_labels in a few places if that's what you need.

from connected-components-3d.

william-silversmith avatar william-silversmith commented on July 22, 2024

https://pypi.org/project/bitarray/

from connected-components-3d.

william-silversmith avatar william-silversmith commented on July 22, 2024

Previously, playing around with bit packing was sure to reduce performance and not really significantly reduce memory because of the output image and union find. However, after zeroth pass was implemented bit packing can save 20% (uint32) to 40% (for uint16) on peak memory. Might be worth looking into.

from connected-components-3d.

william-silversmith avatar william-silversmith commented on July 22, 2024

Looks like std::bitset and std::vector would be annoying to work with in different respects. Will have to write own bit accessor class that accepts a byte string with zero parsing.

from connected-components-3d.

william-silversmith avatar william-silversmith commented on July 22, 2024

Might be able to do something with np.packbits

from connected-components-3d.

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.