An example of the diagram style that I am working on is given below. For now I am working on command-line of IM in windows environment. Thank you for your replies. (imagemagick v6.7.4-Q16)

Wolfgang:whugemann wrote:I think this should work if you search for the crosses in the edges of the frame which exist only four times in the image. If you cut the image to quarters and then search for the cross via Compare, the textual output should provide the right coordinates. With these coordinates you could just draw thicker lines onto the image to get thicker axes.
It would be even easier if the axes would lie at the same location for each diagramm, but I suppose it's not that easy (?).
However, on my Windows computer, I cannot convince Compare to do its job on images which are not off the same size. I tried the code suggested by Fred somewhere else in this forum, but it just gave me an error.
Code: Select all
compare -metric RMSE -subimage-search plug3p.gif cross.gif null:
Correct. So you have to correct for the offset to the middle of the small image presumably where the cross lines intersect.whugemann wrote:obviously referring to optimal placement of the upper left corner of the subimage.
Code: Select all
convert image.png -morphology Close rectangle:50x1 horizontal_lines.gif