File Exchange

image thumbnail

bit plane slicing

version 1.0 (1.1 KB) by

contribution of each bit of a pixel in image.



View License

this code will show image for each value of bit.

Comments and Ratings (2)

The submission is fine, it is working and we are getting expected result.

Jan Simon

Jan Simon (view profile)

Lean description on the FEX, no comments in the file, file is a script and not a function, parameter defined by input, a not existing test picture is used and the size must be 500 x 1192.
A RAND matrix is created, its values are overwritten immediately by the number 252, but finally even this value is overwritten by the results. The computation uses 2 loops, although BITAND accepts arrays directly. Without the confusing unneeded lines this is:
imshow(bitand(imread(FileName), 2^(n-1)));

MATLAB Release
MATLAB 7.0.4 (R14SP2)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video