I had a problem with an image, in the binarization when increasing the threshold one zone gained definition while another gained noise and so on; so I separated what needs bigger threshold like this:
I=imread('img.jpg')
I2=imcrop(I;[coordenadas])
Bin1=binarización I1(umbral l);
Bin2=binarización i2(umbral l+1);
Now my question is:
How to replace Bin2 (small image) in Bin1 (large image)?