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: [email protected] [mailto:[email protected]]
On Behalf Of Hugo Slepicka
Sent: Tuesday, November 28, 2017 12:42 PM
To: [email protected]
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.
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.