--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
public int classify(T image) {
...
// Find the N most similar image histograms
resultsNN.reset();
nn.findNearest(hist,-1,numNeighbors,resultsNN);
It looks like the nearest neighbors are in resultsNN, and the following code in the class shows how to unpack them and the distances, which would be the closest you'd find to a similarity measure I think.
I started with your idea of getting the O(N^2) set of distances and sorting them, but just realized that the nearest neighbor algorithm seems to be just getting the ones you want - your task would be to pick the number of neighbors such that you'd get all the ones over your cutoff.
Bill
...
--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sets: 5: 1 4: 1 3: 2 2: 23 1: 179
Sets: 8: 1 7: 1 6: 1 5: 8 4: 6 3: 10 2: 23 1: 79
Sets: 5: 1 4: 3 3: 9 2: 30 1: 136
Sets: 8: 1 7: 3 6: 3 5: 1 4: 2 3: 9 2: 34 1: 85
Sets: 8: 1 7: 2 6: 3 5: 3 4: 7 3: 12 2: 26 1: 69
Sets: 8: 1 7: 2 6: 6 5: 1 4: 4 3: 15 2: 24 1: 68
Sets: 5: 1 3: 5 2: 25 1: 170
Sets: 7: 3 6: 4 5: 4 4: 7 3: 12 2: 26 1: 59
Sets: 5: 3 4: 1 3: 9 2: 25 1: 144
Sets: 7: 2 6: 1 5: 4 4: 9 3: 5 2: 31 1: 87
Sets: 3: 13 2: 20 1: 161
Sets: 7: 3 6: 2 5: 4 4: 8 3: 13 2: 22 1: 72
Not bad for about $5 of active Amazon server cost (plus the inevitable unused time). I will recommend you to Amazon if you are the first person to add up all the numbers on this page.
Bill
"Even as a student, I had mocked the intellectual tumors grown by philosophers." -- Paul Feyerabend (philosopher)
--
You received this message because you are subscribed to the Google Groups "BoofCV" group.
To unsubscribe from this group and stop receiving emails from it, send an email to boofcv+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Method Frac_d Dim stress(100) stress(1)
Lab_CIE94 1.1458 3 2114107376961504.750000 33238672000252052.000000
Greyscale 1.0490 8 42238951082.465477 1454262245593.781250
HS_12x12 1.0889 19 33661589105.972816 3616806311396.510254
HS_24x24 1.1298 35 16070009781.315575 4349496176228.410645
HS_48x48 1.1854 64 7231079366.861403 4836919775090.241211
GIST 1.2312 9 28786830336.332951 997666139720.167114
HOG_250_words 1.3114 10 10120761644.659481 150327274044.045624
HOG_500_words 1.3543 13 4740814068.779779 70999988871.696045
HOG_1k_words 1.3805 15 2364984044.641845 38619752999.224922
SIFT_1k_words 1.5706 11 1930289338.112194 18095265606.237080
SURFFAST_200w 1.3829 8 2778256463.307569 40011821579.313110
SRFFAST_250_w 1.3754 8 2591204993.421285 35829689692.319153
SRFFAST_500_w 1.4551 10 1620830296.777577 21609765416.960484
SURFFAST_1k_w 1.5023 14 949543059.290031 13039001089.887533
SURFFAST_4k_w 1.5690 19 582893432.960562 5016304129.389058