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: Fw: Bayer to RGB areaDetector
From: "[email protected]" <[email protected]>
To: tech-talk <[email protected]>
Date: Thu, 10 May 2018 10:21:11 +0000
Hi Mark,



thanks for the reply. As you say, using the Bayer mode is useful as it cuts down network traffic, and it is for this reason I was investigating this option.



At DLS we haven't used ADProsilica, as we've chosen aravisGigE as our driver, which allows using different cameras from different vendors (mainly AVT) and this driver is used throughout our beamlines, so we don't want to introduce another driver.



I have looked at the NDPluginColorConvert source code, and seen that it surrounds calls to the PvApi debayering method with an #ifdef #endif block; as the PvApi library was removed from ADCore which contains the plugin, could that block be removed, as that code will never see that library?



From discussing with other controls engineers here, as we want to keep using aravisGigE, it would be good if this driver had its own bayer support built in, like ADProsilica and ADPointGrey do. We can pretty much achieve this using OpenCV, by adding the debayering method into our support module adOpenCV; I think this is the way we will go.



Thanks for your response, Mark, and the info about why/when the library was moved, and other drivers that support the method.



Cheers,



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

________________________________
From: Mark Rivers <[email protected]>
Sent: 03 May 2018 18:35:37
To: Palaha, Arvinder (DLSLtd,RAL,TEC); tech-talk
Subject: Re: Bayer to RGB areaDetector

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


Replies:
Re: Bayer to RGB areaDetector [email protected]
References:
Bayer to RGB areaDetector [email protected]
Re: Bayer to RGB areaDetector Mark Rivers

Navigate by Date:
Prev: RE: Keithley 2634B Source Meter [email protected]
Next: Re: 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 
Navigate by Thread:
Prev: Re: Bayer to RGB areaDetector Mark Rivers
Next: Re: 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 ·