A Conditional Random Field Approach for Coupling Local Registration with Robust Tissue and Structure Segmentation