|
MP6
Photomosaic
|
| query | The point we wish to find the closest neighbor to in the tree. |
| newPoints | The vector of points to build your KDTree off of. |
| target | The Point we want to be close to. |
| currentBest | The Point that is currently our closest Point to target. |
| potential | Our Point that is a candidate to replace currentBest (that is, it may be closer to target than currentBest). |
| first | Point to compare. |
| second | Second point to compare. |
| curDim | Dimension these points are being compared in. |
Implement this function!
This function is required for MP 6.2.
| theSource | The input image to construct a photomosaic of |
| theTiles | The tiles image to use in the mosaic |
1.8.9.1