Grabbing LSBs of image pixels
- From: "Jack Branning" <jbr.nospam@xxxxxxxxxx>
- Date: Sun, 17 Feb 2008 14:55:04 +0000 (UTC)
Hello,
Does anyone know an easy way to reference only single bits of an image?
I have an image that is 512x512 in size, and I need a user to be able to select
an LSB plane to look at. For example, they could choose 'second least
significant bit' which should then show all the 1s and 0s for the second least
significant bit as follows:
Image (2-pixels for illustration)
pixel 1: 00110110
pixel 2: 01100101
so if the user selects 'second least significant bit', it should return '1 0' for
this example.
I think the function 'bitand' is the one I need to use, but I am not sure how to
use it to solve this problem.
Any help would be gratefully appreciated!
.
- Follow-Ups:
- Re: Grabbing LSBs of image pixels
- From: Walter Roberson
- Re: Grabbing LSBs of image pixels
- Prev by Date: Re: plot f(x,y)=x^2+x*y+y^2
- Next by Date: MATLAB BASICS
- Previous by thread: FFT block in simulink
- Next by thread: Re: Grabbing LSBs of image pixels
- Index(es):
Relevant Pages
|
Loading