milchreis / processing-imageprocessing Goto Github PK
View Code? Open in Web Editor NEWCollection of basic image processing algorithms for processing
License: MIT License
Collection of basic image processing algorithms for processing
License: MIT License
Hello,
I get this error when I want to install it from the Contribution Manager:
Could not download https://github.com/Milchreis/processing-imageprocessing/releases/download/latest/processing-imageprocessing.zip to /tmp/download2801719027574994109processing-imageprocessing.zip : Erreur lors du téléchargement et de l'installation.
Adding marching squares algorithm
Substitute image.get() with pixels[] and load/updatePixels for better performance.
Changing the bright parts of an image.
Image stacking with median and average
The code looks like that:
import milchreis.imageprocessing.*;
import milchreis.imageprocessing.utils.*;
PImage img;
void setup() {
// Images must be in the "data" directory to load correctly
img = loadImage("pawelstulejka.jpg");
}
PImage processedImage = Pixelation.apply(img, 2);
void draw() {
image(img, 0, 0, width, height);
}
When I run it, I get the following error:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at processing.core.PApplet.runSketch(PApplet.java:10852)
at processing.core.PApplet.main(PApplet.java:10620)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
RuntimeException: java.lang.reflect.InvocationTargetException
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at processing.core.PApplet.runSketch(PApplet.java:10846)
... 1 more
Caused by: java.lang.NullPointerException
at milchreis.imageprocessing.Pixelation.apply(Unknown Source)
at photoEditor2.<init>(photoEditor2.java:30)
... 6 more
Can someone please help me?
How to implementation in android using Gradle or maven?
When unavailable, can you guide how to import jar file maybe.?
Hi, I just installed this library into Processing 4.0.1, the library version reported in Contribution Manager is 1.7.0
As soon as I installed the library I got the following message in the console output:
The version number for “Image processing algorithms” is not a number. Please contact the author to fix it according to the guidelines.
So, here I am contacting the author! 🙂
Hello!
Thanks for the wonderful and well-made Processing library!
It's very useful for static images and perhaps will be enough for most use cases.
I work with running Processing on Raspberry Pi and was wondering if the same functions could be implemented by using video card accelerated language such as GLSL. The main advantage of using GLSL filters would be that all of these effects could be ran at 50-60 fps on almost any hardware that has a GPU.
Let me know if you would be interested in hearing more or if you want to have a discussion about that. Thanks!
Changing the brightness in the dark parts of an image.
Can I load PImage
by base64 and save PImage
into base64?
Saturation.apply(PImage image, float shift); // -1.0 <= shift <= 1.0
The ColorShift-Implementation could used therefor.
Can I convert PImage into bitmap or Bitmap into PImage?
Map an image to a use given color palette
Adding the sabattier effect, mentioned in processing discourse:
https://discourse.processing.org/t/sabattier-effect-in-processing/21553/7
Adding a haftone algorithm
While trying to use Flip , the new image contained a black border on one or both sides.
I found the problem in this routine in Flip.java:
int newx = horizonal ? image.width - x : x;
int newy = vertical ? image.height - y : y;
When I changed the code to this:
int newx = horizonal ? (image.width - x) - 1 : x;
int newy = vertical ?( image.height - y ) - 1: y;
the problem was eliminated.
If you look closely at your example you can see the error.
Josh Prokop
thanks for this library, its cool.
I ran into something - if I set pixelDensity(displayDensity());
in my sketch to work in HiDPI , seems that the imageprocessing library might not be compatible, it throws a lot of exceptions with TiltShift , Threshold, etc.
Do I need to set something in the constructor?
I failed to find the tool, can you give the link?
Transform a selected color area by the hue value in a brighter or darker tone.
Made from lines algorithm:
https://github.com/Milchreis/madeFromLines
Contribution Manager is still pulling the 1.5.1 release because its sources.conf points to the attachment at "latest":
Right now, 1.5.1 is the "latest" release created through the GitHub releases tab -- 1.6.0 is tag-only, and so it is not on the "latest" url and doesn't have the txt attachment url.
Creating a 1.6.0 release on GitHub with the proper .txt and .zip attachments will make the new release available through for Contributions Manager.
Converting an image to the hue values for better color tracking possibilities
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.