Optimal MAP parameters estimation in STAPLE using local intensity similarity information