Given two input first one is a number which is uint8, second one is image which is 8 bit gray scale image, the image has pixsels which are also uint8 for example
first input is 4 if we convert it binary we get 00000100
also each pixsel is converted to binary format in the image
00000100 & image(binary format) which produce output image that is the binary format
in the end output is converted to uint8.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers62
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
2068 Solvers
-
434 Solvers
-
Change the sign of even index entries of the reversed vector
661 Solvers
-
Matlab Basics - Convert a row vector to a column vector
684 Solvers
-
Return fibonacci sequence do not use loop and condition
873 Solvers
More from this Author21
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!