<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Filtering images</title><link>https://sourceforge.net/p/mia/wiki/Filtering%2520images/</link><description>Recent changes to Filtering images</description><atom:link href="https://sourceforge.net/p/mia/wiki/Filtering%20images/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 22 Feb 2013 16:26:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/mia/wiki/Filtering%20images/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage Filtering images modified by Gert Wollny</title><link>https://sourceforge.net/p/mia/wiki/Filtering%2520images/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -53,4 +53,4 @@
 1. Each file is filtered individually by using [mia-2dimagefilterstack](http://mia.sourceforge.net/userref/Secmia2dimagefilterstack.html) or [mia-3dimagefilterstack](http://mia.sourceforge.net/userref/Secmia3dimagefilterstack.html) respectively.
 2. A series of ND images is interpreted as a (N+1)D image. This is currently only implemented for series of 2D images with the program [mia-2dstackfilter](http://mia.sourceforge.net/userref/Secmia2dstackfilter.html).

-In both cases the image files must be numbered consecutively.
+In both cases the image files must be numbered consecutively (see [Interpreting file series]).
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gert Wollny</dc:creator><pubDate>Fri, 22 Feb 2013 16:26:32 -0000</pubDate><guid>https://sourceforge.net98857cbf64619e110566a0e780172c6dd1262b8d</guid></item><item><title>WikiPage Filtering images modified by Gert Wollny</title><link>https://sourceforge.net/p/mia/wiki/Filtering%2520images/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,7 +1,13 @@
+[TOC]
+
+#Intro
+
 MIA supports the filtering of 2D images, 3D images, and series of 2D images interpreted as 3D images. 
 The syntax for filtering a single 2D or 3D images is, essentially, the same, only the program that needs to be called it either [mia-2dimagefilter](http://mia.sourceforge.net/userref/Secmia2dimagefilter.html) or [mia-3dimagefilter](http://mia.sourceforge.net/userref/Secmia3dimagefilter.html). The set of supported filters is different, you may consult the availabe [2D filters](http://mia.sourceforge.net/userref/SecPlugintype2dimagefilter.html) and [3d filters](http://mia.sourceforge.net/userref/SecPlugintype3dimagefilter.html).

 To understand the syntax of the filter specifications, you might first consult the [Guide to plugin specification]. 
+
+

 # Single image filter 

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gert Wollny</dc:creator><pubDate>Fri, 22 Feb 2013 16:07:03 -0000</pubDate><guid>https://sourceforge.net2affb40a762e43f6931a0a2124b692d88dbfcc07</guid></item><item><title>WikiPage Filtering images modified by Gert Wollny</title><link>https://sourceforge.net/p/mia/wiki/Filtering%2520images/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -33,12 +33,13 @@
     mia-2dimagefilter -i input.png -o output.png median:w=1 tee:file=temp.@ \
        binarize:min=100,max=200 close mask:input=temp.@

-Here, the input image is filtered by using a median filter, then the result is stored in the internal storage (this is indicated by the suffix **.@**), and after running a binarization and morphological closing, the so obtained mask is applied to the median filtered image loaded from the internal storage. Note however, if a plug.in loads a file (like the mask filter above), and this file has to be read from the disk, then it will be read immediately. a construct like 
+Here, the input image is filtered by using a median filter, then the result is stored in the internal storage (this is indicated by the suffix **.@**), and after running a binarization and morphological closing, the so obtained mask is applied to the median filtered image loaded from the internal storage. 
+
+Note however, it is **not** possible to save the file to disk and then load it in the same call to mia-2dimagefilter, i.e. in the following command, the mask filter will try to load *temp.png* right away, before the *tee* filter will store it.  

     :::bash 
     mia-2dimagefilter -i input.png -o output.png tee:file=temp.png mask:input=temp.png

-is **not** possible. 

 # Running filters on multiple files

@@ -47,6 +48,3 @@
 2. A series of ND images is interpreted as a (N+1)D image. This is currently only implemented for series of 2D images with the program [mia-2dstackfilter](http://mia.sourceforge.net/userref/Secmia2dstackfilter.html). 

 In both cases the image files must be numbered consecutively.
-
-   
-
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gert Wollny</dc:creator><pubDate>Fri, 22 Feb 2013 16:05:50 -0000</pubDate><guid>https://sourceforge.net466049dcc507f77eb5f9e5c6b91edcea3fb4106b</guid></item><item><title>WikiPage Filtering images modified by Gert Wollny</title><link>https://sourceforge.net/p/mia/wiki/Filtering%2520images/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -3,7 +3,11 @@

 To understand the syntax of the filter specifications, you might first consult the [Guide to plugin specification]. 

+# Single image filter 
+
 In the following the examples for filtering a single images are given for 2D images. 
+
+## Running one filter 

 The simplest case, running only one filter, is done like: 

@@ -14,7 +18,35 @@

 Note, the output file format must support the pixel type of the filter output. Currently, this will only be checked when the file is actually saved (see also [tickets:#5]). 

+## Specifying a filter chain 

+Filters can be chained on the command line, e.g to run a median filter followed by a binarization run: 

+    :::bash 
+    mia-2dimagefilter -i input.png -o output.png median:w=1 binarize:min=100,max=200

+## Re-using output of earlier filters later in the pipeline

+It is also possible to store the result within the filter chain and reload it later, e.g.  
+
+    :::bash 
+    mia-2dimagefilter -i input.png -o output.png median:w=1 tee:file=temp.@ \
+       binarize:min=100,max=200 close mask:input=temp.@ 
+
+Here, the input image is filtered by using a median filter, then the result is stored in the internal storage (this is indicated by the suffix **.@**), and after running a binarization and morphological closing, the so obtained mask is applied to the median filtered image loaded from the internal storage. Note however, if a plug.in loads a file (like the mask filter above), and this file has to be read from the disk, then it will be read immediately. a construct like 
+
+    :::bash 
+    mia-2dimagefilter -i input.png -o output.png tee:file=temp.png mask:input=temp.png
+
+is **not** possible. 
+
+# Running filters on multiple files
+
+Two options are available to run filters on multiple files: 
+1. Each file is filtered individually by using [mia-2dimagefilterstack](http://mia.sourceforge.net/userref/Secmia2dimagefilterstack.html) or [mia-3dimagefilterstack](http://mia.sourceforge.net/userref/Secmia3dimagefilterstack.html) respectively.
+2. A series of ND images is interpreted as a (N+1)D image. This is currently only implemented for series of 2D images with the program [mia-2dstackfilter](http://mia.sourceforge.net/userref/Secmia2dstackfilter.html). 
+
+In both cases the image files must be numbered consecutively.
+
+   
+
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gert Wollny</dc:creator><pubDate>Fri, 22 Feb 2013 16:03:07 -0000</pubDate><guid>https://sourceforge.net16d686e88672954656b0d3e4fc004fc194306087</guid></item><item><title>WikiPage Filtering images modified by Gert Wollny</title><link>https://sourceforge.net/p/mia/wiki/Filtering%2520images/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;MIA supports the filtering of 2D images, 3D images, and series of 2D images interpreted as 3D images. &lt;br /&gt;
The syntax for filtering a single 2D or 3D images is, essentially, the same, only the program that needs to be called it either &lt;a class="" href="http://mia.sourceforge.net/userref/Secmia2dimagefilter.html"&gt;mia-2dimagefilter&lt;/a&gt; or &lt;a class="" href="http://mia.sourceforge.net/userref/Secmia3dimagefilter.html"&gt;mia-3dimagefilter&lt;/a&gt;. The set of supported filters is different, you may consult the availabe &lt;a class="" href="http://mia.sourceforge.net/userref/SecPlugintype2dimagefilter.html"&gt;2D filters&lt;/a&gt; and &lt;a class="" href="http://mia.sourceforge.net/userref/SecPlugintype3dimagefilter.html"&gt;3d filters&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To understand the syntax of the filter specifications, you might first consult the &lt;span&gt;[Guide to plugin specification]&lt;/span&gt;. &lt;/p&gt;
&lt;p&gt;In the following the examples for filtering a single images are given for 2D images. &lt;/p&gt;
&lt;p&gt;The simplest case, running only one filter, is done like: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;mia-2dimagefilter -i input.png -o output.v convert:map&lt;span class="o"&gt;=&lt;/span&gt;linear,repn&lt;span class="o"&gt;=&lt;/span&gt;float,a&lt;span class="o"&gt;=&lt;/span&gt;1.5,b&lt;span class="o"&gt;=&lt;/span&gt;-20
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Here, the input image is a PNG image, with 8 or 16 bit unsigned pixel values, and each pixel &lt;em&gt;x&lt;/em&gt; is converted to a floating point valued pixel by applying a linear mapping according to &lt;em&gt;1.5 x - 20&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Note, the output file format must support the pixel type of the filter output. Currently, this will only be checked when the file is actually saved (see also &lt;a class="alink" href="/p/mia/tickets/5/"&gt;[tickets:#5]&lt;/a&gt;). &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gert Wollny</dc:creator><pubDate>Fri, 22 Feb 2013 13:52:03 -0000</pubDate><guid>https://sourceforge.net30a54e7449b63886f2749174a6c41fe9c4f8ba07</guid></item></channel></rss>