EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: ImageMagick
From: <[email protected]>
To: <[email protected]>, <[email protected]>
Date: Mon, 27 Sep 2010 09:13:42 +0100
Hi,

I'm currently using the ffmpeg[1] libraries in a QT based viewer to
decompress and display the mjpg stream produced by ffmpegServer[2]. I
have also tested the viewer with the axis webcams mjpg stream. It's not
the nicest API, but it is a lot more efficient than the libjpeg
libraries I was using previously. It's about 20 lines of code to
connect, decompress, and convert an mjpg stream to RGB or mono frames,
and the code is listed in ffmpegServer/Viewers/ffmpegServer.cpp. It
works on Linux and windows, haven't tried Mac yet...

[1] http://ffmpeg.org/
[2] http://controls.diamond.ac.uk/downloads/support/ffmpegServer/

Thanks,
Tom Cobb,
Diamond Light Source Ltd.
Diamond House
Harwell Science and Innovation Campus
Didcot
Oxfordshire
OX11 0DE
Tel +44 (0) 1235 778582
 

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Mark Rivers
> Sent: 24 September 2010 23:50
> To: [email protected]
> Subject: ImageMagick
> 
> Folks,
>  
> Uwe Flechig from PSI recently introduced me to the 
> ImageMagick software suite.
>  
> http://www.imagemagick.org/
>  
> One of the things it provides is a C++ library that is very 
> simple and powerful.  For example, the following 3 lines of 
> code will read any URL containing an image in any of dozens 
> of formats, rotate it 90 degrees and save it as a TIFF file:
>  
>         Image 
> image("http://www.solarstrahlung-dietzenbach.de/images/sonne.jpg";);
>         image.rotate(90.);
>         image.write("test.tiff");
>  
> This is so much simpler and more powerful than using the 
> libtiff and libjpeg libraries directly that I am very 
> interesting in switching to it for areaDetector.  One of the 
> next detector drivers I am thinking of writing, partly at 
> Uwe's suggestion, is a driver for Web cameras and Axis video 
> Web servers.  This would allow areaDetector to get images 
> from existing analog cameras via MJPEG, decompress them, and 
> the use the statistics and processing plugins, for example.  
> This would be trivial with ImageMagick using the URL in a 
> constructor as shown above (or in the Image.read method).
>  
> My question is whether anyone in this group has experience 
> with it, and knows of any potential problems.  It runs on 
> Linux, Windows and Mac.  I got it running quickly on Linux, 
> but on Windows I seem to have problems reading disk files my 
> own software, though their command line utilities work.
>  
> Thanks,
> Mark
> 
>  
> 
> 

-- 
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
 





References:
ImageMagick Mark Rivers

Navigate by Date:
Prev: Re: StreamDevice slowdown Eric Norum
Next: Re: StreamDevice slowdown Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: ImageMagick Mark Rivers
Next: Long string ... emmanuel_mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 27 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·