<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Job_Jar%2FStreamline_boolean_ROI_selection_program</id>
	<title>Job Jar/Streamline boolean ROI selection program - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://vrl.cs.brown.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=Job_Jar%2FStreamline_boolean_ROI_selection_program"/>
	<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Job_Jar/Streamline_boolean_ROI_selection_program&amp;action=history"/>
	<updated>2026-04-21T11:11:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=Job_Jar/Streamline_boolean_ROI_selection_program&amp;diff=3992&amp;oldid=prev</id>
		<title>Jadrian Miles: /* Command Line Options */</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Job_Jar/Streamline_boolean_ROI_selection_program&amp;diff=3992&amp;oldid=prev"/>
		<updated>2010-01-26T23:14:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Command Line Options&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:14, 26 January 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l9&quot;&gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Command Line Options ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Command Line Options ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The design of the command line options for this program will be very important.  The Unix &quot;&amp;lt;tt&amp;gt;find&amp;lt;/tt&amp;gt;&quot; utility has a simple syntax for specifying boolean operations as command-line arguments, but it can be unwieldy and has weird escaping problems.  Another option might be to first specify the streamline collection, then a list of ROIs, and then a simple text string with boolean operations among the ROIs, which are named by the order in which they were specified; &#039;&#039;e.g.&#039;&#039; &amp;lt;code&amp;gt;&quot;(1 | &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/del&gt;) &amp;amp; !&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/del&gt;&quot;&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The design of the command line options for this program will be very important.  The Unix &quot;&amp;lt;tt&amp;gt;find&amp;lt;/tt&amp;gt;&quot; utility has a simple syntax for specifying boolean operations as command-line arguments, but it can be unwieldy and has weird escaping problems.  Another option might be to first specify the streamline collection, then a list of ROIs, and then a simple text string with boolean operations among the ROIs, which are named by the order in which they were specified; &#039;&#039;e.g.&#039;&#039; &amp;lt;code&amp;gt;&quot;(1 | &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;3&lt;/ins&gt;) &amp;amp; !&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;2&lt;/ins&gt;&quot;&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROIs are typically specified either as rectangular prisms (by the coordinates of two opposite corners), spheres (by a radius and the coordinates of the center), or binary masks (raster images in [[NIfTI]] format, in which each voxel has a value 0 [&amp;#039;&amp;#039;&amp;#039;not in&amp;#039;&amp;#039;&amp;#039;] or 1 [&amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039;]).  One additional difficulty is that collections of masks are sometimes specified by indices in a raster image: a value of 0 means &amp;quot;not in any ROI&amp;quot;, a value of 1 means &amp;quot;in ROI 1&amp;quot;, a value of 2 means &amp;quot;in ROI 2&amp;quot;, and so on.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ROIs are typically specified either as rectangular prisms (by the coordinates of two opposite corners), spheres (by a radius and the coordinates of the center), or binary masks (raster images in [[NIfTI]] format, in which each voxel has a value 0 [&amp;#039;&amp;#039;&amp;#039;not in&amp;#039;&amp;#039;&amp;#039;] or 1 [&amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039;]).  One additional difficulty is that collections of masks are sometimes specified by indices in a raster image: a value of 0 means &amp;quot;not in any ROI&amp;quot;, a value of 1 means &amp;quot;in ROI 1&amp;quot;, a value of 2 means &amp;quot;in ROI 2&amp;quot;, and so on.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jadrian Miles</name></author>
	</entry>
	<entry>
		<id>http://vrl.cs.brown.edu/wiki/index.php?title=Job_Jar/Streamline_boolean_ROI_selection_program&amp;diff=3986&amp;oldid=prev</id>
		<title>Jadrian Miles: New page: This Job Jar task is to create a non-interactive command-line program that reads in a collection of streamlines, one or more regions of interest (ROIs; more ...</title>
		<link rel="alternate" type="text/html" href="http://vrl.cs.brown.edu/wiki/index.php?title=Job_Jar/Streamline_boolean_ROI_selection_program&amp;diff=3986&amp;oldid=prev"/>
		<updated>2010-01-26T20:49:14Z</updated>

		<summary type="html">&lt;p&gt;New page: This Job Jar task is to create a non-interactive command-line program that reads in a &lt;a href=&quot;/wiki/index.php/Job_Jar/Streamline_library&quot; title=&quot;Job Jar/Streamline library&quot;&gt;collection of streamlines&lt;/a&gt;, one or more regions of interest (ROIs; more ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This Job Jar task is to create a non-interactive command-line program that reads in a [[Job Jar/Streamline library|collection of streamlines]], one or more regions of interest (ROIs; more on these below), and a description of boolean operations among the ROIs, and outputs the resulting subset of streamlines.&lt;br /&gt;
&lt;br /&gt;
=== ROIs ===&lt;br /&gt;
&lt;br /&gt;
An ROI is a binary partitioning of space: for a given ROI, every point in space either is &amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039; the ROI, or &amp;#039;&amp;#039;&amp;#039;not in&amp;#039;&amp;#039;&amp;#039; it.  For example, you could specify an ROI as a cube with two corners at (0,0,0) and (1,1,1); every point inside the cube (including its boundary) is &amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039; the ROI; every other point is &amp;#039;&amp;#039;&amp;#039;not in&amp;#039;&amp;#039;&amp;#039; the ROI.  Another example of an ROI specification is a binary mask, in which every point in a discretized space is labeled as either 0 (&amp;#039;&amp;#039;&amp;#039;not in&amp;#039;&amp;#039;&amp;#039;) or 1 (&amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
&lt;br /&gt;
A streamline for which any point on it is &amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039; a given ROI is said to &amp;quot;pass through&amp;quot; that ROI.  What this program should do is create a [[Job Jar/Streamline library|collection]] of every streamline that passes through the specified ROIs according to the given boolean operations on them.  For example, if the user specifies streamline set &amp;#039;&amp;#039;Q&amp;#039;&amp;#039; and the operation &amp;quot;&amp;#039;&amp;#039;ROI_A&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;and&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;ROI_B&amp;#039;&amp;#039;&amp;quot;, then the result should be all those streamlines in &amp;#039;&amp;#039;Q&amp;#039;&amp;#039; that pass through &amp;#039;&amp;#039;ROI_A&amp;#039;&amp;#039; and not &amp;#039;&amp;#039;ROI_B&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Command Line Options ===&lt;br /&gt;
&lt;br /&gt;
The design of the command line options for this program will be very important.  The Unix &amp;quot;&amp;lt;tt&amp;gt;find&amp;lt;/tt&amp;gt;&amp;quot; utility has a simple syntax for specifying boolean operations as command-line arguments, but it can be unwieldy and has weird escaping problems.  Another option might be to first specify the streamline collection, then a list of ROIs, and then a simple text string with boolean operations among the ROIs, which are named by the order in which they were specified; &amp;#039;&amp;#039;e.g.&amp;#039;&amp;#039; &amp;lt;code&amp;gt;&amp;quot;(1 | 2) &amp;amp; !3&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
ROIs are typically specified either as rectangular prisms (by the coordinates of two opposite corners), spheres (by a radius and the coordinates of the center), or binary masks (raster images in [[NIfTI]] format, in which each voxel has a value 0 [&amp;#039;&amp;#039;&amp;#039;not in&amp;#039;&amp;#039;&amp;#039;] or 1 [&amp;#039;&amp;#039;&amp;#039;in&amp;#039;&amp;#039;&amp;#039;]).  One additional difficulty is that collections of masks are sometimes specified by indices in a raster image: a value of 0 means &amp;quot;not in any ROI&amp;quot;, a value of 1 means &amp;quot;in ROI 1&amp;quot;, a value of 2 means &amp;quot;in ROI 2&amp;quot;, and so on.&lt;br /&gt;
&lt;br /&gt;
=== Development Notes ===&lt;br /&gt;
&lt;br /&gt;
For an initial version of this program, it would be sufficient to only support one type of ROI specification, as long as the software (and command-line interface) were designed for extensibility for future support of all others listed above.&lt;br /&gt;
&lt;br /&gt;
[[Jadrian]] proposed this job and could collaborate to design the command line options.&lt;br /&gt;
&lt;br /&gt;
=== Dependencies ===&lt;br /&gt;
This job depends on the completion of [[Job Jar/Streamline library]].&lt;/div&gt;</summary>
		<author><name>Jadrian Miles</name></author>
	</entry>
</feed>