extension for region-adjecncy graph and some pairwise features