<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
      <title>Tagged with listpaths() - Processing 2.x and 3.x Forum</title>
      <link>https://forum.processing.org/two/discussions/tagged/feed.rss?Tag=listpaths%28%29</link>
      <pubDate>Sun, 08 Aug 2021 20:22:31 +0000</pubDate>
         <description>Tagged with listpaths() - Processing 2.x and 3.x Forum</description>
   <language>en-CA</language>
   <atom:link href="/two/discussions/taggedlistpaths%28%29/feed.rss" rel="self" type="application/rss+xml" />
   <item>
      <title>Converting File[] to ArrayList</title>
      <link>https://forum.processing.org/two/discussion/26878/converting-file-to-arraylist</link>
      <pubDate>Fri, 16 Mar 2018 12:59:03 +0000</pubDate>
      <dc:creator>noel</dc:creator>
      <guid isPermaLink="false">26878@/two/discussions</guid>
      <description><![CDATA[<p>Hi, I've tested in several ways this conversion and the most logical way, seems to me would be by iterating, but it gives the error:</p>

<p>The method add(String) in the type ArrayList is not applicable for the arguments (File)</p>

<p>How to do this, thanks.</p>

<pre><code>ArrayList&lt;String&gt; alfiles = new ArrayList&lt;String&gt;();
File[] files = f.listFiles();
for (File each : files) alfiles.add(each);
</code></pre>
]]></description>
   </item>
   <item>
      <title>Combining two pieces of code</title>
      <link>https://forum.processing.org/two/discussion/23471/combining-two-pieces-of-code</link>
      <pubDate>Sun, 16 Jul 2017 22:10:31 +0000</pubDate>
      <dc:creator>daddydean</dc:creator>
      <guid isPermaLink="false">23471@/two/discussions</guid>
      <description><![CDATA[<p>Hey there,<br />
Im trying to combine an image segmentation code with another piece of code that takes the segments from the image segmentation and applies them to a different image.  I need some help to figure out how to automate the process.</p>

<p>SKETCH 1<br />
The image segmentation code is: <a href="https://pastebin.com/0sKxKJDF" target="_blank" rel="nofollow">https://pastebin.com/0sKxKJDF</a><br />
The two codes im running in processing are:<br />
<a href="https://pastebin.com/wd3Fk9Xn" target="_blank" rel="nofollow">https://pastebin.com/wd3Fk9Xn</a><br />
and <a href="https://github.com/GoToLoop/command/blob/patch-1/src/deadpixel/command/Command.java" target="_blank" rel="nofollow">https://github.com/GoToLoop/command/blob/patch-1/src/deadpixel/command/Command.java</a><br />
which looks like: <a href="http://imgur.com/a/ggPNb" target="_blank" rel="nofollow">http://imgur.com/a/ggPNb</a><br />
The image I am using currently is:  <a href="http://imgur.com/a/87ybb" target="_blank" rel="nofollow">http://imgur.com/a/87ybb</a><br />
Since the image segmentation code is written in Python, I needed to download the Python libraries Scipy, Numpy, Matplotlib and Scikit from <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" target="_blank" rel="nofollow">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a></p>

<p>SKETCH 2<br />
This is the code that I need to take the segments created and assign them to another image of my choice:<br />
<a href="https://pastebin.com/Cs4FfhTV" target="_blank" rel="nofollow">https://pastebin.com/Cs4FfhTV</a><br />
The idea I had was for all the segments that are created by sketch 1 to go into the data folder in sketch 2 and they would be assigned to my image.  Right now sketch 2 looks like:  <a href="http://imgur.com/a/UUSx3" target="_blank" rel="nofollow">http://imgur.com/a/UUSx3</a>  with the data folder being empty.<br />
The image I am currently using is:  <a href="http://imgur.com/a/3XYzJ" target="_blank" rel="nofollow">http://imgur.com/a/3XYzJ</a></p>

<p>I need to figure out some way to automate the image container process in sketch 2, so that it takes a certain amount of segments from sketch 1.<br />
I would like to move sketch 2 into sketch 1, so they just become one sketch file.</p>

<p>Right now If I manually take just the first three of the segments from sketch 1 and put them in the sketch 2 data folder I come up with this final product:  <a href="http://imgur.com/a/sIZuA" target="_blank" rel="nofollow">http://imgur.com/a/sIZuA</a><br />
Which doesnt quite look right because I haven't figured out how to scale back and overlap the segments either, and it appears to assign the segments to the white area of the image as well.</p>

<p>Any ideas?<br />
:3</p>
]]></description>
   </item>
   <item>
      <title>PYTHON - Load random images from a folder without knowing the file name.</title>
      <link>https://forum.processing.org/two/discussion/24768/python-load-random-images-from-a-folder-without-knowing-the-file-name</link>
      <pubDate>Fri, 27 Oct 2017 15:03:55 +0000</pubDate>
      <dc:creator>KeirMeDear</dc:creator>
      <guid isPermaLink="false">24768@/two/discussions</guid>
      <description><![CDATA[<p>I'm wanting to make a system where one sketch creates an image and sends it into a folder where a second sketch randomly selects and loads one of the images in the folder. I know how to load images but how would I do it without knowing the file name.</p>

<p>(I'm also coding in python not js)</p>
]]></description>
   </item>
   <item>
      <title>Executing python 3 code from within processing</title>
      <link>https://forum.processing.org/two/discussion/23324/executing-python-3-code-from-within-processing</link>
      <pubDate>Wed, 05 Jul 2017 17:16:27 +0000</pubDate>
      <dc:creator>daddydean</dc:creator>
      <guid isPermaLink="false">23324@/two/discussions</guid>
      <description><![CDATA[<p>Hello!<br />
I'd like to integrate this code which is written in Python into my current code but im not sure how to go about it since the script is in Python 3:<br />
<a href="https://github.com/alex-parker/CenturyOfTheSun/pull/1/commits/ed50abc1dce0f88e4e517109910bc4d52dbd6079?diff=unified" target="_blank" rel="nofollow">https://github.com/alex-parker/CenturyOfTheSun/pull/1/commits/ed50abc1dce0f88e4e517109910bc4d52dbd6079?diff=unified</a><br />
Is there a way I could execute this script using processing?<br />
I know Jython only supports up to 2.7, so im trying to find a workaround.<br />
:)</p>
]]></description>
   </item>
   <item>
      <title>Blocking version of selectFolder()</title>
      <link>https://forum.processing.org/two/discussion/23385/blocking-version-of-selectfolder</link>
      <pubDate>Mon, 10 Jul 2017 04:40:44 +0000</pubDate>
      <dc:creator>paulbourke</dc:creator>
      <guid isPermaLink="false">23385@/two/discussions</guid>
      <description><![CDATA[<p>As per the subject, is there a way to create a blocking version of selectFolder()?
I want to ask for the folder of images in setup(), it doesn't make sense to proceed without that directory.</p>
]]></description>
   </item>
   </channel>
</rss>