JPG');
>> gray=rgb2gray(img);
>> thresh=graythresh(gray);
>> imbw=im2bw(gray,thresh);
>> result=conv2(double(imbw),mask,'valid');
>> subplot(1,2,1);
>> imshow(img);
>> subplot(1,2,2);
>> imshow(result);
>> %brightnest
>> subplot(2,1,1)
>> imshow(gray);
>> subplot(2,1,2)
>> imhist(gray);