1.0

1.0 | 1 rating Rate this file 15 Downloads (last 30 days) File Size: 1.1 KB File ID: #25637

bit plane slicing

by nishant satyam

 

23 Oct 2009

contribution of each bit of a pixel in image.

| Watch this File

File Information
Description

this code will show image for each value of bit.

MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
23 Oct 2009 Jan Simon

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)));

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
bitand nishant satyam 23 Oct 2009 10:35:20
rand nishant satyam 23 Oct 2009 10:35:20
bitand Neelam Nanavare 06 Jan 2010 12:46:46
rand Neelam Nanavare 06 Jan 2010 12:46:50
bitand reem 27 Mar 2011 05:09:05
rand reem 27 Mar 2011 05:09:17
bitand Pascal 23 Oct 2011 11:35:06

Contact us at files@mathworks.com