summaryrefslogtreecommitdiffstats
path: root/docs/tools.rst
diff options
context:
space:
mode:
authorMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-07-11 11:06:28 +0200
committerMatthias Vogelgesang <matthias.vogelgesang@kit.edu>2014-07-11 11:06:28 +0200
commitf82414cc075c224cff42ebf5ade7c77a16ddb9cd (patch)
treedb87e9284be4d1ee8a39300c2647e30e609c3a53 /docs/tools.rst
parent97c66c2aee58370044b6444251266d7177caab9e (diff)
downloadlibuca-f82414cc075c224cff42ebf5ade7c77a16ddb9cd.tar.gz
libuca-f82414cc075c224cff42ebf5ade7c77a16ddb9cd.tar.bz2
libuca-f82414cc075c224cff42ebf5ade7c77a16ddb9cd.tar.xz
libuca-f82414cc075c224cff42ebf5ade7c77a16ddb9cd.zip
Split up the manual
Diffstat (limited to 'docs/tools.rst')
-rw-r--r--docs/tools.rst53
1 files changed, 53 insertions, 0 deletions
diff --git a/docs/tools.rst b/docs/tools.rst
new file mode 100644
index 0000000..44573eb
--- /dev/null
+++ b/docs/tools.rst
@@ -0,0 +1,53 @@
+Tools
+=====
+
+Several tools are available to ensure ``libuca`` works as expected. All
+of them are located in ``build/test/`` and some of them are installed
+with ``make installed``.
+
+
+``uca-camera-control`` -- simple graphical user interface
+---------------------------------------------------------
+
+Records and shows frames. Moreover, you can change the camera properties in a
+side pane:
+
+.. image:: uca-gui.png
+
+
+``uca-grab`` -- grabbing frames
+-------------------------------
+
+Grab with frames with ::
+
+ $ uca-grab --num-frames=10 camera-model
+
+store them on disk as ``frames.tif`` if ``libtiff`` is installed,
+otherwise as ``frame-00000.raw``, ``frame-000001.raw``. The raw format
+is a memory dump of the frames, so you might want to use
+`ImageJ <http://rsbweb.nih.gov/ij/>`__ to view them. You can also
+specify the output filename or filename prefix with the ``-o/--output``
+option::
+
+ $ uca-grab -n 10 --output=foobar.tif camera-model
+
+Instead of reading exactly *n* frames, you can also specify a duration
+in fractions of seconds::
+
+ $ uca-grab --duration=0.25 camera-model
+
+
+``uca-benchmark`` -- check bandwidth
+------------------------------------
+
+Measure the memory bandwidth by taking subsequent frames and averaging
+the grabbing time::
+
+ $ ./benchmark mock
+ # --- General information ---
+ # Sensor size: 640x480
+ # ROI size: 640x480
+ # Exposure time: 0.000010s
+ # type n_frames n_runs frames/s MiB/s
+ sync 100 3 29848.98 8744.82
+ async 100 3 15739.43 4611.16