FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSpot_SobelvZc ( kImage  image,
kArrayList  spots,
kSize  edgeWindow,
kSize  averageWindow,
kSize  intensityWindow,
k16u  threshold,
kImage  edgeImage = kNULL,
kImage  averageImage = kNULL,
kImage  intensityImage = kNULL,
kSize const *  roi = kNULL 
)

Focalspec Moving Average + Zero Crossing spot detector reference implementation.

The region of interest parameter roi has the following behavior:

  • roi = kNULL => full image
  • roi != kNULL => roi must point to an array of size >= 4 with {rowStart, rowEnd, colStart, colEnd}
  • If any value in (rowStart, rowEnd, colStart, colEnd) is set to kSIZE_NULL, the missing element is mapped rowStart -> 0; rowEnd -> imageHeight; colStart -> 0; colEnd -> imageWidth
Parameters
imageInput image with pixel type k8u
spotskArrayList of type kFpgaSpot2i
edgeWindowSize of gradient filter
averageWindowSize of moving average filter used to determine weather a pixel is inside a spot
intensityWindowSize of moving average filter used to determine spot intensity
thresholdThreshold against which detection-filtered image is compared to determine if a pixel is inside a spot
edgeImageBuffer to use for edge image, an internal buffer will be allocated and used if set to kNULL
averageImageBuffer to use for average image, an internal buffer will be allocated and used if set to kNULL
intensityImageBuffer to use for intensity image, an internal buffer will be allocated and used if set to kNULL
roiRegion of interest
Returns
kStatus