I found out a piece of pseudocode that I wish to try using opencv; however, I'm not fully familiar with the dictionary used in it.
Below, is the first part of it:
stackedPixels ← ∅
for all pixelRow in image do
for all pixel in pixelRow do
stackedPixels ← stackedPixels ∪ pixel
end for
end for
Could some one help me to understand it?
stackedPixels
could be an array or any sort of Collection that can store the pixel
objects.stackedPixels ∪ pixel
represents appending the current pixel
to stackedPixels