Optimal margin and edge-enhanced intensity maps