Looking for a method to determine adjacent superpixels, I found this interesting solution. However, as I know, there is need to consider adjacency between superpixels which are located in the left and right boundaries. Also the adjacency for superpixels in top and bottom boundaries should be taken into account.
For example, in the above figure the red-filled superpixels should be considered as neighbor ones.
Any idea for that?