                   boolean&nbsp;compactResult)</pre>
<div class="block">Finds the k best matches for each descriptor from a query set.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>queryDescriptors</code> - Query set of descriptors.</dd>
<dd><code>trainDescriptors</code> - Train set of descriptors. This set is not added to the train descriptors
     collection stored in the class object.</dd>
<dd><code>mask</code> - Mask specifying permissible matches between an input query and t