Changes between Version 73 and Version 74 of PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools
- Timestamp:
- 07/13/12 22:42:51 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PostGIS_Raster_SoC_Idea_2012/Distance_Analysis_Tools
v73 v74 753 753 754 754 {{{ 755 '''Comments from Mentor''' 756 > >Do those algorithms have known names?757 758 >They are called "sequential algorithms" in distance mapping,755 Comments from Mentor 756 > Do those algorithms have known names? 757 758 They are called "sequential algorithms" in distance mapping, 759 759 with which the distance surface will ideally be created across the 760 760 entire image(raster) in one scan. ArcGIS also uses sequential 761 761 algorithms in the scanning process. 762 762 763 >The distance for the current pixel763 The distance for the current pixel 764 764 under scanning is computed using recently computed values from the 765 765 present scan in the neighborhood. For example, in one row scan, … … 770 770 Dist_row(col) will be replaced with the newly computed distance. 771 771 772 >GRASS's "r.grow.distance" is computing octagonal distance, while GDAL772 GRASS's "r.grow.distance" is computing octagonal distance, while GDAL 773 773 "gdalproximity" is doing a chessboard scanning manner. GRASS 774 774 "r.grow.distance" creates the distance surface in a "growing" manner … … 780 780 >> raster?". Is one more efficient than the other one? 781 781 782 >In terms of scanline, both approaches do only one scan for the whole782 In terms of scanline, both approaches do only one scan for the whole 783 783 raster, row by row. 784 784 In terms of pixels, … … 791 791 they are using similar algorithms as GDAL.) 792 792 793 >GRASS actually scans columns in each row 4 times. The first time is to793 GRASS actually scans columns in each row 4 times. The first time is to 794 794 assign distance value of "0" to source pixels. Then 3 times for the 795 795 neighbor to the left, right, and topleft/above/topright. 796 796 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 (or800 > >comparable)?801 802 >Our approach will scan the whole797 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 803 803 raster only once. So we could use a similar scanning algorithm as GDAL 804 804 in terms of utilizing scanlines to do multiple scans simultaneously. 805 805 806 > >Could you describe, in two short sentences, how each of them decide which807 > >source is the nearest for each pixel?808 809 >I think both approaches don't have a specific806 > 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 810 810 process to actually determine the nearest source pixel to the current 811 811 one, but use this sequential scanning to replace distance with shorter … … 814 814 be reusable for cost-weighted distance computation. 815 815 816 > >Are you still confident in our approach now that you understand better817 > >those two algorithms? Why?818 819 >Yes, I think our approach utilizing KNN indexing will show its816 > 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 820 820 efficiency while dealing with vary large source dataset and very high 821 821 resolution resulted distance raster. Because both methods in GDAL and