| [Top] [Up] [Prev] [Next] | [Up] [Tutorial] | mmtutor V1.0 30abr2001 |
mm013intersection In the sequence below, a line grid image B is created with the same size of the binary image A. The result image C is the intersection of both images.
A=imread('touchcell.tif');
mmshow(A);
B=logical(uint8(ones(size(A))));
B(1:20:end, :)=0;
B(:, 1:20:end)=0;
mmshow(B);
C=mmintersec(A,B);
mmshow(C);
|
The next sequence of commands create the two input images. The first image is a (horizontal) ramp function repeated three times. This repetition was performed by the MATLAB function repmat. The second image is just a (vertical) ramp function. The third image is the intersection of the first and second images.
f0=repmat( ones(15,1)*[1:15], 3 ); f1=uint8(f0); mmshow(f1); f0= [1:45]' * ones(1,45)/3; f2=uint8(f0); mmshow(f2); f3=mmintersec(f1,f2); mmshow(f3);
|
| [Top] [Up] [Prev] [Next] | [Up] [Tutorial] |
|
| Copyright (c) 1998-20001 by SDC Information SystemsCopyright (c) 1998-20001 by SDC Information Systems | ||