|
Algorithm 1 Mapping from RGB color space to order space |
-
Require:
a set of pixels
-
Ensure:
a set of coordinates in order space
-
1:
Assign serial numbers to all pixels in the required set to have a set of re-indexed pixels .
-
2:
for do
-
3:
-
4:
for do
-
5:
-
6:
end for
-
7:
end for
-
8:
Return
|