Hacker News new | ask | show | jobs
by jamessb 3997 days ago
On further thought this probably won't work very well: the histogram of colour distances will be multimodal, with one peak for each color in the image (and with the peak corresponding to the white background being far taller than the others). The Otsu method assumes there is just a foreground and background that need to be separated.

A clustering method like k-means might work, but I've had a quick play in Matlab and the results weren't great.

1 comments

Thanks for trying it out. I am also working on a grid removal algorithm which will run into similar issues and so it's good to get some ideas. The naive color distance approach might not be the best for that scenario.