Coder Social home page Coder Social logo

Comments (5)

cansik avatar cansik commented on May 15, 2024

As far as I know they reimplemented the PImage class to remove dependencies to AWT. And not all methods have been implemented yet. This breaks a lot of sketches.

What we could do is resize the final image with OpenCV instead of Processing. Will have a look later.

from deep-vision-processing.

cansik avatar cansik commented on May 15, 2024

Here the information from Processing4:

/**
 *
 * Resize the image to a new width and height. To make the image scale
 * proportionally, use 0 as the value for the <b>wide</b> or <b>high</b>
 * parameter. For instance, to make the width of an image 150 pixels, and
 * change the height using the same proportion, use resize(150, 0).<br />
 * <br />
 * Even though a PGraphics is technically a PImage, it is not possible to
 * rescale the image data found in a PGraphics. (It's simply not possible
 * to do this consistently across renderers: technically infeasible with
 * P3D, or what would it even do with PDF?) If you want to resize PGraphics
 * content, first get a copy of its image data using the <b>get()</b>
 * method, and call <b>resize()</b> on the PImage that is returned.
 *
 * @webref pimage:method
 * @webBrief Resize the image to a new width and height.
 * @usage web_application
 * @param w the resized image width
 * @param h the resized image height
 * @see PImage#get(int, int, int, int)
 */
public void resize(int w, int h) {  // ignore
  throw new RuntimeException("resize() not implemented for this PImage type");
}

from deep-vision-processing.

cansik avatar cansik commented on May 15, 2024

I fixed it in release 0.6.1.
Would be great if you could test it and give a quick feedback.

from deep-vision-processing.

brad-miller avatar brad-miller commented on May 15, 2024

from deep-vision-processing.

cansik avatar cansik commented on May 15, 2024

Ok great, I am working on integrating Midas 2.1 small which should run with 8 FPS at least. But that's a future topic.

from deep-vision-processing.

Related Issues (19)

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.