Computes binary OR operation of two logical arrays
y = binaryor(x1,x2)
A logical array whose elements are either 0's and 1's only or T's and F's only.
A logical array whose elements are 0's and 1's only or T's and F's only.
A logical array obtained after performing OR operation of the two input logical arrays.
It computes binary OR operation between two size compatible logical arrays. Both input arrays may be of 0's and 1's or T's and F's. Or one of the input arrays may be of 0's and 1's and the other be of T's and F's. The output parameter is a logical array whose elements are T's and F's only.
x=imread('lena.png'); x=rgb2gray(x); x=double(x); z=x>=125; c=findContour(z,1); c1=findContour(1-z,1); y=binaryor(c,c1); imshow(y) // displaying binary ORed image | ![]() | ![]() |