# Processing Images and Video for An Impressionist Effect via PixelFlow

**URL:** https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292
**Category:** Libraries
**Tags:** homework
**Created:** [April 1, 2020, 3:33pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292 "2020-04-01T15:33:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Morais](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morais/32/12152_2.png) [@Morais](https://discourse.processing.org/u/Morais)
#### Post date: [April 1, 2020, 3:33pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292/1 "2020-04-01T15:33:08Z")

</div>

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](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.

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [April 5, 2020, 5:42pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292/2 "2020-04-05T17:42:02Z")

</div>

> [@Morais](#):
>
> on the OpticalFlow\_CaptureSettings file

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

Is that from the PixelFlow library?

---

<div class="post-metadata">

### Author: ![Morais](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morais/32/12152_2.png) [@Morais](https://discourse.processing.org/u/Morais)
#### Post date: [April 5, 2020, 6:09pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292/3 "2020-04-05T18:09:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)
#### Post date: [April 5, 2020, 6:18pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292/4 "2020-04-05T18:18:36Z")

</div>

@Morais There is problem with some of PixelFlow shaders and versions of [processing \> 3.3.7](https://github.com/processing/processing/issues/5806) that you should be aware of as they might bite you.

---

<div class="post-metadata">

### Author: ![Morais](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morais/32/12152_2.png) [@Morais](https://discourse.processing.org/u/Morais)
#### Post date: [April 5, 2020, 8:38pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292/5 "2020-04-05T20:38:04Z")

</div>

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/392859413) + [https://vimeo.com/373827212](https://vimeo.com/373827212) ? I think it is easier to understand my question if you see these examples.

Thank you very much!

---

<div class="post-metadata">

### Author: ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)
#### Post date: [April 6, 2020, 5:57am UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292/6 "2020-04-06T05:57:15Z")

</div>

@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](https://github.com/processing/processing-video/releases/tag/r6-v2.0-beta4). But then you need to give a String with your Camera in Capture setup.

 ![mirror2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/fdec778cceff3932c34e970830cd0c6640868a53.png)  
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):-  
 ![capture](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/77b2074f0de4109670220c789e653948aa44bcba.png)  
Looks something like what you are after?

---

<div class="post-metadata">

### Author: ![Morais](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/morais/32/12152_2.png) [@Morais](https://discourse.processing.org/u/Morais)
#### Post date: [April 6, 2020, 1:04pm UTC](https://discourse.processing.org/t/processing-images-and-video-for-an-impressionist-effect-via-pixelflow/19292/7 "2020-04-06T13:04:21Z")

</div>

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?

 ![Screen Shot 2020-04-06 at 14.02.33](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/42cda47496c028dd03ae7f0fc6958ce41c2065b1.png)
