Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v = VideoReader('blue.mp4');
- frame = read(v,1);
- H = fspecial('gaussian',[25,25]);
- h1 = [[0,-1,0];[-1,4,-1];[0,-1,0]];
- h2 = [[-1,2,-1];[2,-4,2];[-1,2,-1]];
- h3 = [[1,3,1];[3,16,3];[1,3,1]];
- boundaryReplicateRGB = imfilter(frame, H);
- figure('Name','H','NumberTitle','off');
- imshow(boundaryReplicateRGB)
- boundaryReplicateRGB = imfilter(frame, h1);
- figure('Name','h1','NumberTitle','off');
- imshow(boundaryReplicateRGB)
- boundaryReplicateRGB = imfilter(frame, h2);
- figure('Name','h2','NumberTitle','off');
- imshow(boundaryReplicateRGB)
- boundaryReplicateRGB = imfilter(frame, h3);
- figure('Name','h3','NumberTitle','off');
- imshow(boundaryReplicateRGB)
Advertisement
Add Comment
Please, Sign In to add comment