It sounds like you're doing some edge (border) detection. The Mexican Hat array will find edges in your image, but if the edge is ramped (a somewhat wider edge) your edges might have 2 lines. However, every edge only has one zerocrossing. This is very easy to accomplish in matlab. Let's call your Mexican Hat filter MHfilt. Instead of using the 0 and 255 values to select points make the image binary. Which means you put all values below the 0.75 on 0 and the rest on 1. Call that image Im and feed it to the edge function of Matlab.
ImEdge = edge(Im,'zerocross',MHfilt);
Read more about the edge function here Read more about zerocrossings here
I hope this will help you a bit