Learning Robust Representations In Random Forest And Deep Neural Networks For Semantic Segmentation