|
Algorithm 2: Distributed construction algorithm of image pyramid model. |
Input:
is the source of RS images; and are number of rows and columns respectively; is a function to get pixel value; is the slice size of image tile. Output:
is the attribute data; is net data;
-
1:
Read the partitioned image into HDFS and achieve the coordinate range of RS images ;
-
2:
Evaluate pixel value of RS images ;
-
3:
Divide layers using in the Algorithm 1;
-
4:
Evaluate image resolution when dividing each layer i, and produce division data ;
-
5:
If the terminal condition of MDLA is satisfied, return final number of division layers and then implement Step 7;
-
6:
If the terminal condition of MDLA is not satisfied, then , and return Step 4;
-
7:
Ingest the data of current layer to HDFS with two parameters: i, ;
-
8:
Based on two parameters in Step 7, call function to establish the pyramid HDFS model, and produce the attribute data and net data ;
-
9:
If , repeat Step 8. If , the repeat stops, and are outputted into the finally;
|