There are several getters for various image data: getFrameValue Gives you the width and height (in pixels) of the image, and a pointer to the start of the pixel array of a Pds::Camera::FrameV1 object.getOpal1kValue an alias for getFrameValuegetTm6740Value an alias for getFrameValuegetCspadQuad Gives you a pointer to the first position in the array of pixel data from the XPP CsPad detector (or alternatively you can get a pointer to the Pds::CsPad::ElementV1 object itself).
Code Block |
---|
int getFrameConfig (FrameDetector det);
int getFrameValue(FrameDetector det, int& frameWidth, int& frameHeight, unsigned short*& image );
|
fetches an image from the FrameDetector of your choice. Specify the detector (using an appropriate enum), and getFrameValue will direct your pointers to the width and height of the image as well as the start of the pixel array. Code Block |
---|
Other frame detectors:
AMO:
AmoVmi
AmoBps1
AmoBps2
SXR:
SxrBeamlineOpal1
SxrBeamlineOpal2
SxrEndstationOpal1
SxrEndstationOpal2
SxrFccd
XPP:
XppSb1PimCvd
XppMonPimCvd
XppSb3PimCvd
XppSb4PimCvd
|
For an example of how to draw the an image as a 2D root histogram, see the myana_cspad.cc example. |