Changes between Version 73 and Version 74 of PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools

Show
Ignore:
Timestamp:
07/13/12 22:42:51 (10 months ago)
Author:
qliu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools

    v73 v74  
    753753 
    754754{{{ 
    755 '''Comments from Mentor''' 
    756 >> Do those algorithms have known names? 
    757  
    758 > They are called "sequential algorithms" in distance mapping, 
     755Comments from Mentor 
     756> Do those algorithms have known names? 
     757 
     758  They are called "sequential algorithms" in distance mapping, 
    759759with which the distance surface will ideally be created across the 
    760760entire image(raster) in one scan. ArcGIS also uses sequential 
    761761algorithms in the scanning process. 
    762762 
    763 > The distance for the current pixel 
     763  The distance for the current pixel 
    764764under scanning is computed using recently computed values from the 
    765765present scan in the neighborhood. For example, in one row scan, 
     
    770770Dist_row(col) will be replaced with the newly computed distance. 
    771771 
    772 > GRASS's "r.grow.distance" is computing octagonal distance, while GDAL 
     772  GRASS's "r.grow.distance" is computing octagonal distance, while GDAL 
    773773"gdalproximity" is doing a chessboard scanning manner. GRASS 
    774774"r.grow.distance" creates the distance surface in a "growing" manner 
     
    780780>> raster?". Is one more efficient than the other one? 
    781781 
    782 > In terms of scanline, both approaches do only one scan for the whole 
     782  In terms of scanline, both approaches do only one scan for the whole 
    783783raster, row by row. 
    784784In terms of pixels, 
     
    791791they are using similar algorithms as GDAL.) 
    792792 
    793 > GRASS actually scans columns in each row 4 times. The first time is to 
     793  GRASS actually scans columns in each row 4 times. The first time is to 
    794794assign distance value of "0" to source pixels. Then 3 times for the 
    795795neighbor to the left, right, and topleft/above/topright. 
    796796 
    797 > So in terms of scanning times, it looks like GDAL is more efficient. 
    798  
    799 >> To which one of those two algorithms our approach is similar (or 
    800 >> comparable)? 
    801  
    802 > Our approach will scan the whole 
     797  So in terms of scanning times, it looks like GDAL is more efficient. 
     798 
     799> To which one of those two algorithms our approach is similar (or 
     800> comparable)? 
     801 
     802  Our approach will scan the whole 
    803803raster only once. So we could use a similar scanning algorithm as GDAL 
    804804in terms of utilizing scanlines to do multiple scans simultaneously. 
    805805 
    806 >> Could you describe, in two short sentences, how each of them decide which 
    807 >> source is the nearest for each pixel? 
    808  
    809 > I think both approaches don't have a specific 
     806> Could you describe, in two short sentences, how each of them decide which 
     807> source is the nearest for each pixel? 
     808 
     809  I think both approaches don't have a specific 
    810810process to actually determine the nearest source pixel to the current 
    811811one, but use this sequential scanning to replace distance with shorter 
     
    814814be reusable for cost-weighted distance computation.  
    815815 
    816 >> Are you still confident in our approach now that you understand better 
    817 >> those two algorithms? Why? 
    818  
    819 > Yes, I think our approach utilizing KNN indexing will show its 
     816> Are you still confident in our approach now that you understand better 
     817> those two algorithms? Why? 
     818 
     819  Yes, I think our approach utilizing KNN indexing will show its 
    820820efficiency while dealing with vary large source dataset and very high 
    821821resolution resulted distance raster. Because both methods in GDAL and