areaDetector 1-9
|
Extract Regions-Of-Interest (ROI) from NDArray data; the plugin can be a source of NDArray callbacks for other plugins, passing these sub-arrays. More...
#include <NDPluginROI.h>
Extract Regions-Of-Interest (ROI) from NDArray data; the plugin can be a source of NDArray callbacks for other plugins, passing these sub-arrays.
The plugin also optionally computes a statistics on the ROI.
NDPluginROI::NDPluginROI | ( | const char * | portName, |
int | queueSize, | ||
int | blockingCallbacks, | ||
const char * | NDArrayPort, | ||
int | NDArrayAddr, | ||
int | maxBuffers, | ||
size_t | maxMemory, | ||
int | priority, | ||
int | stackSize | ||
) |
Constructor for NDPluginROI; most parameters are simply passed to NDPluginDriver::NDPluginDriver.
After calling the base class constructor this method sets reasonable default values for all of the ROI parameters.
[in] | portName | The name of the asyn port driver to be created. |
[in] | queueSize | The number of NDArrays that the input queue for this plugin can hold when NDPluginDriverBlockingCallbacks=0. Larger queues can decrease the number of dropped arrays, at the expense of more NDArray buffers being allocated from the underlying driver's NDArrayPool. |
[in] | blockingCallbacks | Initial setting for the NDPluginDriverBlockingCallbacks flag. 0=callbacks are queued and executed by the callback thread; 1 callbacks execute in the thread of the driver doing the callbacks. |
[in] | NDArrayPort | Name of asyn port driver for initial source of NDArray callbacks. |
[in] | NDArrayAddr | asyn port driver address for initial source of NDArray callbacks. |
[in] | maxBuffers | The maximum number of NDArray buffers that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited number of buffers. |
[in] | maxMemory | The maximum amount of memory that the NDArrayPool for this driver is allowed to allocate. Set this to -1 to allow an unlimited amount of memory. |
[in] | priority | The thread priority for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. |
[in] | stackSize | The stack size for the asyn port driver thread if ASYN_CANBLOCK is set in asynFlags. |
void NDPluginROI::processCallbacks | ( | NDArray * | pArray | ) | [virtual] |
Callback function that is called by the NDArray driver with new NDArray data.
Extracts the NthrDArray data into each of the ROIs that are being used. Computes statistics on the ROI if NDPluginROIComputeStatistics is 1. Computes the histogram of ROI values if NDPluginROIComputeHistogram is 1.
[in] | pArray | The NDArray from the callback. |
Reimplemented from NDPluginDriver.
int NDPluginROI::NDPluginROIDataType [protected] |
int NDPluginROI::NDPluginROIDim0AutoSize [protected] |
int NDPluginROI::NDPluginROIDim0Bin [protected] |
int NDPluginROI::NDPluginROIDim0Enable [protected] |
int NDPluginROI::NDPluginROIDim0MaxSize [protected] |
int NDPluginROI::NDPluginROIDim0Min [protected] |
int NDPluginROI::NDPluginROIDim0Reverse [protected] |
int NDPluginROI::NDPluginROIDim0Size [protected] |
int NDPluginROI::NDPluginROIDim1AutoSize [protected] |
int NDPluginROI::NDPluginROIDim1Bin [protected] |
int NDPluginROI::NDPluginROIDim1Enable [protected] |
int NDPluginROI::NDPluginROIDim1MaxSize [protected] |
int NDPluginROI::NDPluginROIDim1Min [protected] |
int NDPluginROI::NDPluginROIDim1Reverse [protected] |
int NDPluginROI::NDPluginROIDim1Size [protected] |
int NDPluginROI::NDPluginROIDim2AutoSize [protected] |
int NDPluginROI::NDPluginROIDim2Bin [protected] |
int NDPluginROI::NDPluginROIDim2Enable [protected] |
int NDPluginROI::NDPluginROIDim2MaxSize [protected] |
int NDPluginROI::NDPluginROIDim2Min [protected] |
int NDPluginROI::NDPluginROIDim2Reverse [protected] |
int NDPluginROI::NDPluginROIDim2Size [protected] |
int NDPluginROI::NDPluginROIEnableScale [protected] |
int NDPluginROI::NDPluginROIName [protected] |
int NDPluginROI::NDPluginROIScale [protected] |