Processing Images and Video for An Impressionist Effect via PixelFlow

Hello everybody,

I am not a English native and also I am new on Processing.
I am trying to find some help to learn how to change the parameters of the stroke line (thickness, brushlike form, orientation of the line. etc) on the OpticalFlow_CaptureSettings file and I found this article which was very claryfing: https://www.cs.princeton.edu/courses/archive/fall00/cs597b/papers/litwinowicz97.pdf but I don’t know how to do it, I’ve changed these (int sx, sy, px, py, oy;) but without getting the desired result. If it is too hard for me maybe I can at least learn something which I’ll appreciate. Thank you very much.

1 Like

From what library is this? That isn’t part of basic Processing.

Is that from the PixelFlow library?

Yes Jeremy, it is from Is that from the PixelFlow library.

@Morais There is problem with some of PixelFlow shaders and versions of processing > 3.3.7 that you should be aware of as they might bite you.

1 Like

Thank you for the tip.

Regarding this stuff (see PDF in my post) - is there any alternative way to do this? I have been using Mirror (Processing Example inside Libraries/Capture/Mirror) to do some things with the pixels. For example, instead of using squares(pixels), I can use curve, bezier, arc, etc… with different stroke parameters and so on. But in this case (Mirror sketch) I have a different problem: how can I give some degree of freedom to those pixels? Is it possible to organize them or animate them as in these two examples: https://vimeo.com/392859413 + https://vimeo.com/373827212 ? I think it is easier to understand my question if you see these examples.

Thank you very much!

1 Like

@Morais I assume you have overcome the GStreamer version issues with vanilla processing capture examples. For linux at least the current video library is useless, and I found I need to install the beta version. But then you need to give a String with your Camera in Capture setup.


Now you need to try the PixelFlow examples with your camera, may’be you’ll be lucky (it seems at least that this sketch is not affected by shader issues with PixelFlow library):-

Looks something like what you are after?

1 Like

Thank you for your help.
Sorry if I gave the impression that the PixelFlow library didn’t work for me- that part works just fine (see first image below).

The examples I sent on vimeo appear to have patterns that are non-linear within the contours of the form/image (see 2nd image below). I am interested to know if there is a way to produce this kind of effect.
Do you think it’s possible to get from Image 1 to Image 2 within PixelFlow library?