ReducePatterns

Navigation:  NxLib API > Commands >

ReducePatterns

Previous pageReturn to chapter overviewNext page

This command can be used to discard similar patterns from the pattern buffers. The command is intended to be used before calibration. Discarding similar patterns will accelerate the calibration process. Keeping the most distinct observations will ensure that only very little calibration accuracy is sacrificed by using less patterns. The desired pattern count must be given in the PatternCount parameter. The function will draw the resulting chessboards into their originating cameras in the overlay images. It is also possible to simulate the pattern reduction via the DryRun parameter to show the reduced pattern set without actually discarding any patterns. This is useful for visualizing the current pattern set while collecting patterns. When calibrating a link between a stereo and a monocular camera, the buffer for observations in only the monocular camera will be reduced separately, effectively resulting in PatternCount and MonocularPatternCount being individually limited to the specified number of patterns.

Error Symbols

InvalidPatternBuffer

Cause:
The calibration patterns of the pattern buffer do not originate from any of the currently open cameras.
Solution:
Reopen the corresponding cameras or discard the buffer contents and collect new patterns.