color replacement in image for iphone application
问题 Basically i want to implement color replacement feature for my paint application. Below are original and expected output Original: After changing wall color selected by user along with some threshold for replacement I have tried two approaches but could not got working as expected Approach 1: Queue-based Flood Fill algorithm for color replacement but with i got below output with terribly slow and wall shadow has not been preserved. Approach 2: So i have tried to look at another option and