image processing - Bitwise color filter in MATLAB -
Is there a MATLAB function that does the following:
For an image input, it tells me The ratio of bits is deeper than any particular color of my selection
So if I enter an image of the chess board and use the color gray, the output will be roughly half (the way I need to process it in such a way that the image is not straightforward, though)
compare the function map = bitwise computer ('file name', c)% c = [r, g, b]; A = imed ('filename'); Compare = map = (zero (size, A), shape (A, 2)]); Map = (A (:,,,, 1) & lt; c (1)). * (A (:,:,, 2) & lt; c (2)). * (A (:,:,, 3) & lt; c (3)); For example
Compare = MapWithCompare ('filename', [220 100 120]); returns,
< P> and
compare = BitWiseCompare ('filename', [220 130 150]);
Comments
Post a Comment