Finding vertical stipes to use for crop input
Posted: 2017-10-30T15:47:44-07:00
I have images of films strips from a scanner, like the following example. These, that have been nicely trimmed.
https://ibb.co/dWDTbR
I want to find the horizontal coordinates of the separating strips, i.e. the continues grey areas separating each frame. I want to use the horizontal coordinates to drive a cropping operation. That way I can carefully control the cropping with my own logic.
I have a reasonable estimate of the 'colour' of each vertical spacing gap, in this case gray(35%). So I am looking for the horizontal coordinates of continuous area that matches the said colour with fuzzy match of 5% or so. Ideally of would like to know the start and end range of those coordinates.
Any clues?
Any help appreciated.
IM 6.8.9 linux
https://ibb.co/dWDTbR
I want to find the horizontal coordinates of the separating strips, i.e. the continues grey areas separating each frame. I want to use the horizontal coordinates to drive a cropping operation. That way I can carefully control the cropping with my own logic.
I have a reasonable estimate of the 'colour' of each vertical spacing gap, in this case gray(35%). So I am looking for the horizontal coordinates of continuous area that matches the said colour with fuzzy match of 5% or so. Ideally of would like to know the start and end range of those coordinates.
Any clues?
Any help appreciated.
IM 6.8.9 linux