Redux » History » Version 5
Jim Pulokas, 07/13/2011 10:45 AM
1 | 3 | Jim Pulokas | h1. redux |
---|---|---|---|
2 | 2 | Jim Pulokas | |
3 | 3 | Jim Pulokas | redux is a library for loading an image, doing some basic processing and generating a viewable image. |
4 | 1 | Jim Pulokas | |
5 | 3 | Jim Pulokas | !redux_basic_idea.png! |
6 | |||
7 | 4 | Jim Pulokas | h2. Goals |
8 | |||
9 | 1 | Jim Pulokas | * simple to use python library |
10 | * simple to use network daemon that can answer requests for an image and the pipeline of processing to do on it |
||
11 | * simple to use command line client that uses either the network daemon or locally imported python library to do processing |
||
12 | * complex behind-the-scenes result caching |
||
13 | |||
14 | 4 | Jim Pulokas | h2. Potential uses |
15 | |||
16 | 1 | Jim Pulokas | * a command line program like xv or imagemagick to view myami images and generate publication quality results |
17 | * preparing image for display in Leginon, including contrast adjustments, binning, power spectrum, etc |
||
18 | * any functions in leginon/appion where you need to either bin or calculate power spectrum |
||
19 | * preparing image for display on web pages. web server can contact redux server. this can replace php-mrc module which no longer compiles with php > 5.2 |
||
20 | 4 | Jim Pulokas | |
21 | h2. Current design as of 5/12/2011 |
||
22 | 3 | Jim Pulokas | |
23 | !redux_more_detail.png! |
||
24 | 5 | Jim Pulokas | |
25 | h2. New Ideas as of 7/13/2011 |
||
26 | |||
27 | Investigating "gstreamer":http://gstreamer.freedesktop.org as a framework on which to build redux. gstreamer allows plugins called "elements" to be connected together to form a pipeline or graph that does multimedia processing. Here is an example application built using the command line program "gst-launch": |
||
28 | <pre>gst-launch filesrc location=example.png ! pngdec ! jpegenc ! filesink location=test.jpg</pre> |