- Timestamp:
- 2015-02-20T16:48:34+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nz-flag-design/trunk/similarity-2d/flag-processing.js
r29628 r29757 15 15 16 16 function drawImage(imageObj, canvasId) { 17 "use strict";18 17 var imgCanvas = document.getElementById(canvasId), 19 18 context, imageData, data, … … 325 324 var stored_hist_array = JSON.parse(localStorage["quantHSLHistogramArray"]); 326 325 if (stored_hist_array.length == img_list.length) { 327 console.log("Different number of images detected => regenerating");328 329 326 // Assume if the number of images process hasn't changed, then neither 330 327 // has the stored historgram values … … 342 339 needToComputeHistograms = false; 343 340 } 341 else { 342 console.log("Different number of images detected => regenerating"); 343 } 344 344 } 345 345 } … … 353 353 doneComputingHistograms(img_list.length); 354 354 } 355 356 357 358 } 355 } 356 357 function rankBySimilarity(imageData,x_dim,y_dim) 358 { 359 // quantizedColourHistogramComparison(quant_colour_hist1,quant_colour_hist2) 360 361 }
Note:
See TracChangeset
for help on using the changeset viewer.