fmw42 wrote: ↑2018-08-07T18:39:35-07:00
Sorry, I guess I missed that discussion. -connected components is also a solution for finding the black pixels from the white ones. That was also a good suggestion.
Indeed, I already use -connected components, from a script that I rewrote, using some ideas, that you previously posted. The solution works well as it performs a number of complex steps up to this point, but occasionally it makes a mistake at the end. I wrote a solution that walks the through the results of the -connected components data, and removes the mistakes. But I thought perhaps there was some more magic I could do with morphology, but I could not get it to work, as it was step to far, from what I have learnt.
snibgo wrote: ↑2018-08-07T21:23:31-07:00
I'm not sure of the conditions for removal. A black line is to be removed if and only if it has short white lines on both sides. Is that right?
Yes, I am working a open source library of tools to help with film scanning. Thanks I will study that! I have not used HMT, I tried using open and close, and different permutations of -negate at varies stages, but I just got lost.
I guess it takes a little while to get your head around thinking a little differently,