Giter Club home page Giter Club logo

Comments (2)

atduskgreg avatar atduskgreg commented on July 26, 2024

As I replied to you on my blog post:

That “bottleneck” is that the pixel data needs to get moved inside the PImage’s BufferedImage. It’s not a bottleneck so much as the actual work that’s being done. Since Mats are only headers for existing image data (and that image data is already in memory inside the BufferedImage somewhere) it should theoretically be possible to create a Mat in place without copying the pixel data. This is how the process works in C++, for example in Kyle Mcdonald’s ofxCv. However, I don’t know of any way in Java to access the actual memory location of the image data, either to get that location within the BufferedImage or to set it within the Mat. I’m not the world’s most advanced Java programmer though, so my lack of knowledge of such a method is not proof of its non-existence. I’d be glad to hear of a way to accomplish that, but I couldn’t find one in my research and no one else I contacted knew of one.

from opencv-processing.

jpmanson avatar jpmanson commented on July 26, 2024

Thanks for answer. Hope to help with this in the near future.

from opencv-processing.

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.