Algorithm 1 Construction of a binary measurement matrix from image maps. |
Input: — matrix containing l maps with pixels |
Input: —vector of length n with random integer values in the range
|
Input: —a look-up table; binary matrix, such that is full rank. Here is finite difference operator that subtracts matrix rows. |
Output: — measurement matrix with rows containing binary patterns with n pixels each |
function make patterns() |
|
|
for do
|
▹ Iterate maps |
|
▹i-th map |
for do
|
▹ Iterate rows of
|
for do
|
▹ Iterate sectors of map
|
|
▹ Index of the next sampling pattern |
|
▹ Get indices of all pixels of j-th sector of i-th map |
|
▹ Assign binary values to pixels of a sector |
end for
|
end for
|
end for
|
return
|
▹ Return the measurement matrix |
end function
|