title: Finding a picture in a picture with java?
body: <p>what i want to to is analyse input from screen in form of pictures. I want to be able to identify a part of an image in a bigger image and get its coordinates within the bigger picture. Example:</p>
  
  <p><img src="https://i.stack.imgur.com/bCkh8.jpg" alt="box"></p>
  
  <p>would have to be located in </p>
  
  <p><img src="https://i.stack.imgur.com/IK3oa.jpg" alt="big picture"></p>
  
  <p>And the result would be the upper right corner of the picture in the big picture and the lower left of the part in the big picture. As you can see, the white part of the picture is irrelevant, what i basically need is just the green frame. Is there a library that can do something like this for me? Runtime is not really an issue. </p>
  
  <p>What i want to do with this is just generating a few  random pixel coordinates and recognize the color in the big picture at that position, to recognize the green box fast later. And how would it decrease performance, if the white box in the middle is transparent?</p>
  
  <p>The question has been asked several times on SO as it seems without a single answer. I found i found a  solution at <a href="http://werner.yellowcouch.org/Papers/subimg/index.html" rel="noreferrer">http://werner.yellowcouch.org/Papers/subimg/index.html</a> . Unfortunately its in C++ and i do not understand a thing. Would be nice to have a Java implementation on SO. </p>