Weakly supervised learning of image partitioning using decision trees with structured split criteria