Re: Corner squares coord+size detection
Posted: 2012-06-14T17:01:46-07:00
Please correct me if I'm wrong, but for the last method the offset is always +0+0:
# trim
convert negated.png -trim +repage negated_trim.gif
# print first row
convert negated_trim.gif[210x1+0+0] txt:
# ImageMagick pixel enumeration: 210,1,255,gray
0,0: (255,255,255) #FFFFFF gray(255,255,255) --- white
...
# Offset from orignal image
convert negated_trim.gif -format "%O" info:
+0+0
thank you,
--vs
# trim
convert negated.png -trim +repage negated_trim.gif
# print first row
convert negated_trim.gif[210x1+0+0] txt:
# ImageMagick pixel enumeration: 210,1,255,gray
0,0: (255,255,255) #FFFFFF gray(255,255,255) --- white
...
# Offset from orignal image
convert negated_trim.gif -format "%O" info:
+0+0
thank you,
--vs