Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image = imread("papug.jpg");
- image_gray = rgb2gray(image);
- str = image_gray(1,:);
- col = image_gray(:,1);
- kont = double(image_gray)/25.5-5; #значения от -5 до 5
- for i=1:sizeof(col)
- for j=1:sizeof(str)
- kont1(i,j) = 1/(1+e^(-kont(i,j))); #график от -5 до 5
- endfor
- endfor
- kont2 = uint8(kont1*255);
- #kont3 =imadjust(image_gray);
- subplot(1,2,1), subimage(image_gray);
- subplot(1,2,2), subimage(kont2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement