|
bkCorrect
|
|
| Input
|
|
|
| An integer between 0 and 116 specifying the input image frame number. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.
|
|
|
| Output
|
|
|
| An integer between 1 and 116 specifying the output image frame number. Values in the range of 100-116 correspond to hidden frames.
|
|
|
| Dark
|
|
|
| An integer between 0 and 116 specifying the number of the frame that contains a dark field image. Values in the range of 100-116 correspond to hidden frames. The Subtract argument must be TRUE in order for the dark field image to be processed.
|
|
|
| Bright
|
|
|
| An integer between 0 and 116 specifying the number of the frame that contains a bright field image. Values in the range of 100-116 correspond to hidden frames. The Even argument must be TRUE in order for the bright field image to be processed.
|
|
|
| Subtract
|
|
|
| An optional boolean integer that selects the dark field correction mode. Must be one of the following values:
|
|
|
| FALSE=0 do not perform dark field correction. The additive component of the correction algorithm will be disregarded.
|
| TRUE=1 perform dark field correction.
|
| Default value: TRUE
|
|
|
| Even
|
|
|
| An optional boolean integer that selects the bright field correction mode. Must be one of the following values:
|
|
|
| FALSE=0 do not perform bright field correction. The multiplicative component of the correction algorithm will be disregarded.
|
| TRUE=1 perform dark field correction.
|
| Default value: FALSE
|
|
|
| ERR_OK
|
|
|
| The flag set if successful.
|
|
|
| ERR_FAILED
|
|
|
| The flag set if failed.
|
| This set of statements prompts the user to capture a dark and white field, and then continuously performs the background correction displaying a corrected live image in a frame #1.
|
|
|
| Dark=101
|
| Bright=102
|
| Print "Open Video window"
|
| Input "Press Enter to capture dark field"
|
| grabIm (Dark)
|
| Input "Press Enter to capture bright field"
|
| grabIm (Bright)
|
| Input "Press Enter to display corrected video"
|
|
|
| do
|
| grabIm (0)
|
| bkCorrect (0, 101, 102, 1, TRUE, TRUE)
|
| loop
|