Merge Mix Filter with Edge Detection