|
Algorithm 1 Sample Compression Algorithm |
-
Input:
n images with size , the compression ratio and the iteration number b.
-
Output:
n compressed images with size .
( stands for the input image, and represent the output image and its reconstruction form, respectively, and and represent the pixel value in the output image and its reconstruction form, respectively).
-
1:
initialize the to infinity, the to , the to , to 0 and to .
-
2:
for to do
-
3:
for to do
-
4:
-
5:
-
6:
-
7:
end for
-
8:
-
9:
end for
-
10:
-
11:
return
|