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  

Enter image details here

Compare = MapWithCompare ('filename', [220 100 120]); returns,

Enter image details here

< P> and compare = BitWiseCompare ('filename', [220 130 150]);

Enter image details here


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -