Skip to main content
. 2017 Jul 23;17(7):1693. doi: 10.3390/s17071693
Algorithm 1: Maximum division algorithm.
Input: Extent is the coordinate range of original RS images; cellSize is the pixel value of RS images; tileSize is the slice size of image tile.
Output: level is final number of division layers.
  • 1:

    Input coordinate range of original RS images Extent, and evaluate the width and height of RS images: W0Extent.width, H0Extent.height;

  • 2:

    Evaluate resolution of i-th layer (1i20): Resw=W0/(2i×tileSize), then i=i+1;

  • 3:

    If cellSize.width+KResw (K is a correction constant), stop evaluation and achieve the value i as maximum value of division layers. Or if cellSize.width+K<Resw, repeat Step 2 to evaluate resolution of (i+1)-th layer;

  • 4:

    Reassign W0H0, and evaluate Resh according to processing method in Step 2 and Step 3;

  • 5:

    Evaluate the maximum value levelmax(Resw,Resh);

  • 6:

    Return final number of division layers level.