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 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
<== Date ==> <== Thread ==>

Subject: RE: EDM Hoff Video Widget and Bits Per Pixel
From: Mark Rivers <rivers@cars.uchicago.edu>
To: 'Hugo Slepicka' <hhslepicka@gmail.com>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 28 Nov 2017 18:54:49 +0000

Hi Hugo,

 

What does the widget do with the Bits Per Pixel property?  Does it use this to set the maximum intensity value?  If so can you also manually change that?  So for example if your camera is 12 bits, but you have low light and the maximum intensity is not 4095 but only 200 can you change the grey scale level so that white is 200?  In this case the actual Bits Per Pixel is only 8 even though the camera might produce 12 under higher light.

 

areaDetector does not have a Bits Per Pixel PV.  It does have DataType_RBV, for which the choices are:

 

record(mbbi, "$(P)$(R)DataType_RBV")

{

   field(DTYP, "asynInt32")

   field(INP,  "@asyn($(PORT),$(ADDR),$(TIMEOUT))DATA_TYPE")

   field(ZRST, "Int8")

   field(ZRVL, "0")

   field(ONST, "UInt8")

   field(ONVL, "1")

   field(TWST, "Int16")

   field(TWVL, "2")

   field(THST, "UInt16")

   field(THVL, "3")

   field(FRST, "Int32")

   field(FRVL, "4")

   field(FVST, "UInt32")

   field(FVVL, "5")

   field(SXST, "Float32")

   field(SXVL, "6")

   field(SVST, "Float64")

   field(SVVL, "7")

   field(SCAN, "I/O Intr")

}

 

You could implement a BitsPerPixel record using the DataType_RBV record to give you 8, 16, or 32.  But it will not know if UInt16 data is really 10, 12, 14, or 16 bits.

 

I think the concept of bits per pixel is hard to implement within areaDetector.  For example how should bits per pixel be handled by a plugin that does background subtraction, flat field normalization, ROI binning with summation, etc?

 

Mark

 

 

From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Hugo Slepicka
Sent: Tuesday, November 28, 2017 12:42 PM
To: tech-talk@aps.anl.gov
Subject: EDM Hoff Video Widget and Bits Per Pixel

 

Hi,

 

I have a EDM screen using the Hoff Video widget to display images from an areaDetector Image Plugin, so far it is working great.

 

My question is:

Is it possible to associate a PV with the "Bits Per Pixel" property of this widget?

 

Here is a screenshot of the properties window for this widget.

Screen Shot 2017-11-28 at 10.36.49 AM.png

 

Thank you,

Hugo


References:
EDM Hoff Video Widget and Bits Per Pixel Hugo Slepicka

Navigate by Date:
Prev: EDM Hoff Video Widget and Bits Per Pixel Hugo Slepicka
Next: Re: time stamp on vxWorks jumping to the future Zimoch Dirk (PSI)
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
Navigate by Thread:
Prev: EDM Hoff Video Widget and Bits Per Pixel Hugo Slepicka
Next: Tab Container set focus Amien WORK
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
ANJ, 29 Nov 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·