GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — setsm_postprocessing/polyCropGCPs.m at master · ihowat/setsm_postprocessing Expand file tree/ Copy pathpolyCropGCPs.mMore file actions 25 lines (17 loc) · 594 Bytes / Copy pathpolyCropGCPs.mFile metadata and controls25 lines (17 loc) · 594 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 function [n]=polyCropGCPs(gcp,xv,yv,varargin) nonRectPoly=true; if ~isempty(varargin) switch lower(varargin{1}) case 'rectangle' nonRectPoly=false; end end % fast rectangle crop gcp data to rectangularized DEM boundarys n= gcp.x >= min(xv) & gcp.x <=max(xv) &... gcp.y >= min(yv) & gcp.y <=max(yv); n=find(n); % reduce index to fast crop selection if nonRectPoly % polygon crop THIS IS NOT NEEDED FOR RECTANGULAR TILES nn = inpolygon(gcp.x(n),gcp.y(n),xv,yv); % polygon crop n=n(nn); clear nn % reduce index to fast crop selection end |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |