I added the input image to original post.
What do you mean by incorrect function mapping? In my point of view, at least for the parameter m there should only exist one solution. Also for b the solution should be unique as long as the coordinate system is the same for every image (which is the case in my set).