Ask Your Question

Qiang Guo's profile - activity

2016-04-24 02:04:28 -0600 received badge  Editor (source)
2016-04-24 02:04:01 -0600 asked a question Is it safe converting to a Mat itself with different type?

The following code can be compiled without error. However, is it safe doing this?

Mat im = imread('test.jpg', CV_LOAD_IMAGE_GRAYSCALE);
im.convertTo(im, CV_32F1);
2016-01-11 05:34:59 -0600 received badge  Scholar (source)
2016-01-11 05:34:58 -0600 received badge  Supporter (source)
2015-12-18 08:52:17 -0600 asked a question What's the difference between `KDTreeIndex` and `KDTreeSingleIndex`?

In their comments, both says:

/**
 * Randomized kd-tree index
 *
 * Contains the k-d trees and other information for indexing a set of points
 * for nearest-neighbor matching.
 */

Anyone can tell me the exact difference of the two Index classes?