I wonder if anybody could help me in my use of Fred's normcrosscorr script.
I'm tring to use it to calculate where a large image needs to be cropped by referencing a smaller image.
So far I have got it to draw a square around the area and output to a new file (as the script was intended to do) - but what I really want, is for it to fill the space outside of the square it draws with one set colour (any will do). This will allow me to use autocrop on Photoshop for the cropping of thousands of images saving me a whole lot of time =]
So far all I've done is add -strokewidth ### to line 516 of the script. This almost has the effect I want but the strokewidth expands from the centre of the line meaning it fills part of the area I want left clear.
Code: Select all
Line 516: convert $dir/tmpA2.mpc[${wlo}x${hlo}+0+0] -fill none -strokewidth 1000 -stroke "$color" \
Any help/ideas would be awesome =]