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  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Bayer to RGB areaDetector
From: Mark Rivers <[email protected]>
To: "[email protected]" <[email protected]>, tech-talk <[email protected]>
Date: Thu, 3 May 2018 17:35:37 +0000
Hi Avinder,


What version of ADProsilica are you using?  The conversion from Bayer to RGB is handled in the ADProsilica driver (prosilica.cpp) using the pvAPI library.


There is a PV you need to set, $(P)$(R)BayerConvert.  It is in the lower-left of the medm prosilica.adl screen-shot in the documentation here:

http://cars9.uchicago.edu/software/epics/prosilicaDoc.html


You should set BayerConvert=RGB1.  Then the output images will be in RGB1 format which the ffmpeg plugin and viewer should handle fine.  Using Bayer mode with conversion in the driver like this is a good idea because it reduces the network bandwidth of the camera by a factor of 3.


This conversion from Bayer to RGB1 was moved from the ColorConvert plugin into the ADProsilica driver in R2-0 of ADProsilica (March, 2014) as documented here:


https://github.com/areaDetector/ADProsilica/blob/master/RELEASE.md


This conversion is also supported in the ADPointGrey driver.


Mark



________________________________
From: [email protected] <[email protected]> on behalf of [email protected] <[email protected]>
Sent: Thursday, May 3, 2018 10:37 AM
To: tech-talk
Subject: Bayer to RGB areaDetector

Dear tech-talk,

Using areaDetector, I have been trying to use the Bayer color mode with a Mako G507C camera at DLS, but to no avail.

When using either the Mono or RGB mode, I see an updated image on the ffmpegViewer screen, but not with Bayer mode.

I tried using the NDPluginColorConvert plugin; converting Bayer color mode to RGB1 (or even Mono) but this also causes the ffmpegViewer stream to stop.

Looking in the NDPluginColorConvert.cpp in ADCore/ADApp/pluginSrc, it depends on PVAPI to deal with debayering, and this was a library from Prosilica, which is a proprietary library, but not in ADCore anymore.

There is demosaicing function in OpenCV that can convert a bayer format to RGB.

My question is: could ADCore depend on OpenCV in order for the color convert plugin bayer feature to work?

If not, could we use the OpenCV method in a separate support module (we have one at DLS called adOpenCV)?



For info; I am using ADCore 2-6 and ffmpegServer 3-1


Cheers,


Arvinder Palaha
Beamline Control Systems
DH G.63
T: +44-(0)1235-77-8137
E: [email protected]


--
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:
Bayer to RGB areaDetector [email protected]

Navigate by Date:
Prev: Bayer to RGB areaDetector [email protected]
Next: Re: Request: Survey of EPICS PVA ( a.k.a EPICS V4) users Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Bayer to RGB areaDetector [email protected]
Next: Fw: Bayer to RGB areaDetector [email protected]
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 10 May 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·